Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jetty-users] com.sun.tools.javac.Main is not on the classpath on Ubuntu Natty

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


Back to the top