Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

$ echo $JAVA_HOME If $JAVA_HOME is not present, open your .bashrc file:

$ touch ~/.bashrc $ gedit ~/.bashrc For OpenJDK add: export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64 For Oracle JDK add: export JAVA_HOME=/usr/lib/jvm/java-8-oracle Save and close the file.

What's that's saying is create a file called .bashrc (the . means it will be hidden) in your home folder, the home folder is the /home/username folder then write either export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64 or export JAVA_HOME=/usr/lib/jvm/java-8-oracle in the that text file.

Instructions specific to Fedora Java generally say to use a file named .bash_profile (So if .bashrc doesn't work try .bash_profile)

$ echo $JAVA_HOME If $JAVA_HOME is not present, open your .bashrc file:

$ touch ~/.bashrc $ gedit ~/.bashrc For OpenJDK add: export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64 For Oracle JDK add: export JAVA_HOME=/usr/lib/jvm/java-8-oracle Save and close the file.

What's that's this is saying is to create a file called .bashrc (the . "." means it will be hidden) hidden by default in a file-manager) in your home folder, the folder. The home folder is the /home/username folder then folder.

Then write either export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64 or export JAVA_HOME=/usr/lib/jvm/java-8-oracle in the that text file.

Instructions specific to Fedora and Java generally say to use a file named .bash_profile (So if .bashrc doesn't work try .bash_profile) as the name of the file.)

$ echo $JAVA_HOME If $JAVA_HOME is not present, open your .bashrc file:

$ touch ~/.bashrc $ gedit ~/.bashrc For OpenJDK add: export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64 For Oracle JDK add: export JAVA_HOME=/usr/lib/jvm/java-8-oracle Save and close the file.

What's What this is saying is to create a file called .bashrc (the "." means it will be hidden by default in a file-manager) in your home folder. The home folder is the /home/username folder.

Then write either export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64 or export JAVA_HOME=/usr/lib/jvm/java-8-oracle in the that text file.

Instructions specific to Fedora and Java generally say to use a file named .bash_profile (So if .bashrc doesn't work try .bash_profile as the name of the file.)