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

Next revision
Previous revision
player:tutorials:java:linux [2020/07/01 18:29] – created calloattiplayer:tutorials:java:linux [2023/04/20 20:03] (current) poopooracoocoo
Line 1: Line 1:
-TODO Install/Verify Java Linux+====== Install/Verify Java (Linux) ====== 
 + 
 +You will need Java installed if you want to: 
 + 
 +  * Run the 'Universal Jar' Fabric Installer 
 +  * Install a Fabric server. [[player:tutorials:install_server|Linux/CLI]] guide available 
 +  * 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 ===== 
 + 
 +Open a terminal window and execute ''java -version''
 + 
 +If it returns with something like this, Java is already installed. 
 + 
 +<code> 
 +saiko@invader ~ % java -version 
 +openjdk version "14.0.1-internal" 2020-04-14 
 +OpenJDK Runtime Environment (build 14.0.1-internal+14-adhoc..jdk14u-jdk-14.0.17) 
 +OpenJDK 64-Bit Server VM (build 14.0.1-internal+14-adhoc..jdk14u-jdk-14.0.17, mixed mode, sharing) 
 +</code> 
 + 
 +---- 
 +===== STEP 2: Install 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. 
 + 
 +Convention: commands starting with a ''#'' must be run with privilges like so ''sudo [command] [options]''
 + 
 +===== Arch Linux ===== 
 + 
 +Install the latest JRE with this command: 
 +<code> 
 +# 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> 
 + 
 +If you want to also develop mods, you need to install the JDK instead. 
 +<code> 
 +# pacman -S jdk-openjdk 
 +</code> 
 + 
 +For more information, see the [[https://wiki.archlinux.org/index.php/Java|Arch Linux Wiki article]]. 
 + 
 +===== Fedora ===== 
 + 
 +Install the JRE for Java 8 with this command: 
 +<code> 
 +# 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> 
 + 
 +If you want to also develop mods, you need to install the JDK instead. 
 +<code> 
 +# dnf install java-1.8.0-openjdk-devel 
 +</code> 
 + 
 +For more information, see the [[https://docs.fedoraproject.org/en-US/quick-docs/installing-java/|Fedora Wiki article]]. 
 + 
 +===== Gentoo ===== 
 + 
 +Install the latest JRE with this command: 
 +<code> 
 +# 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> 
 + 
 +If you want to also develop mods, you need to install the JDK instead. 
 +<code> 
 +# emerge -a jdk 
 +</code> 
 + 
 +For more information, see the [[https://wiki.gentoo.org/wiki/Java|Gentoo Wiki article]]. 
 + 
 +===== Void Linux ===== 
 + 
 +Install the latest JRE with this command: 
 +<code> 
 +# xbps-install openjdk-jre 
 +</code> 
 + 
 +If you want to also develop mods, you need to install the JDK instead. 
 +<code> 
 +# xbps-install openjdk 
 +</code> 
player/tutorials/java/linux.1593628166.txt.gz · Last modified: 2020/07/01 18:29 by calloatti