Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Help with JAVA_HOME variable on Ubuntu


Recommended Posts

43 minutes ago, diesieben07 said:

Yeah, I've read this before and did what it said, I just don't know if I've set it to the right directory since there's three options. But now I can't even access /etc/environment OR /etc/profile for some reason as of late, and I could earlier....

Link to comment
Share on other sites

  • 3 months later...

1. Start a terminal and type: sudo su.
2. Determine the folder in which Java is installed. To do this, enter: which java.
3. Now, to install JAVA_HOME for all users, edit the bash.bashrc file
4. At the end of the file, enter the following lines (one after the other):
Line 1: JAVA_HOME=/usr/lib/jvm/java-6-sun
Line 2: export JAVA_HOME
Line 4: export PATH
5. Close terminal, then open it again and type: echo $JAVA_HOME; a new path will be displayed.
6. Enter: java –version to find out the version of Java installed.
If you still have problems with installation, you can get java assignment help and contact an expert with your question. Also, don't enter the path displayed by the which java command. Instead, type:

Edited by merin
Link to comment
Share on other sites

  • 1 year later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.