0

This is my eclipse.ini file

-startup
plugins/org.eclipse.equinox.launcher_1.3.0.v20130327-1440.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.200.v20140116-2212
-product
org.eclipse.epp.package.jee.product
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
128M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
--launcher.appendVmargs
-vmargs
-Dosgi.requiredJavaVersion=1.6
-Xms40m
-Xmx512m
-vm 
C:\Program Files\Java\jdk1.8.0_25\jre\bin\server\jvm.dll

This is the error message : Error: Could not create the java virtual machine.

Java was started but returned exit code = 1

Shyam Zawar
  • 25
  • 2
  • 11
  • put a `!` symbol before every image tag to show the image on the screen. – surajs1n Jun 19 '16 at 02:55
  • 1
    `-vm` must be *before* `-vmargs`. See [documentation](https://wiki.eclipse.org/Eclipse.ini): *All lines after `-vmargs` are passed as arguments to the JVM, so all arguments and options for eclipse must be specified before `-vmargs` (just like when you use arguments on the command-line).* Then in section "Specifying the JVM" it says: *The `-vm` option must occur **after** the other Eclipse-specific options (such as `-product`, `--launcher.*`, etc), but **before** the `-vmargs` option, since everything after `-vmargs` is passed directly to the JVM.* Wow, documentation is helpful. – Andreas Jun 19 '16 at 03:38
  • If you have 64 machine and want to use 64 bit eclipse, make sure the java that is installed in 64 bit too. – ares Jun 19 '16 at 04:40

1 Answers1

1

From https://wiki.eclipse.org/Eclipse.ini documentation, Place -vm before -vmargs

-vm 
C:\Program Files\Java\jdk1.8.0_25\jre\bin\server\jvm.dll
-vmargs
-Dosgi.requiredJavaVersion=1.6
-Xms40m
-Xmx512m
Saravana
  • 12,647
  • 2
  • 39
  • 57