From: Tom Anderson on 18 Apr 2010 12:25 On Sun, 18 Apr 2010, Hakan wrote: > a) I downloaded and installed JRE from Sun. Then I updated the PATH > environment variable such that I thought that Eclipse should see it. I > still have the same error when trying to run it. Did you set JAVA_HOME? From a fresh terminal window, what do you get if you do: readlink -f "$(which java)" java -version readlink -f "$(which javac)" javac -version echo "$PATH" echo "$JAVA_HOME" echo "$CLASSPATH" ? > b) Downloaded the latest 32 bit version from Eclipse 3.5 . We run a > CentOS system. It should work from what I can make of the information. Should do. We run Galileo (ie 3.5) on CentOS 5.2, currently with java 1.5.0_16-b02. All 32-bit. tom -- The highest activities of consciousness have their origins in the physical occurrences of the brain just as the loveliest of melodies are not too sublime to be expressed by notes. -- Somerset Maugham
From: Hakan on 18 Apr 2010 13:53 Tom Anderson wrote: > Did you set JAVA_HOME? > From a fresh terminal window, what do you get if you do: > readlink -f "$(which java)" > java -version > readlink -f "$(which javac)" > javac -version > echo "$PATH" > echo "$JAVA_HOME" > echo "$CLASSPATH" I replaced the java version in /usr/bin with the one from jre1.6 and set JAVA_HOME to the jre1.6.0_20 root directory. Now it says that it can't find libjli.so when /usr/bin/java is invoked from eclipse . Still thankful for help to solve this. Regards, H�kan -- Newsoffice.de - Die Onlinesoftware zum Lesen und Schreiben im Usenet Die Signatur l��t sich nach Belieben anpassen ;-)
From: Tom Anderson on 18 Apr 2010 16:10 On Sun, 18 Apr 2010, Hakan wrote: > Tom Anderson wrote: > >> Did you set JAVA_HOME? >> >> From a fresh terminal window, what do you get if you do: >> >> readlink -f "$(which java)" >> java -version >> readlink -f "$(which javac)" >> javac -version >> echo "$PATH" >> echo "$JAVA_HOME" >> echo "$CLASSPATH" > > I replaced the java version in /usr/bin with the one from jre1.6 and set > JAVA_HOME to the jre1.6.0_20 root directory. Now it says that it can't > find libjli.so when /usr/bin/java is invoked from eclipse . Still > thankful for help to solve this. Answering the questions i asked would be a good way to get more help. Googling for 'eclipse libjli.so' would also be a good idea. tom -- Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away. -- Antoine de Saint-Exupery
From: Dancing Fingers on 19 Apr 2010 04:23 Depending on your Distribution, you're making this way to hard. The package management system should set your PATH's for you. You might want to try "update-alternative java". Then pick the appropriate version. This should reset you PATH. Good luck. Chris If it seems to hards, it usually is the hard way.
First
|
Prev
|
Pages: 1 2 Prev: environment variables Next: Problem while implementing ehCache Framework |