#14 Classes do not become available to tools.jar


I tried to use one-jar, but in my application, I need to generate some source Java code on-the-fly, and use the access to the Java compiler at tools.jar to compile the generated java code. The point is that the Java Compiler needs the jar files that are embedded in the lib/*.jar in order to compile, and it can't find them, for some reason. I really don't know if it is possible to solve that, because I don't know how to tell the Java compiler it should use a JarClassLoader instead of its usual classloader.


  • P. Simon Tuffs

    P. Simon Tuffs - 2010-06-01

    tools.jar is loaded by the applcation bootstrap classloader. Consequently, it's classes cannot look down into the one-jar. This is a classic "inversion" problem, and I don't know if there is a solution. Marking postponed, will research for 0.98.

  • P. Simon Tuffs

    P. Simon Tuffs - 2010-06-01
    • assigned_to: nobody --> simontuffs
    • status: open --> open-postponed

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.

No, thanks