• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to setup JAVA_HOME and JAVA_PATH

 
cake naiyou
Greenhorn
Posts: 27
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I opened the .bashrc file of an established system, which includes



After typing
, the system prints out


It seems to me that none of the above path matches the JAVA_HOME set up in bashrc file. Can you let me know why? I am pretty confusing about how to setting up JAVA_HOME and JAVA_PATH
 
James Sabre
Ranch Hand
Posts: 781
Java Netbeans IDE Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The environment variable JAVA_HOME has no special meaning to Java. Some Java applications such as Tomcat use it but Java in general does not. If your JAVA_HOME points to a non-existent directory then it can probably be safely removed.
 
John Jai
Rancher
Posts: 1776
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
cake naiyou wrote:



Sorry I have few experience in setting Java @ Unix server. Might not be true but it seems like whereis also prints the soft links pointing to real installation of java. Usually the /usr/bin/java where the one we used in the past to compile.

Others should help you!
john
 
Jesper de Jong
Java Cowboy
Saloon Keeper
Pie
Posts: 15150
31
Android IntelliJ IDE Java Scala Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
On Unix-like operating systems, you can have symbolic links. For example, /usr/bin/java might be a link to a file in a completely different directory (maybe somewhere in the directory /usr/lib/jvm/java-1.6.0-sun.x86.64). You can't see that just by looking at the name /usr/bin/java alone.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic