User Tools

Site Tools


player:tutorials:java:linux

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
player:tutorials:java:linux [2020/07/05 18:02] ancurioplayer:tutorials:java:linux [2024/04/05 13:31] (current) mineblock11
Line 1: Line 1:
-===== Install/Verify Java (Linux) =====+[[https://docs.fabricmc.net/players/installing-java/linux|{{::move-notice.png?nolink&400|}}]] 
 + 
 +====== Install/Verify Java (Linux) ======
  
 You will need Java installed if you want to: You will need Java installed if you want to:
  
-  * run the current version of the Fabric Installer +  * Run the 'Universal Jar' Fabric Installer 
-  * use MultiMC +  * Install a Fabric server. [[player:tutorials:install_server|Linux/CLI]] guide available 
-  * change the default "JAVA EXECUTABLEto other than the bundled Java runtime in a Minecraft Launcher "Installation"+  * Run Minecraft in MultiMC or Prism Launcher 
 +  * Run ATLauncher or Technic Launcher 
 +  * Change the default JAVA EXECUTABLE” to other than the bundled Java runtime in a Minecraft Launcher Installation
  
 ---- ----
-==== STEP 1: Verify if Java is already installed ====+===== STEP 1: Verify if Java is already installed =====
  
 Open a terminal window and execute ''java -version''. Open a terminal window and execute ''java -version''.
Line 22: Line 26:
  
 ---- ----
-==== STEP 2 Install Java ====+===== STEP 2Install Java =====
  
 Install Java using your distribution's package manager. This step will vary across distros, so in case it is not listed here, please refer to your distro's documentation. Install Java using your distribution's package manager. This step will vary across distros, so in case it is not listed here, please refer to your distro's documentation.
  
-==== Arch Linux ====+Convention: commands starting with a ''#'' must be run with privilges like so ''sudo [command] [options]''
 + 
 +===== Arch Linux =====
  
 Install the latest JRE with this command: Install the latest JRE with this command:
 <code> <code>
-pacman -S jre-openjdk+pacman -S jre-openjdk 
 +</code> 
 + 
 +If you're only running a server without the need for a graphical environment, the headless JRE is enough: 
 +<code> 
 +# pacman -S jre-openjdk-headless
 </code> </code>
  
 If you want to also develop mods, you need to install the JDK instead. If you want to also develop mods, you need to install the JDK instead.
 <code> <code>
-pacman -S jdk-openjdk+pacman -S jdk-openjdk
 </code> </code>
  
-For more information, see the [[https://wiki.archlinux.org/index.php/Java|wiki article]].+For more information, see the [[https://wiki.archlinux.org/index.php/Java|Arch Linux Wiki article]].
  
-==== Fedora ====+===== Fedora =====
  
 Install the JRE for Java 8 with this command: Install the JRE for Java 8 with this command:
 <code> <code>
-sudo dnf install java-1.8.0-openjdk-headless+# dnf install java-1.8.0-openjdk 
 +</code> 
 + 
 +If you're only running a server without the need for a graphical environment, the headless JRE is enough: 
 +<code> 
 +dnf install java-1.8.0-openjdk-headless
 </code> </code>
  
 If you want to also develop mods, you need to install the JDK instead. If you want to also develop mods, you need to install the JDK instead.
 <code> <code>
-sudo dnf install java-1.8.0-openjdk-devel+dnf install java-1.8.0-openjdk-devel
 </code> </code>
  
-For more information, see the [[https://docs.fedoraproject.org/en-US/quick-docs/installing-java/|wiki article]].+For more information, see the [[https://docs.fedoraproject.org/en-US/quick-docs/installing-java/|Fedora Wiki article]].
  
-==== Gentoo ====+===== Gentoo =====
  
 Install the latest JRE with this command: Install the latest JRE with this command:
 <code> <code>
-emerge jre+emerge -a jre 
 +</code> 
 + 
 +If you're only running a server without the need for a graphical environment, the headless JRE is enough, for that you can enable //USE=headless-awt// and then emerge a JRE that supports it, such as //dev-java/openjdk// or //dev-java/openjdk-jre-bin// for the precompiled version: 
 +<code> 
 +# euse -E headless-awt # or manually change make.conf/package.use 
 +# emerge -a dev-java/openjdk
 </code> </code>
  
 If you want to also develop mods, you need to install the JDK instead. If you want to also develop mods, you need to install the JDK instead.
 <code> <code>
-emerge jdk+emerge -a jdk
 </code> </code>
  
-For more information, see the [[https://wiki.gentoo.org/wiki/Java|wiki article]].+For more information, see the [[https://wiki.gentoo.org/wiki/Java|Gentoo Wiki article]].
  
-==== Void Linux ====+===== Void Linux =====
  
 Install the latest JRE with this command: Install the latest JRE with this command:
 <code> <code>
-xbps-install openjdk-jre+xbps-install openjdk-jre
 </code> </code>
  
 If you want to also develop mods, you need to install the JDK instead. If you want to also develop mods, you need to install the JDK instead.
 <code> <code>
-xbps-install openjdk+xbps-install openjdk
 </code> </code>
  
player/tutorials/java/linux.1593972122.txt.gz · Last modified: 2020/07/05 18:02 by ancurio