0

I had updated my Java version from version 6 to 8. Yesterday, and eclipse won't open I got error 13, googled the solution and applied the changes but its still not working. To confirm what is in my config file

-startup
plugins/org.eclipse.equinox.launcher_1.3.100.v20150511-1540.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.300.v20150602- 1417
-product
org.eclipse.epp.package.java.product
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
256M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
--launcher.appendVmargs

-vm
C:\Program Files (x86)\Java\jdk1.8.0_101\bin\javaw.exe
-vmargs

-Dosgi.requiredJavaVersion=1.7
-Xms256m
-Xmx1024m
  • Have you tried enclosing the -vm parameter in quotes ? – Ramachandran.A.G Aug 01 '16 at 03:46
  • you mean by doing "-vm" ? @RamachandranGA –  Aug 01 '16 at 03:48
  • Something like this -vm "C:\Program Files (x86)\Java\jdk1.8.0_101\bin\javaw.exe" – Ramachandran.A.G Aug 01 '16 at 03:55
  • Try omitting the -vm argument - you only need this if you for some reason do not like the default jvm for Eclipse itself. You can then tell Eclipse when it is running which JRE to use for your project. – Thorbjørn Ravn Andersen Aug 01 '16 at 03:57
  • when I do that it tells me that a jre or a jdk must be availiable in order to run eclipse error. @RamachandranGA –  Aug 01 '16 at 03:57
  • 1
    You are trying to run a 64-bit copy of Eclipse with a 32-bit Java Runtime. That will not work. They **must** match. https://www.eclipse.org/forums/index.php/t/198527/ – nitind Aug 01 '16 at 04:02
  • Install the 64 bit Java Runtime Environment giving you the "java" command directly from the command line – Thorbjørn Ravn Andersen Aug 01 '16 at 04:06
  • I have a 64 bit computer so and the eclipse file reads 32 even when I download 64 bit version from eclipse.org @nitind –  Aug 01 '16 at 04:08
  • You must understand why your system does what it does. Delete your current eclipse folder and unzip it again. Install 64-bit JRE. Start Eclipse. – Thorbjørn Ravn Andersen Aug 01 '16 at 04:11
  • http://www.oracle.com/technetwork/java/javase/downloads/jre8-downloads-2133155.html I installed the Windows x64 offline version. that is what I have installed. My eclipse is a 64 bit version C:\Users\admin\Downloads\eclipse-java-mars-2-win32-x86_64 @ThorbjørnRavnAndersen –  Aug 01 '16 at 04:16
  • http://www.oracle.com/technetwork/java/javase/downloads/jre8-downloads-2133155.html offers JRE downloads. You're pointing the eclipse.ini at a 32-bit JDK. Look under the non-x86 "Program Files" directory for your installed 64-bit JRE. – nitind Aug 01 '16 at 04:48
  • thank you so much @nitind !!! I haven't been able to work for 2 days because of this. It worked thanks so much –  Aug 01 '16 at 04:58
  • 1
    nice glad this works. –  Apr 16 '17 at 04:12

1 Answers1

-1

enter image description here

maybe you should clean the VM arguments and I saw you add a parameter 'Dosgi' it need jdk version 1.7 so maybe you should change your JDK version .

you can change your vm argements in debug configurations.

黄伟杰
  • 27
  • 1
  • 12