LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   help properly installing java 1.6 (https://www.linuxquestions.org/questions/linux-software-2/help-properly-installing-java-1-6-a-833670/)

phenyloxime 09-21-2010 09:43 PM

help properly installing java 1.6
 
I need to run a program,OpenChrom, that requires a JRE of 1.6 or greater. The program runs as a standalone executable, no installation is indicated.
I used
Code:

apt-get install sun-java6-bin
and the installation appeared to go smoothly. I now have a folder:
Code:

/usr/java/jre1.6.0_21
that looks like it has the whole JRE in it. However when I check my java version I get the following:
Code:

adam@debian:~/Desktop/OpenChrom$ java -version
java version "1.5.0"
gij (GNU libgcj) version 4.3.2

I found something on YoLinux that makes me think I need to tell my computer, or the shell, where to find Java. How do I do this? Needless to say openchrom does not run, it crashes after the splash screen. Thank you for your consideration.

dugan 09-21-2010 09:48 PM

You need to run update-alternatives to tell your system which version of Java to activate.

See here for details:
https://help.ubuntu.com/community/Java

phenyloxime 09-22-2010 07:46 PM

Thank you very much, this was precisely the fix and I am now up and running!


All times are GMT -5. The time now is 08:07 PM.