Community Edition 12

I am trying to do plugin development with community edition 12.1.4

I am running on Windows 7 64-bit

For the plugin SDK, I have specified the installation directory of 12.1.4
For the "Internal Java Platform" I have specified 32-bit Java 1.6

When I try to run the plugin project from IntelliJ IDE, I get the following message in the "Run" tool window:
--------------------------------------------
-Djava.net.preferIPv4Stack=true "-Xbootclasspath/a:C:/JetBrains/IntelliJ IDEA Community Edition 12.1.4\lib\boot.jar" -Didea.config.path=C:\Users\thill\.IdeaIC12\system\plugins-sandbox\config -Didea.system.path=C:\Users\thill\.IdeaIC12\system\plugins-sandbox\system -Didea.plugins.path=C:\Users\thill\.IdeaIC12\system\plugins-sandbox\plugins -Didea.platform.prefix=Idea -Didea.launcher.port=7532 "-Didea.launcher.bin.path=C:\JetBrains\IntelliJ IDEA Community Edition 12.1.4\bin" -Dfile.encoding=windows-1252 -classpath "C:\Program Files (x86)\Java\jdk1.6.0_32\lib\tools.jar;C:/JetBrains/IntelliJ IDEA Community Edition 12.1.4\lib\idea_rt.jar;C:/JetBrains/IntelliJ IDEA Community Edition 12.1.4\lib\idea.jar;C:/JetBrains/IntelliJ IDEA Community Edition 12.1.4\lib\bootstrap.jar;C:/JetBrains/IntelliJ IDEA Community Edition 12.1.4\lib\extensions.jar;C:/JetBrains/IntelliJ IDEA Community Edition 12.1.4\lib\util.jar;C:/JetBrains/IntelliJ IDEA Community Edition 12.1.4\lib\openapi.jar;C:/JetBrains/IntelliJ IDEA Community Edition 12.1.4\lib\trove4j.jar;C:/JetBrains/IntelliJ IDEA Community Edition 12.1.4\lib\jdom.jar;C:/JetBrains/IntelliJ IDEA Community Edition 12.1.4\lib\log4j.jar;C:\JetBrains\IntelliJ IDEA Community Edition 12.1.4\lib\idea_rt.jar" com.intellij.rt.execution.application.AppMain com.intellij.idea.Main


Could not create the Java virtual machine.
Invalid initial heap size: -Xms128m


Process finished with exit code 1
--------------------------------------------


