Just decided to poke around in natty's update-alternatives ...
[joakim@lapetus ~]$ lsb_release -a
LSB Version: core-2.0-amd64:core-2.0-noarch:core-3.0-amd64:core-3.0-noarch:core-3.1-amd64:core-3.1-noarch:core-3.2-amd64:core-3.2-noarch:core-4.0-amd64:core-4.0-noarch
Distributor ID: Ubuntu
Description: Ubuntu 11.04
Release: 11.04
Codename: natty
[joakim@lapetus ~]$ update-alternatives --list java
/usr/lib/jvm/java-6-openjdk/jre/bin/java
/usr/lib/jvm/java-6-sun/jre/bin/java
[joakim@lapetus ~]$ dpkg -l | grep jdk
ii default-jdk 1:1.6-40ubuntu1 Standard Java or Java compatible Development Kit
ii default-jdk-doc 0.40ubuntu1 Standard Java or Java compatible Development Kit (documentation)
ii openjdk-6-doc 6b22-1.10.2-0ubuntu1~11.04.1 OpenJDK Development Kit (JDK) documentation
ii openjdk-6-jdk 6b22-1.10.2-0ubuntu1~11.04.1 OpenJDK Development Kit (JDK)
ii openjdk-6-jre 6b22-1.10.2-0ubuntu1~11.04.1 OpenJDK Java runtime, using Hotspot JIT
ii openjdk-6-jre-headless 6b22-1.10.2-0ubuntu1~11.04.1 OpenJDK Java runtime, using Hotspot JIT (headless)
ii openjdk-6-jre-lib 6b22-1.10.2-0ubuntu1~11.04.1 OpenJDK Java runtime (architecture independent libraries)
ii openjdk-6-jre-zero 6b22-1.10.2-0ubuntu1~11.04.1 Alternative JVM for OpenJDK, using Zero/Shark
ii openjdk-6-source 6b22-1.10.2-0ubuntu1~11.04.1 OpenJDK Development Kit (JDK) source files
ii sun-java6-jdk 6.26-1natty1 Sun Java(TM) Development Kit (JDK) 6
[joakim@lapetus ~]$ update-alternatives --list javac
/usr/lib/jvm/java-6-openjdk/bin/javac
/usr/lib/jvm/java-6-sun/bin/javac
It seems that ubuntu separates the running of java and the compiling of java, and doesn't let the update-alternatives use the jdk as the running jvm.
Bummer.
For the record, I don't use the installed by ubuntu JVM's
--
Joakim Erdfelt
(the people behind jetty and cometd)
On Thu, Oct 27, 2011 at 4:30 PM, Jan Bartel
<janb@xxxxxxxxxxx> wrote:
For that version of jetty (because of the version of jasper, the jsp
engine) you are going to need
a full jdk, not a jre in order to compile your jsps.
regards
Jan
On 28 October 2011 05:00, Christopher Bare <
christopherbare@xxxxxxxxx> wrote:
>
> Thanks Andreas,
>
> Yeah, tried that. It looks like the alternatives mechanism will let you choose
> between sun java and openjdk java. It doesn't offer a choice between
> the JRE and JDK, which, I suppose, is because you're using the JRE's
> java executable either way.
>
> I'm guessing that the issue is that the environment in which the Javac
> Ant task runs is different that the environment in which start.jar
> runs, either by spawning sub-processes or by having a distinct
> classloader. I was hoping someone who understands the guts of that
> could chime in w/ a means of configuring that environment/classloader.
>
> Symlinking tools.jar into .../jre/lib/ext/ is working for now, but
> seems like a hack.
>
> - Chris
> _______________________________________________
> jetty-users mailing list
>
jetty-users@xxxxxxxxxxx
>
https://dev.eclipse.org/mailman/listinfo/jetty-users
_______________________________________________
jetty-users mailing list
jetty-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/jetty-users