IntelliJ 10.5 ClassNotFoundException -XX:MaxHeapFreeRatio=70

I am having trouble starting Intellij. I get the following exception when running idea.sh on ubuntu 10.10 64bit.

Java HotSpot(TM) 64-Bit Server VM (build 17.0-b16, mixed mode)
Exception in thread "main" java.lang.NoClassDefFoundError: –XX:MaxHeapFreeRatio=70
Caused by: java.lang.ClassNotFoundException: –XX:MaxHeapFreeRatio=70
 at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
 at java.security.AccessController.doPrivileged(Native Method)
 at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
 at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
Could not find the main class: –XX:MaxHeapFreeRatio=70.  Program will exit.



I had been able to start this before.

1 comment
Comment actions Permalink

Hello eqbal,

You have incorrectly edited the idea.sh file. As far as I can see, the character
before "XX" is an em dash, not a simple dash character, and the JVM can't
interpret it as a valid option name.

The simplest way to get IntelliJ to working condition is to delete the installation
and unpack it from the distribution archive again.

I am having trouble starting Intellij. I get the following exception
when running idea.sh on ubuntu 10.10 64bit.

Java HotSpot(TM) 64-Bit Server VM (build 17.0-b16, mixed mode)
Exception in thread "main" java.lang.NoClassDefFoundError:
–XX:MaxHeapFreeRatio=70
Caused by: java.lang.ClassNotFoundException: –XX:MaxHeapFreeRatio=70
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
Could not find the main class: –XX:MaxHeapFreeRatio=70.  Program will
exit.
I had been able to start this before.

---
Original message URL:
http://devnet.jetbrains.net/message/5309164#5309164


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


0

Please sign in to leave a comment.