Results 1 to 2 of 2
Hi guys,
I'm a new user to Linux and I have a problem. I'm using Linux Mint Bea. When I use my "java" command to run a java .class file, ...
- 06-02-2007 #1Just Joined!
- Join Date
- Jun 2007
- Posts
- 1
"java" command uses gij but want sun jre
Hi guys,
I'm a new user to Linux and I have a problem. I'm using Linux Mint Bea. When I use my "java" command to run a java .class file, the jvm used is a gij 1.4.2 jvm.
I just installed java 6.0 and I want to use the jvm that comes with 6.0 and not the gij version.
I have tried coping the binary file from my 6.0 directory over to my /usr/bin directory but that doesn't work. I suppose I could simply make an alias to the 6.0 jvm or include it in my PATH but that seems like a hack?
Is there a way to get the 6.0 jvm's "java" command into my usr/bin directory?
- 06-02-2007 #2Linux User
- Join Date
- Feb 2006
- Posts
- 484
add the new jre directory to your path
into the .bashrc file which can be find in your home directory
export PATH=$PATH:"/path/to/java6/jresomething/bin"
bin is important
restart the terminal or logout and log in and you will can use the suns jre


Reply With Quote
