Select JVM for NetBeans (was: Re: man update-alternatives priority)

Thufir hawat.thufir at gmail.com
Thu Jan 15 05:57:30 UTC 2009


On Wed, 14 Jan 2009 22:38:31 +0100, Markus Schönhaber wrote:

> Thufir:
> 
>> Hmm, even after selecting the sun jvm as as default, netbeans shows:
>> 
>> Product Version: NetBeans IDE 6.1 (Build 080905) Java: 1.6.0_0; OpenJDK
>> Client VM 1.6.0_0-b12 System: Linux version 2.6.27-7-generic running on
>> i386; UTF-8; en_US (nb) Userdir: /home/thufir/.netbeans/6.1
> 
> Edit the netbeans_jdkhome property in .../etc/netbeans.conf or start
> NetBeans with --jdkhome <...> to change the JVM that is used.


Thank you, and on reflection, I seem to recall making that change in the 
past.  I don't understand about the default JVM though:

thufir at arrakis:~$ 
thufir at arrakis:~$ ll /usr/lib/jvm/
total 8
lrwxrwxrwx 1 root root   14 2009-01-06 19:05 default-java -> java-6-
openjdk
drwxr-xr-x 7 root root 4096 2009-01-14 00:23 java-6-openjdk
lrwxrwxrwx 1 root root   19 2009-01-14 08:14 java-6-sun -> java-6-
sun-1.6.0.10
drwxr-xr-x 8 root root 4096 2009-01-14 08:15 java-6-sun-1.6.0.10
thufir at arrakis:~$ 
thufir at arrakis:~$ sudo update-alternatives --config java
[sudo] password for thufir: 

There are 2 alternatives which provide `java'.

  Selection    Alternative
-----------------------------------------------
 +        1    /usr/lib/jvm/java-6-openjdk/jre/bin/java
*         2    /usr/lib/jvm/java-6-sun/jre/bin/java

Press enter to keep the default[*], or type selection number: 
thufir at arrakis:~$ 



why does default-java link to the openjdk?  I can manually change that, 
but shouldn't update-alternatives have changed it?



-Thufir





More information about the ubuntu-users mailing list