LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 04-02-2009, 01:27 PM   #1
Thor_2.0
Senior Member
 
Registered: Nov 2007
Location: Somewhere on my hard drive...
Distribution: Manjaro
Posts: 2,220
Blog Entries: 23

Rep: Reputation: 279Reputation: 279Reputation: 279
Unhappy Alternative JVM - pls hlp


...hi...

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)
 
Old 04-02-2009, 01:57 PM   #2
Robhogg
Member
 
Registered: Sep 2004
Location: Old York, North Yorks.
Distribution: Debian 7 (mainly)
Posts: 653

Rep: Reputation: 85
Quote:
Originally Posted by linusr@flanders View Post
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.

Hope this helps,
Rob.

Last edited by Robhogg; 04-02-2009 at 02:00 PM.
 
Old 04-02-2009, 02:25 PM   #3
Thor_2.0
Senior Member
 
Registered: Nov 2007
Location: Somewhere on my hard drive...
Distribution: Manjaro
Posts: 2,220
Blog Entries: 23

Original Poster
Rep: Reputation: 279Reputation: 279Reputation: 279
Hi
(big sigh of relief)

Thanks, I needed this:

Quote:
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.

Ran the testclass and it worked.

Man, I needed this, and I owe you a latte :-)

Big tnx!

Thor
 
Old 04-02-2009, 02:38 PM   #4
Robhogg
Member
 
Registered: Sep 2004
Location: Old York, North Yorks.
Distribution: Debian 7 (mainly)
Posts: 653

Rep: Reputation: 85
Quote:
Originally Posted by linusr@flanders View Post
Man, I needed this, and I owe you a latte :-)
No problem. Actually, mine's an espresso
 
Old 04-02-2009, 02:40 PM   #5
Thor_2.0
Senior Member
 
Registered: Nov 2007
Location: Somewhere on my hard drive...
Distribution: Manjaro
Posts: 2,220
Blog Entries: 23

Original Poster
Rep: Reputation: 279Reputation: 279Reputation: 279
Eh, whatever you like, you've earned it...

Now, where was I...back 2 work...

Thx!

Thor
 
  


Reply

Tags
alternative, java, jvm


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
installation probs pls hlp ZINZIN Linux - Newbie 4 03-18-2006 02:58 AM
Sharing printer problem???Pls HLP ! URGENT bvram Linux - Networking 0 09-17-2005 07:06 AM
macromedia flash for linux hlp pls!!!! mlu Linux - Software 3 12-01-2004 11:20 PM
mozilla firefox with JRE 1.5 hlp pls!!!! mlu Linux - Software 1 11-30-2004 07:29 PM
Nvidia problem in Slackware 8.1 pls hlp MaraXus Linux - Hardware 4 10-18-2002 07:36 PM


All times are GMT -5. The time now is 04:27 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration