Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 01-25-2011, 11:39 AM   #1
Registered: Jan 2010
Distribution: Ubuntu 10.4
Posts: 122

Rep: Reputation: 16
Question Where is my "jvm"? I Want to Update it!!

Hello Everybody,

I have installed java-6-sun on my Ubuntu 9.10 and now I wanna
change the default system JVM search order. Based on the
following instruction I should modify my /etc/jvm.

But there is no jvm in my Ubuntu, all I have is jvm.*
which "*" refers to ".h" or other suffix. There is no "jvm"
alone in my Ubuntu in order to do what the following says.

I would be very grateful for any help.

With best regards,

Setup the default Java version

Ubuntu Linux comes with update-java-alternatives utility to updates all alternatives
belonging to one runtime or development kit for the Java language.
To select, Sun's JVM as provided in Ubuntu 7.10, enter:

$ sudo update-java-alternatives -s java-6-sun

You also need to edit a file called /etc/jvm
This file defines the default system JVM search order.
Each JVM should list their JAVA_HOME compatible directory in this file.
The default system JVM is the first one available from top to bottom. Open /etc/jvm

$ sudo vi /etc/jvm

Make sure /usr/lib/jvm/java-6-sun is added to the top of JVM list

Old 01-25-2011, 11:50 AM   #2
Registered: Jan 2010
Distribution: Ubuntu 10.4
Posts: 122

Original Poster
Rep: Reputation: 16
What is wrong with "sun-j2re1.5" in my Ubuntu 9.10?

Hi Everybody,

I wanted to update my java to java-6-sun by typing the following
line in my Ubuntu 9.10 Terminal:

sudo apt-get install sun-java6-bin sun-java6-jre sun-java6-jdk

But it stopped with the following error.

I would be very grateful if any one could help me in this matter.

With best regards,

Setting up sun-j2re1.5 (1.5.0+update22) ...
update-alternatives: error: alternative path /usr/lib/j2re1.5-sun/plugin/i386/ns4/ doesn't exist.
dpkg: error processing sun-j2re1.5 (--configure):
subprocess installed post-installation script returned error exit status 2
Errors were encountered while processing:
E: Sub-process /usr/bin/dpkg returned an error code (1)
Old 01-25-2011, 11:53 AM   #3
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
I merged your two closely related threads and ask that you
don't do this kind of stuff again, double-posting is against
our rules you agreed to when you signed up to LQ.

1 members found this post helpful.


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
unique password for "update" and "synaptic" and "apt-get" SaintDanBert Linux - Security 1 09-17-2010 04:53 AM
intrepid, PS3, update sources list from "ubuntu" to "ports-ubuntu" evdv Linux - Newbie 7 08-18-2009 10:52 AM
LXer: Displaying "MyComputer", "Trash", "Network Servers" Icons On A GNOME Desktop LXer Syndicated Linux News 0 04-02-2007 08:31 AM
Latest Suse "YOU" update....Linux Kernel Update Failed Balarabay1 SUSE / openSUSE 10 06-11-2006 09:07 PM
does failed using urpmi messed up my "Install Software" / "mandrake update" ??? sirpelidor Mandriva 1 11-02-2003 09:00 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:12 PM.

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