SourceForge has been redesigned. Learn more.

#714 JDK 6.0_11 not found

2: Annoying

In revision 4698 and JDK 6.0_11, DrJava selects the following compiler for me:
"Compiler ready: JDK 6.0_11 from the runtime class path."

When I compile, I get the error message:

1 error found:
File: (no associated file) [line: (no source location)]
Error: java.lang.NoClassDefFoundError: com/sun/tools/javac/util/Context

If I enter the path for the tools.jar file, everything works. In the last version on this wasn't necessary, and it detected my tools.jar correctly. So something with detecting compilers went wrong after revision 4673.


  • Mathias Ricken

    Mathias Ricken - 2009-01-03

    The problem occurs right in the next revision, 4674. This was the revision where DJError was introduced to replace CompilerError as base class. I can't spot the problem, though.

  • Mathias Ricken

    Mathias Ricken - 2009-01-03

    Fixed in revision 4699.

    The JDK6 compiler adapter was created and returned available even
    if tools.jar was not found. In revision 4674, a test for the class was removed, but this test
    is essential for finding out whether the compiler (in the tools.jar)
    file is available.

  • Mathias Ricken

    Mathias Ricken - 2009-01-03
    • milestone: --> 2: Annoying
    • assigned_to: nobody --> mgricken
    • status: open --> closed-fixed

Log in to post a comment.