ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Ok, I've been at it all day, wasting my life, not getting results. Life (like this) stinks...
(it(s been a long day, please ignore my moaning - tnkans)
Ok, this is the situ, I've got F10 as a dev machine, it uses a JVM 6, I have a server (centos 5.2) that seems to use a 1.4 JVM) Ok, so I downloaded the 6 (from Sun) and installed it, the old one is not overwritten
Quote:
which java
/usr/bin/java
java --version
java version "1.4.2"
I compiled a testlet in the 6, of course, the server's JVM cannot handle the class and say something like "unrecognised class file version", and that makes sense.
How do I use the newly installed JVM (the 6.0)?
Tnx
Thor
(eight hours and not getting anywhere, that's utter cruely)
eight hours and not getting anywhere, that's utter cruely
Aah, but that will make it feel so much better when you finally get it solved and can stop!
Do you find the new version if yo]u search the filesystem?
Code:
find / -name java -type f 2>/dev/null
It might also be worth checking what sort of file /usr/bin/java is. On my system, it is actually a symbolic link that points to the installed JVM executable (well, actually it points to another symlink, but then Ubuntu uses the Debian alternatives system).
If /usr/bin/java is a symlink, you could change it to point to the version you've just installed (assuming you find that). If, on the other hand, this is the 1.4.2 executable, you would either have to replace it with the new version or make sure that that is in a directory that appears earlier in $PATH than /usr/bin.
Aah, but that will make it feel so much better when you finally get it solved and can stop!
and the great tip.
I did a find:
Quote:
find / -name java -type f 2>/dev/null
Found the 1.6.0.13 (the JVM I just installed), made a symlink in the folder where it stood, moved the old symlink (pointing to the old JVM) and placed the new symlink in its place.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.