Hi, I can't open IDE in Linux, plz help!

When I try ./idea.sh,the errors occured

Exception in thread "main" java.lang.NoClassDefFoundError: com.intellij.util.lang.ClassPath
   at java.lang.Class.initializeClass(natClass.cc:727)
   at com.intellij.util.lang.UrlClassLoader.<init>(UrlClassLoader.java:51)
   at com.intellij.ide.ClassloaderUtil.initClassloader(ClassloaderUtil.java:102)
   at com.intellij.ide.Bootstrap.main(Bootstrap.java:23)
   at com.intellij.ide.Bootstrap.main(Bootstrap.java:19)
   at com.intellij.idea.Main.main(Main.java:29)
Caused by: java.lang.ClassNotFoundException: sun.misc.Resource not found in gnu.gcj.runtime.SystemClassLoader{urls=[file:../lib/bootstrap.jar,file:../lib/util.jar,file:../lib/jdom.jar,file:../lib/log4j.jar,file:../lib/extensions.jar,file:../lib/trove4j.jar,file:/usr/lib/jvm/java/lib/tools.jar,file:./], parent=gnu.gcj.runtime.ExtensionClassLoader{urls=[], parent=null}}
   at java.net.URLClassLoader.findClass(URLClassLoader.java:529)
   at gnu.gcj.runtime.SystemClassLoader.findClass(natSystemClassLoader.cc:27)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:442)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:377)
   at java.lang.Class.initializeClass(natClass.cc:717)
   ...5 more

I am a freshman in Idea, plz help, thanks

2 comments
Comment actions Permalink

I see hints that you're using Gnu ClassPath to run IDEA. That won't work. You must use Sun's JVM (and, if you're doing Java programming, their JDK) to run IDEA.

While many of us appreciate the virtue of open-source software, the Gnu effort has yet to replicate a realistic alternative to Sun's Java Virtual Machine.


Randall Schulz

0
Comment actions Permalink

Thanks for you kind help, I reset the JDK_PATH and it is ok.
Thanks a lot, have a nice day~~

0

Please sign in to leave a comment.