Here is what the IntelliJ log file shows:
-------------------------------------------------------
2013-08-02 12:33:59,585 [78311401]   INFO - ij.compiler.impl.CompileDriver - COMPILATION STARTED (BUILD PROCESS)
2013-08-02 12:33:59,601 [78311417]   INFO - s.impl.stores.FileBasedStorage - Document was not loaded for $PROJECT_CONFIG_DIR$/ant.xml file is null
2013-08-02 12:34:01,233 [78313049]   INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stdout]: Build process started. Classpath: /C:/JetBrains/IntelliJ IDEA Community Edition 12.1.4/lib/jgoodies-forms.jar;C:/JetBrains/IntelliJ IDEA Community Edition 12.1.4/lib/jdom.jar;C:/JetBrains/IntelliJ IDEA Community Edition 12.1.4/lib/resources_en.jar;C:/JetBrains/IntelliJ IDEA Community Edition 12.1.4/lib/jna-utils.jar;/C:/JetBrains/IntelliJ IDEA Community Edition 12.1.4/lib/openapi.jar;/C:/JetBrains/IntelliJ IDEA Community Edition 12.1.4/lib/asm4-all.jar;C:/JetBrains/IntelliJ IDEA Community Edition 12.1.4/lib/annotations.jar;/C:/JetBrains/IntelliJ IDEA Community Edition 12.1.4/lib/nanoxml-2.2.3.jar;/C:/JetBrains/IntelliJ IDEA Community Edition 12.1.4/lib/idea.jar;C:/JetBrains/IntelliJ IDEA Community Edition 12.1.4/lib/jna.jar;C:/JetBrains/IntelliJ IDEA Community Edition 12.1.4/lib/trove4j.jar;/C:/JetBrains/IntelliJ IDEA Community Edition 12.1.4/lib/idea_rt.jar;/C:/JetBrains/IntelliJ IDEA Community Edition 12.1.4/lib/jps-server.jar;C:/JetBrains/IntelliJ IDEA Community Edition 12.1.4/lib/oromatcher.jar;/C:/JetBrains/IntelliJ IDEA Community Edition 12.1.4/lib/forms_rt.jar;C:/JetBrains/IntelliJ IDEA Community Edition 12.1.4/lib/log4j.jar;/C:/JetBrains/IntelliJ IDEA Community Edition 12.1.4/lib/netty-3.6.2.Final.jar;/C:/JetBrains/IntelliJ IDEA Community Edition 12.1.4/lib/ecj-4.2.1.jar;C:/JetBrains/IntelliJ IDEA Community Edition 12.1.4/lib/picocontainer.jar;/C:/JetBrains/IntelliJ IDEA Community Edition 12.1.4/lib/protobuf-2.4.1.jar;/C:/JetBrains/IntelliJ IDEA Community Edition 12.1.4/lib/optimizedFileManager.jar;C:/JetBrains/IntelliJ IDEA Community Edition 12.1.4/lib/util.jar;C:/JetBrains/IntelliJ IDEA Community Edition 12.1.4/lib/tools.jar;C:/JetBrains/IntelliJ IDEA Community Edition 12.1.4/lib/guava-12.0.jar;C:/JetBrains/IntelliJ IDEA Community Edition 12.1.4/plugins/ant/lib/ant-jps-plugin.jar;C:/JetBrains/IntelliJ IDEA Community Edition 12.1.4/plugins/devkit/lib/jps/devkit-jps-plugin.jar;C:/JetBrains/IntelliJ IDEA Community Edition 12.1.4/plugins/uiDesigner/lib/jps/ui-designer-jps-plugin.jar;C:/JetBrains/IntelliJ IDEA Community Edition 12.1.4/plugins/eclipse/lib/eclipse-jps-plugin.jar;C:/JetBrains/IntelliJ IDEA Community Edition 12.1.4/plugins/eclipse/lib/common-eclipse-util.jar;C:/JetBrains/IntelliJ IDEA Community Edition 12.1.4/plugins/android/lib/jps/android-jps-plugin.jar;C:/JetBrains/IntelliJ IDEA Community Edition 12.1.4/plugins/android/lib/android-common.jar;C:/JetBrains/IntelliJ IDEA Community Edition 12.1.4/plugins/android/lib/android-rt.jar;C:/JetBrains/IntelliJ IDEA Community Edition 12.1.4/plugins/android/lib/sdklib.jar;C:/JetBrains/IntelliJ IDEA Community Edition 12.1.4/plugins/android/lib/common.jar;C:/JetBrains/IntelliJ IDEA Community Edition 12.1.4/plugins/android/lib/jarutils.jar;C:/JetBrains/IntelliJ IDEA Community Edition 12.1.4/plugins/android/lib/layoutlib_api.jar;C:/JetBrains/IntelliJ IDEA Community Edition 12.1.4/plugins/javaFX/lib/javaFX-jps-plugin.jar;C:/JetBrains/IntelliJ IDEA Community Edition 12.1.4/plugins/javaFX/lib/common-javaFX-plugin.jar
2013-08-02 12:34:02,154 [78313970]   INFO - lij.compiler.impl.CompilerUtil -  COMPILATION FINISHED (BUILD PROCESS); Errors: 0; warnings: 0 took 2566 ms: 0 min 2sec
2013-08-02 12:34:02,299 [78314115]   INFO - s.impl.stores.FileBasedStorage - Document was not loaded for $APP_CONFIG$/consoleFolding.xml file is null
-------------------------------------------------------

The plugin itself is very small and simple. I can compile it, build the .jar and install it from disk. Then if I restart IntelliJ, it appears in IntelliJ and works as expected.

So it does not appear to be a problem with the plugin itself.

I have no trouble running plugin projects from IntelliJ Ultimate 10.5 or IntelliJ Ultimate 11.1.

I have tried increasing both the Xms and Xmx settings. No matter what I set as the Xms setting, I still get the "Invalid initial heap size" error.

Here are my run parameters (which I believe are the defaults):
----------------------------------------------------------------------------------------
-Xms128m
-Xmx512m
-XX:MaxPermSize=250m
-XX:ReservedCodeCacheSize=64m
-XX:+UseCodeCacheFlushing
-ea
-Dsun.io.useCanonCaches=false
-Djava.net.preferIPv4Stack=true
----------------------------------------------------------------------------------------

Any suggestions?

6 comments

This is very strange. What exactly is the version of the JDK you've selected as "Internal Java Platform"? Is it 32-bit or 64-bit?

0

Java 1.6 JDK is 32 bit:

1.6.0_32

This is the same JDK that I use for plugin projects in 10.5 and 11.1 Ultimate edition.

0

Does it help if you remove -Xms entirely? It's not actually a required argument.

0

If I remove just the -Xms arg or both the -Xms and -Xmx args, I get the following error message which ends with a single quotation mark:

Could not create the Java virtual machine.
'

0

Looks like you have a typo somewhere else in either the VM options or the program arguments field.

0

Thank you Dmitry!

I copied my current VM Options to a text editor, then replaced them with the default settings; and it worked!

I then pasted the default VM Options into the text editor to compare.

The only difference was new line characters separating the options in my previous settings (which don't show in the IntelliJ dialog):

-Xms128m
-Xmx512m
-XX:MaxPermSize=250m
-XX:ReservedCodeCacheSize=64m
-XX:+UseCodeCacheFlushing
-ea
-Dsun.io.useCanonCaches=false
-Djava.net.preferIPv4Stack=true

versus

-Xms128m  -Xmx512m  -XX:MaxPermSize=250m  -XX:ReservedCodeCacheSize=64m  -XX:+UseCodeCacheFlushing  -ea  -Dsun.io.useCanonCaches=false  -Djava.net.preferIPv4Stack=true

Thank you again!

0

Please sign in to leave a comment.