GeeCON Prague 2014*
The moose likes Linux / UNIX and the fly likes Error in Java Home in Ubuntu Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Engineering » Linux / UNIX
Bookmark "Error in Java Home in Ubuntu" Watch "Error in Java Home in Ubuntu" New topic
Author

Error in Java Home in Ubuntu

Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9400
    
    2

Guys,

I have Maven and Java installed on my Ubuntu partition. I did set my path variable in my bashrc file and below is what I see when I test the path:



Below is the actual entry in the bashrc file:


SCJP 1.4, SCWCD 1.4 - Hints for you, Certified Scrum Master
Did a rm -R / to find out that I lost my entire Linux installation!
Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9400
    
    2

Finally corrected the bashrc file as below and it worked fine:

Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9400
    
    2

I really like this way of learning things. Trying things out by myself and ofcourse getting some help when needed from the ranch!
Stefan Wagner
Ranch Hand

Joined: Jun 02, 2003
Posts: 1923

Jothi Shankar Kumar wrote:Finally corrected the bashrc file as below and it worked fine:



One idea of JAVA_HOME is, that you switch to a newer version, and just change the variable in one place.

For this to work you set the PATH to



http://home.arcor.de/hirnstrom/bewerbung
Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9400
    
    2

Thanks for the post. I would change my settings accordingly!
 
GeeCON Prague 2014
 
subject: Error in Java Home in Ubuntu