Results 1 to 8 of 8
I'm running 10.04 LTS with these Java packages installed:
sun-java6-bin sun-java6-jre java-common sun-java6-plug I can't get some software to run: it says it needs JRE6. But when I look into ...
- 10-12-2010 #1Just Joined!
- Join Date
- Sep 2010
- Posts
- 2
Confused by Java information
I'm running 10.04 LTS with these Java packages installed:
- sun-java6-bin
- sun-java6-jre
- java-common
- sun-java6-plug
My Java knowledge is now exhausted.Code:java -version java version "1.5.0" gij (GNU libgcj) version 4.4.3

What do I need to do to get JRE6 running?
- 10-12-2010 #2Linux User
- Join Date
- Nov 2009
- Location
- France
- Posts
- 292
You have JAVA 1.5 installed somewhere and is in the 'path', you can locate the java 1.5 executable by running
You have to find out where JAVA 1.6 is installed. I don't know Ubuntu, so I don't know where packages are installed. Your package manager will inform you about it.Code:which java
Alternatively, you can look for JAVA 1.6 in a 'brute find' way :
This will give you, amongst many outputs,Code:find / -type f -name "java"
./<path_to_java_1.6>/bin/java
If you are running your client program from a shell, just adjust the PATH variable :
If you want to havt the path variable to always point to JAVA 1.6, Ubuntu knowledgeable forum members will tell you which file to tweak for this purpose.Code:export PATH="/<path_to_java_1.6>/bin:$PATH" /<path_to_your_program>your_program
On Mandriva, it's /etc/profile, where we can add
You'll have to reboot after this.Code:export PATH="/<path_to_java_1.6>/bin:$PATH"
0 + 1 = 1 != 2 <> 3 != 4 ...
Until the camel can pass though the eye of the needle.
- 10-12-2010 #3
None of this is necessary due to the use of alternatives.
What you need is to run update alternatives command. Just google for update alternatives java ubuntu and ubuntu doc should be high on the list
- 10-12-2010 #4
- 10-20-2010 #5Just Joined!
- Join Date
- Sep 2010
- Posts
- 2
Now Java 6 is running - but the original error remains...
Thanks for your help, guys. I'm getting there (slowly).
- 10-21-2010 #6
which error, that which command output is showing gcj?
- 10-21-2010 #7Just Joined!
- Join Date
- Dec 2009
- Location
- Maryland, USA
- Posts
- 83
- 10-21-2010 #8
i'm asking op if the error to which they are referring is that of the which command output as posted above


Reply With Quote
