LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Where is my "jvm"? I Want to Update it!! (https://www.linuxquestions.org/questions/linux-newbie-8/where-is-my-jvm-i-want-to-update-it-858588/)

msbstar 01-25-2011 11:39 AM

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

msbstar 01-25-2011 11:50 AM

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)

Tinkster 01-25-2011 11:53 AM

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


All times are GMT -5. The time now is 02:19 AM.