Eclipse gives "Java was running, but exit code 13 returned"

All hell broke down after I uninstalled my java 6 and installed java 7 (both jdk and jre). When opening the eclipse, he gave the error "No JVM in .....". So, I explicitly indicated the location of javaw.exe as

-vm 

C: \ Progra ~ 2 \ Java \ jdk1.7.0_45 \ Bin \ javaw.exe

in the eclipse.ini file. Now he says: "Java was running, but exit code 13 returned." Also, in the elispse.ini file, I changed -Dosgi.requiredJavaVersion = 1.5 to -Dosgi.requiredJavaVersion = 1.7

There are many solutions on the Internet, such as:

MyEclipse 10 does not start "Java was running, but returned exit code 13"

but none of them work. Any insight?

+49
java eclipse jvm
Nov 01 '13 at 5:24
source share
12 answers

if you upgraded your jdk to 7, you will most likely run into this problem.

This is mainly due to:

  • incompatible sdk and jdk
  • using a 32-bit version of Java for your 64-bit eclipse JVM ( programfilex86-java )

WHAT YOU SHOULD DO: first check the eclipse.ini file to see if you have a path pointing to your jdk it should look something like this.

 -vm C:\Program Files\Java\blah\blah\blah\javaw.exe 

if not, find the jdk 7 javaw.exe
sample:

 C:\Program Files\Java\jdk1.7.0_45\jre\bin\javaw.exe 

Insert -vm and the path below it into your eclipse.ini file

 -vm C:\Program Files\Java\jdk1.7.0_45\jre\bin\javaw.exe 

make sure you type above just before -vmargs and after OpenFile

+74
Jul 05 '14 at 15:26
source share
โ€” -

This problem arose because either you are installing a new version of jdk, so that you have a 32-bit version and a 64-bit version

how to solve the problem, just start the computer and go to c, then you will see location

after that you are probably using 32 bits, so just select C: \ Program Files and there you will find the java folder

in him location 2

so you have many different versions of jdk, so you can easily select jre7 and k bin, and you will find javaw.exe in it, like loaction 3

now just take a copy of this path and go to the beginning of the eclipse.ini type, you will see a text file, just open it and before -vmargs

write -vm enter path as photo finally

now just close eclipse again and have fun: D

+28
Apr 14 '15 at 22:36
source share

In the eclipse.ini file just put

 โ€“vm /home/aniket/jdk1.7.0_11/bin(Your path to JDK 7) 

to the line -vmargs .

+22
Nov 01 '13 at 5:48 on
source share

The solution can be found here.

The eclipse.ini file should look something like this:

 -startup plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar --launcher.library plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.200.v20120913-144807 -product adtproduct --launcher.XXMaxPermSize 256M -showsplash org.eclipse.platform --launcher.XXMaxPermSize 256m --launcher.defaultAction openFile --launcher.appendVmargs -vm C:\Program Files\Java\jdk1.8.0_25\bin\javaw.exe -vmargs -Dosgi.requiredJavaVersion=1.6 -Xms40m -Xmx768m 
+21
Jan 24 '15 at 7:45
source share

I had the same problem. I used windows8 with 64-bit OS. I just changed the path to the Program Files (* 86) and then got started. I put this line in the eclipse.ini file, for example,

 -vm C:\Program Files (x86)\Java\jre7\bin\javaw.exe 
+8
Aug 07 '14 at 5:38
source share

It will be a 32-bit version of eclipse, for example, if you use the 32-bit version of eclipse in a 64-bit JVM, this error will result.

To confirm this check, go to your eclipse configuration folder. The log will be as follows: java.lang.UnsatisfiedLinkError: unable to load 32-bit SWT libraries into a 64-bit JVM ...

try to set either 64-bit eclipse or run in 32-bit jvm

+5
May 11 '14 at 14:48
source share

I set 32 โ€‹โ€‹bits of ADT and it works fine without changing my configuration (Windows 7 64 bit, Java 6 32 bit).

+2
Jan 31 '14 at 5:18
source share

enter image description here I fixed this by following these steps:

  • Eclipse finds JAVA executables from 'C: \ ProgramData \ Oracle \ Java \ javapath'

    2. The folder structure will contain shortcuts for the following executable files, i. java.exe
    II. javaw.exe
    III. javaws.exe 3. For me, executable paths pointed to my location (ProgramFiles (x84))

  • I fixed it to the path to the program files (64 bits) and the problem was resolved.

Please find a screenshot for the same.

+2
Dec 13 '14 at 18:24
source share

Instead of opening eclipse.exe, first open a folder named configuration, then you will get a log file, such as 1401241141809.log; open that log (open last) detailed errors will be listed there. Example: java.lang.UnsatisfiedLinkError: cannot load 64-bit SWT libraries on a 32-bit JVM

means you need to have JVM and SDK of the same version.

+1
May 28 '14 at 1:59
source share

I could solve this problem by changing the 64-bit version of JDK1.8 to JDK 1.8 32bit (x86)

+1
Nov 24 '14 at 12:24
source share

Check the PATH environment variable once. Make sure the exact location of your JDK is shown there.

+1
Dec 13 '14 at 15:29
source share

I have the same problem, but when I turned off Java 8, it works fine.

0
Oct 23 '14 at 5:10
source share



All Articles