I get java code 13 when I try to run eclipse

I am new to this and wanted to try my hand at developing Android applications. so I downloaded the SDK and ADT from https://developer.android.com . after that I realized that I needed a Java thing, so I downloaded jdk1.8.0_20 from the Java site. my ecplise folder is in the c: \ Android \ directory ("Android" is the folder that I created for this purpose), Java installed, I’m located in C: \ Program Files (x86) \ Java. My system also runs on 64-bit Windows 7. Now when I run eclipse, I get the following error.

Java was started but returned exit code=13 C:\ProgramData\Oracle\Java\javapath\javaw.exe -Dosgi.requiredJavaVersion=1.6 -XX:MaxPermSize=256m -Xms512m -Xmx1024m -jar C:\Android\eclipse\\plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar -os win32 -ws win32 -arch x86_64 -showsplash C:\Android\eclipse\\plugins\org.eclipse.platform_4.2.2.v201302041200\splash.bmp -launcher C:\Android\eclipse\eclipse.exe -name Eclipse --launcher.labrary C:\Android\eclipse\plugins\org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.200.v20120913-144807\eclipse_1503.dll -startup C:\Android\eclipse\\plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar --launcher.overrideVmargs -exit data f24_5c - -launcher.library plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.200.v20120913-144807 -product com.android.ide.eclipse.adt.package.adtproduct - -launcher.XXMaxPermSize256m - -launcher.defaultAction openfile -vm C:\ProgramData\Oracle\Java\javapath\javaw.exe -vmargs -Dosgi.requiredJavaVersion=1.6 -XX:MaxPermSize=256m -Xms512m -Xmx1024m -jar C:\Android\eclipse\\plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar 

now after all this i checked the eclipse.ini file and that is what it had

 -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 com.android.ide.eclipse.adt.package.adtproduct -showsplash org.eclipse.platform - -launcher.XXMaxPermSize256m - -launcher.defaultAction openFile -vmargs -Dosgi.requiredJavaVersion=1.6 -XX:MaxPermSize=256m -Xms512m -Xmx1024m 

So can someone please help me and tell me what to do .. or better yet, tell me what I need to download and install on my 64-bit Windows 7 system so that I can start learning some Android application development. Your help will be greatly appreciated.

+7
java eclipse
source share
6 answers

This problem happened to me overnight when I did not change anything. I suspect there was an automatic update of C:\ProgramData\Oracle\Java .

I solved this problem by simply renaming C:\ProgramData\Oracle\Java to C:\ProgramData\Oracle\JavaXXX so that it was not found, and $ JAVA_HOME is used instead.

I don’t have time to look into this further and will happen if my change breaks something else :(

+10
source share

un-install Java 32 bits and installing 64 bits did the trick for me.

https://www.java.com/en/download/manual.jsp

+1
source share

I got this error yesterday. This is how I solved it, at least for Windows 7. Go to Control Panel → Appearance and Personalization Under “Folder Options”

Click “Show hidden files and folders”. What it looks like. Now you are ready to solve the problem.

Go to the path that gives the error code. [Win] + [E] to open the explorer at the root. After you find the Java folder inside the "Oracle" directory. Delete it. As soon as you do it.

try running Eclipse again. Now Eclipse will be able to find java again. your JAVA_HOME variable is in your way.

+1
source share

make sure you have work with 32bit or 64bit eclipse and java. use either 32 bits or 64 bits. look at the link

0
source share

The Android SDK does not support Java 8. You need to install Java 7. And make sure that the xbit version for Android is the same xbit version as the installed Java

0
source share

you need to install JDK v8, because you update your version of JAVA: D, open the start and write cmd, open the console and set: java -version and maby you have this:

java version "1.8.0_25" Java (TM) SE Runtime Environment (build 1.8.0_25-b18) Java HotSpot (TM) Client VM (build 25.25-b02, mixed mode, shared)

So update your JDK bro !: D

0
source share

All Articles