Intellij IDEA startup error

988 Views Asked by At

Initellij IDEA (14) startup error.

$ sh idea.sh 
Unrecognized VM option 'ErrorFile=/home/asiri/java_error_in_IDEA_%p.log'
Could not create the Java virtual machine.

Java version

java version "1.5.0_22"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_22-b03)
Java HotSpot(TM) 64-Bit Server VM (build 1.5.0_22-b03, mixed mode)

Env:

Ubuntu 14.04

Any idea?

2

There are 2 best solutions below

0
On

The JVM option "ErrorFile" got introduced with Java 6, so you need to update your JDK.

0
On

Update to at least jdk 6, otherwise remove that option from the idea.sh file

SET COMMON_JVM_ARGS="-XX:ErrorFile=%USERPROFILE%\java_error_in_IDEA_%%p.log" "-Xbootclasspath/a:%IDE_HOME%/lib/boot.jar" -Didea.paths.selector=IntelliJIdea14 %IDE_PROPERTIES_PROPERTY%

Remove the following part

"-XX:ErrorFile=%USERPROFILE%\java_error_in_IDEA_%%p.log"