Information: java.lang.ClassNotFoundException:

I'm fairly new to Java and IntelliJ.
I was working on a project for a while that was completed and then I somewhat forgot about it.
I was asked to make some changes a couple months later, but at this point I was using a new computer.
I then proceeded to download the latest version of IntelliJ. I downloaded all the source from our CVS (which should be 100% working.) I get this error when I attempt to compile it.
I think it has to do with not having setup IntelliJ correctly... Any ideas?



Information: java.lang.ClassNotFoundException: com.sun.tools.javac.Main
Information: at java.net.URLClassLoader$1.run(URLClassLoader.java:199)
Information: at java.security.AccessController.doPrivileged(Native Method)
Information: at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
Information: at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
Information: at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)
Information: at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
Information: at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
Information: at java.lang.Class.forName0(Native Method)
Information: at java.lang.Class.forName(Class.java:141)
Information: at com.intellij.rt.compiler.JavacRunner.main(JavacRunner.java:27)
Information: Exception in thread "main"
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

3 comments
Comment actions Permalink

Hello Andrew,

Add lib/tools.jar from the JDK installation to the JDK classpath.

-


Maxim Shafirov
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

I'm fairly new to Java and IntelliJ.

I was working on a project for a while that was completed and then I
somewhat forgot about it.

I was asked to make some changes a couple months later, but at this
point I was using a new computer.

I then proceeded to download the latest version of IntelliJ. I
downloaded all the source from our CVS (which should be 100% working.)
I get this error when I attempt to compile it.

I think it has to do with not having setup IntelliJ correctly... Any
ideas?

Information: java.lang.ClassNotFoundException:
com.sun.tools.javac.Main
Information: at java.net.URLClassLoader$1.run(URLClassLoader.java:199)
Information: at java.security.AccessController.doPrivileged(Native
Method)
Information: at
java.net.URLClassLoader.findClass(URLClassLoader.java:187)
Information: at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
Information: at
sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)
Information: at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
Information: at
java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
Information: at java.lang.Class.forName0(Native Method)
Information: at java.lang.Class.forName(Class.java:141)
Information: at
com.intellij.rt.compiler.JavacRunner.main(JavacRunner.java:27)
Information: Exception in thread "main"
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



0
Comment actions Permalink

Oops, too fast...
The problem most probably is your JDK configuration points to JRE installation
actually. Should point to JDK

Hello Andrew,

Add lib/tools.jar from the JDK installation to the JDK classpath.

------------------
Maxim Shafirov
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

>> I'm fairly new to Java and IntelliJ.
>>
>> I was working on a project for a while that was completed and then I
>> somewhat forgot about it.
>>
>> I was asked to make some changes a couple months later, but at this
>> point I was using a new computer.
>>
>> I then proceeded to download the latest version of IntelliJ. I
>> downloaded all the source from our CVS (which should be 100%
>> working.) I get this error when I attempt to compile it.
>>
>> I think it has to do with not having setup IntelliJ correctly... Any
>> ideas?
>>
>> Information: java.lang.ClassNotFoundException:
>> com.sun.tools.javac.Main
>> Information: at
>> java.net.URLClassLoader$1.run(URLClassLoader.java:199)
>> Information: at java.security.AccessController.doPrivileged(Native
>> Method)
>> Information: at
>> java.net.URLClassLoader.findClass(URLClassLoader.java:187)
>> Information: at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
>> Information: at
>> sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)
>> Information: at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
>> Information: at
>> java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
>> Information: at java.lang.Class.forName0(Native Method)
>> Information: at java.lang.Class.forName(Class.java:141)
>> Information: at
>> com.intellij.rt.compiler.JavacRunner.main(JavacRunner.java:27)
>> Information: Exception in thread "main"
>> 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


0
Comment actions Permalink

Looks like this took care of the problem.
Thanks Maxim!

--Andrew

0

Please sign in to leave a comment.