Exception in thread "main" java.lang.NoClassDefFoundError: com.intellij.uti

Hello,
having a problem installing idea-7757 under Opensuse 11 x64 / jdk 1.6u6.

Executing the idea.sh script is giving the following error:

Exception in thread "main" java.lang.NoClassDefFoundError: com.intellij.util.lan g.ClassPath
at java.lang.Class.initializeClass(libgcj.so.9)
at com.intellij.util.lang.UrlClassLoader.]]>(UrlClassLoader.java:51)
at com.intellij.ide.plugins.PluginManager.initClassloader(PluginManager.java: 836)
at com.intellij.ide.plugins.PluginManager.bootstrap(PluginManager.java:775)
at com.intellij.ide.plugins.PluginManager.main(PluginManager.java:122)
at com.intellij.ide.plugins.PluginManager.main(PluginManager.java:113)
at com.intellij.idea.Main.main(Main.java:20)
Caused by: java.lang.ClassNotFoundException: sun.misc.Resource not found in gnu. gcj.runtime.SystemClassLoader{urls=[file:../lib/bootstrap.jar,file:../lib/openap i.jar,file:../lib/jdom.jar,file:../lib/log4j.jar,file:../lib/extensions.jar,file :../lib/trove4j.jar,file:/usr/lib64/jvm/java/lib/tools.jar,file:./], parent=gnu. gcj.runtime.ExtensionClassLoader{urls=[], parent=null}}
at java.net.URLClassLoader.findClass(libgcj.so.9)
at java.lang.ClassLoader.loadClass(libgcj.so.9)
at java.lang.ClassLoader.loadClass(libgcj.so.9)
at java.lang.Class.initializeClass(libgcj.so.9)
...6 more

Any ideas ?

Thanks in advance

Mats

6 comments
Comment actions Permalink

Hello Matthias,

You're trying to run IDEA under gcj, not under a Sun JDK. This is not supported.

Hello,
having a problem installing idea-7757 under Opensuse 11 x64 / jdk
1.6u6.
Executing the idea.sh script is giving the following error:

Exception in thread "main" java.lang.NoClassDefFoundError:
com.intellij.util.lan
g.ClassPath
at java.lang.Class.initializeClass(libgcj.so.9)
at
com.intellij.util.lang.UrlClassLoader.<init>(UrlClassLoader.java:51)
at
com.intellij.ide.plugins.PluginManager.initClassloader(PluginManager.j
ava: 836)
at
com.intellij.ide.plugins.PluginManager.bootstrap(PluginManager.java:77
5)
at
com.intellij.ide.plugins.PluginManager.main(PluginManager.java:122)
at
com.intellij.ide.plugins.PluginManager.main(PluginManager.java:113)
at com.intellij.idea.Main.main(Main.java:20)
Caused by: java.lang.ClassNotFoundException: sun.misc.Resource not
found in gnu.
gcj.runtime.SystemClassLoader{urls=[file:../lib/bootstrap.jar,file:../
lib/openap
i.jar,file:../lib/jdom.jar,file:../lib/log4j.jar,file:../lib/extension
s.jar,file
:../lib/trove4j.jar,file:/usr/lib64/jvm/java/lib/tools.jar,file:./],
parent=gnu.
gcj.runtime.ExtensionClassLoader{urls=[], parent=null}}
at java.net.URLClassLoader.findClass(libgcj.so.9)
at java.lang.ClassLoader.loadClass(libgcj.so.9)
at java.lang.ClassLoader.loadClass(libgcj.so.9)
at java.lang.Class.initializeClass(libgcj.so.9)
...6 more
Any ideas ?

Thanks in advance

Mats

--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0
Comment actions Permalink

You are right. Removing the gcj and installing the sun package did it.
Now i am havin annother problem:

a small java app window appears - titled "Complete Installation" but nothing more happens.

Waht can i do now ?

Mats

0
Comment actions Permalink

hi
i have this error after execute this command: ./idea.sh

Exception in thread "main" java.lang.NoClassDefFoundError: com.intellij.util.lang.ClassPath
   at java.lang.Class.initializeClass(libgcj.so.9)
   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:38)
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/lib64/jvm/java/lib/tools.jar,file:./], parent=gnu.gcj.runtime.ExtensionClassLoader{urls=[], parent=null}}
   at java.net.URLClassLoader.findClass(libgcj.so.9)
   at java.lang.ClassLoader.loadClass(libgcj.so.9)
   at java.lang.ClassLoader.loadClass(libgcj.so.9)
   at java.lang.Class.initializeClass(libgcj.so.9)
   ...5 more

please help me.
my linux is suse11. and my idea  is version 8.

0
Comment actions Permalink

Hello nasim,

Please make sure that your JAVA_HOME environment variable points to a Sun
JDK 6 installation. Running IntelliJ IDEA under gcj is not supported.

hi
i have this error after execute this command: ./idea.sh
Exception in thread "main" java.lang.NoClassDefFoundError:
com.intellij.util.lang.ClassPath
at java.lang.Class.initializeClass(libgcj.so.9)
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:38)
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:../li
b/extensions.jar,file:../lib/trove4j.jar,file:/usr/lib64/jvm/java/lib/
tools.jar,file:./],
parent=gnu.gcj.runtime.ExtensionClassLoader{urls=[], parent=null}}
at java.net.URLClassLoader.findClass(libgcj.so.9)
at java.lang.ClassLoader.loadClass(libgcj.so.9)
at java.lang.ClassLoader.loadClass(libgcj.so.9)
at java.lang.Class.initializeClass(libgcj.so.9)
...5 more
please help me.
my linux is suse11. and my idea  is version 8.
---
Original message URL:
http://devnet.jetbrains.net/message/5275172#5275172


--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0
Comment actions Permalink

hi dmitry
how  can i sure this?
when i "echo $JAVA_HOME " in command line i see this:
/usr/lib64/jvm/java
how can i edit this value? and what value i shoud export to it?
please help me. thank you.

0
Comment actions Permalink

hi dmitry.
at last i win.
intellij work.
i do this: export JDK_HOME=/usr/lib64/jvm/java-1.6.0-sun-1.6.0.u6 in suse 11.
then : ./idea.sh .
this have error this cant find tool.jar.
then i copy tool.jar in  java-1.6.0-sun-1.6.0.u6/bin  directory.
now it works.
tank u for help.

0

Please sign in to leave a comment.