Select JVM for NetBeans
> Also, I notice:
> thufir@arrakis:~$ which java
> thufir@arrakis:~$ ll /usr/bin/java
> lrwxrwxrwx 1 root root 22 2009-01-06 19:08 /usr/bin/java -> /etc/
> thufir@arrakis:~$ ll /etc/alternatives/java
> lrwxrwxrwx 1 root root 36 2009-01-14 08:38 /etc/alternatives/java -> /usr/
> thufir@arrakis:~$ which javac
> thufir@arrakis:~$ ll /usr/bin/javac
> lrwxrwxrwx 1 root root 23 2009-01-14 00:24 /usr/bin/javac -> /etc/
> thufir@arrakis:~$ ll /etc/alternatives/javac
> lrwxrwxrwx 1 root root 37 2009-01-14 08:25 /etc/alternatives/javac -> /
So what? You've noticed that changing one binary managed by the
alternatives system doesn't affect other (different) binaries managed by
the alternatives system. Doesn't seem surprising to me.
> 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.
If you want /usr/bin/javac to point to the javac from the Sun JDK, do
something similar to what you did wrt /usr/bin/java:
sudo update-alternatives --config javac
And while you're at it, do the same for appletviewer, javadoc, javah,
jar, jarsigner, javaws, jconsole, ...
Or simply uninstall OpenJDK if you're not going to use it anyway.
Or prepend your path with the bin directory of your preferred Java
Or - maybe the least painful way to change the all Java alternatives -
take a look at update-java-alternatives.
ubuntu-users mailing list
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users