LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 01-25-2011, 12:39 PM   #1
msbstar
Member
 
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,
Hassan
------------------------------------------------------------
------------------------------------------------------------

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

/usr/lib/jvm/java-6-sun
 
Old 01-25-2011, 12:50 PM   #2
msbstar
Member
 
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,
Hassan
-------------------------------------------------------
-------------------------------------------------------

Setting up sun-j2re1.5 (1.5.0+update22) ...
update-alternatives: error: alternative path /usr/lib/j2re1.5-sun/plugin/i386/ns4/libjavaplugin.so 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:
sun-j2re1.5
E: Sub-process /usr/bin/dpkg returned an error code (1)
 
Old 01-25-2011, 12:53 PM   #3
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
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.


Cheers,
Tink
 
1 members found this post helpful.
  


Reply


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


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

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration