Anybody able to compile a plug-in with IDEA 3326?

I've recreated the IDEA-SDK, it detected that I'm using J2SDK 1.5.0_03, but
when I invoke Build|Rebuild Project I get this error in the Messages-Make
window:

Information: Exception in thread "main" java.lang.ClassNotFoundException:
com.sun.tools.javac.Main
Information: at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
Information: at java.security.AccessController.doPrivileged(Native Method)
Information: at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
Information: at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
Information: at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
Information: at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
Information: at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
Information: at java.lang.Class.forName0(Native Method)
Information: at java.lang.Class.forName(Class.java:164)
Information: at com.intellij.rt.compiler.JavacRunner.main(JavacRunner.java:27)
Information: Compilation completed with 1 errors and 0 warnings
Information: 1 error
Information: 0 warnings
Error: Compiler internal error. Process terminated with exit code 1

Tom

11 comments
Comment actions Permalink

Yes, but I've had to copy tools.jar to IDEA-HOME/lib and I'm running IDEA with
the 1.5.0_03 JRE put into IDEA-HOME/jre like it used to be before. Of course you
also need to place the tools.jar in IDEA-HOME/jre/lib. Kind weird, but it works.

Sascha

0
Comment actions Permalink

Thanks for the hint with tools.jar. I did as you suggested (copied the
J2SDK's JRE and tools.jar to jre, changed the IDEA_JDK variable, copied
tools.jar to lib), but had no success (IDEA did not start any more). Since I
have no time to play around, I'm using Eclipse now to develop an IDEA
plug-in (maybe I should do it visa-versa?).

Tom

0
Comment actions Permalink

Any comment from Jetbrains on how to work around this show-stopper?

Tom

0
Comment actions Permalink

I compiled my plugin many times today - but since about an hour
compiling doesn't work anymore - with exactly the same error.

But since I develop the same plugin for eclipse also, I can live without
compiling in idea for some hours... ;)


Johannes Schneider



Thomas Singer (MoTJ) wrote:

I've recreated the IDEA-SDK, it detected that I'm using J2SDK 1.5.0_03,
but when I invoke Build|Rebuild Project I get this error in the
Messages-Make window:

Information: Exception in thread "main"
java.lang.ClassNotFoundException: com.sun.tools.javac.Main
Information: at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
Information: at java.security.AccessController.doPrivileged(Native Method)
Information: at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
Information: at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
Information: at
sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
Information: at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
Information: at
java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
Information: at java.lang.Class.forName0(Native Method)
Information: at java.lang.Class.forName(Class.java:164)
Information: at
com.intellij.rt.compiler.JavacRunner.main(JavacRunner.java:27)
Information: Compilation completed with 1 errors and 0 warnings
Information: 1 error
Information: 0 warnings
Error: Compiler internal error. Process terminated with exit code 1

Tom

0
Comment actions Permalink

Hmm, here's my setup at work (using a separate JDK installation to run IDEA,
at home I've set IDEA_JDK to "../jre" which worked as well):

IDEA_JDK = c:\Develop\jdk1.5.0_02

IDEA-HOME/lib/
tools.jar

IDEA-HOME/jre/
copy of the jre-subdirectory from %IDEA_JDK%
lib/tools.jar

Create a new IDEA-JDK that points to IDEA-HOME and it should work.

What error did you get when IDEA didn't start any more?

Sascha

0
Comment actions Permalink

Tom,
Are you use clear 3326 installation?

--
Anna Kozlova
JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"


"Thomas Singer (MoTJ)" <I@HateSpam.de> wrote in message
news:d5o1fh$jur$1@is.intellij.net...

Please vote here: http://www.jetbrains.net/jira/browse/IDEA-1880 Thanks!

>

Tom



0
Comment actions Permalink

See also :
http://www.jetbrains.net/jira/browse/IDEA-1860

(project and jdk config attached to this defect)

0
Comment actions Permalink

Of course, I rename my old installation C:\IDEA-EAP to C:\IDEA-EAP~, create
a new directory C:\IDEA-EAP and unzip all of the idea*.zip file into this
directory. Then I remove the -- to me -- useless plugins from the
plugins-directory. With IDEA 3326 I needed to set the environment variable
JDK_HOME to point to C:\jdk1.5.0_03.

Tom

0
Comment actions Permalink

Hi Sascha,

Although I think, I now did the same as this morning, now it works. Thanks
for the follow-up.

What error did you get when IDEA didn't start any more?


Well, I've tried to point IDEA_JDK to the IDEA_HOME/jre directory. Now I use
C:\jdk1.5.0_03 to start IDEA and have a copy of the jre directory in
IDEA_HOME/jre. Very weird, but seems to work.

Tom

0
Comment actions Permalink

"Thomas Singer (MoTJ)" <I@HateSpam.de> wrote in message
news:d5n653$tf1$1@is.intellij.net...

I've recreated the IDEA-SDK, it detected that I'm using J2SDK 1.5.0_03,
but when I invoke Build|Rebuild Project I get this error in the
Messages-Make window:


I spent the weekend working on getting a Plugin environment working. Why is
this so $#%#$% hard?! JetBrains, please produce a document that describes
all the steps in detail to do Plugin development. This can't take more than
1 day of someone's time.

--
Jordan Zimmerman
Senior Software Architect
SHOP.COM
http://www.shop.com


0

Please sign in to leave a comment.