FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Ubuntu > Ubuntu User

 
 
LinkBack Thread Tools
 
Old 01-15-2009, 04:57 AM
Thufir
 
Default Select JVM for NetBeans (was: man update-alternatives priority)

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@arrakis:~$
thufir@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@arrakis:~$
thufir@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@arrakis:~$



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



-Thufir


--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 
Old 01-15-2009, 02:25 PM
Thufir
 
Default Select JVM for NetBeans (was: man update-alternatives priority)

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.

Also, I notice:

thufir@arrakis:~$ which java
/usr/bin/java
thufir@arrakis:~$ ll /usr/bin/java
lrwxrwxrwx 1 root root 22 2009-01-06 19:08 /usr/bin/java -> /etc/
alternatives/java
thufir@arrakis:~$ ll /etc/alternatives/java
lrwxrwxrwx 1 root root 36 2009-01-14 08:38 /etc/alternatives/java -> /usr/
lib/jvm/java-6-sun/jre/bin/java
thufir@arrakis:~$
thufir@arrakis:~$ which javac
/usr/bin/javac
thufir@arrakis:~$ ll /usr/bin/javac
lrwxrwxrwx 1 root root 23 2009-01-14 00:24 /usr/bin/javac -> /etc/
alternatives/javac
thufir@arrakis:~$ ll /etc/alternatives/javac
lrwxrwxrwx 1 root root 37 2009-01-14 08:25 /etc/alternatives/javac -> /
usr/lib/jvm/java-6-openjdk/bin/javac
thufir@arrakis:~$


so that while netbeans now shows:

Product Version: NetBeans IDE 6.1 (Build 080905)
Java: 1.6.0_10; Java HotSpot(TM) Client VM 11.0-b15
System: Linux version 2.6.27-7-generic running on i386; UTF-8; en_US (nb)
Userdir: /home/thufir/.netbeans/6.1


It seems that java uses the sun binary, while javac is using openjdk.
From what I read there's probably no difference for my needs, but, still,
I'd prefer to use the "official" version.


-Thufir


--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 

Thread Tools




All times are GMT. The time now is 04:03 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2007 - 2008, www.linux-archive.org