I am trying to configure Eclipse Juno with Java SE 7
Here’s my eclipse.ini
-startup
plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.200.v20120522-1813
-product
org.eclipse.epp.package.jee.product
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
512M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
512M
-vm
C:/Program Files/Java/jdk1.7.0_07/bin/javaw.exe
--launcher.defaultAction
openFile
-vmargs
-Dosgi.requiredJavaVersion=1.6
-Dhelp.lucene.tokenizer=standard
-Xms128m
-Xmx1024m
I tried to change to -vm to C:/Program Files/Java/jdk1.7.0_07/bin and even tried to remove.
Still same error Failed to Create Java virtual machine.
Using Windows 7 x32 OS.
I have both Java 6 SE and Java 7 SE for different purposes.
If i give -vm as C:/Program Files/Java/jdk1.6/bin it’s working fine.
What’s the issue here. Path to JDK is fine.
I experimented little and found that
-Xmx800m
is the maximum amount I can set as -Xmx value. If i increase it beyond that, it’s failing to create. Why is it so? Why JAVA 6 SE is able to do the same thing where as Java 7 SE unable to do. My project is huge. I hit Eclipse 1.4Gb memory sometimes.
Is there a specific reason why you are trying to launch Juno with Java 7 JVM? Can you not just add/configure the java 7 jdk/jre in the JRE Preferences of Juno (ie: Preferences->JRE) and use it that way? Or do you have a specific reason why you are trying to launch it with java 7?