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.
请先登录再写评论。
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.
--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"