"Compiler Internal Error" - how can I see classpath?

I am getting an error whereby a jar file doesn't seem to get picked up for compilation. I've gone over my settings repeatedly trying to see where it might get lost, but everything looks OK.

idea.log shows the compiler command-line, which refers to several temp files where (I believe?) classpath and source file information is stored for the compiler to use. However, these files are gone immediately after the process fails, so I can't figure out what was in them.

Is there a way to pause the compiler or have these files kept, or something like that, in order to see whether this jar file is showing up? Or any other ideas to track this down?

Here's what the Make window shows: (thought I could copy/paste, but not, so I'll just put the interesting line.)

"Information:com.sun.tools.javac.code.Symbol$CompletionFailure: file javax\persistence\Table.class not found"

2 comments
Comment actions Permalink

Hi Steven,
This might be a project configuration problem.
If you have a multi-module project, please check that the library is attached to the module whether its client class resides. For
compilation purposes all library dependencies should be made explicit. If you have module A that depends on module B and the library
in question is attached to module B, but the client class belongs to A, the library is not "visible" to module A. To make it
reachable at the compilation time, the library must be either exported by B, or added explicitly to the list of dependencies of A.


--
Best regards,
Eugene Zhuravlev
Software Developer
JetBrains Inc.
http://www.jetbrains.com
"Develop with pleasure!"

"Steven Bixby" <steven.bixby@inovis.com> wrote in message news:5555510.39031225133228208.JavaMail.jive@app4.labs.intellij.net...
>I am getting an error whereby a jar file doesn't seem to get picked up for compilation. I've gone over my settings repeatedly
>trying to see where it might get lost, but everything looks OK.
>

idea.log shows the compiler command-line, which refers to several temp files where (I believe?) classpath and source file
information is stored for the compiler to use. However, these files are gone immediately after the process fails, so I can't
figure out what was in them.

>

Is there a way to pause the compiler or have these files kept, or something like that, in order to see whether this jar file is
showing up? Or any other ideas to track this down?

>

Here's what the Make window shows: (thought I could copy/paste, but not, so I'll just put the interesting line.)

>

"Information:com.sun.tools.javac.code.Symbol$CompletionFailure: file javax\persistence\Table.class not found"



0
Comment actions Permalink

I also get this error.
I have a multi-module project, but the dependencies are correct. If I compile just that module where the compile fails, nothing goes wrong, but compiling everything (Ctrl+F9) yields the error for the same module that compiles fine alone.

Thomas

0

Please sign in to leave a comment.