I've checked the other relative common posts to mine but they a slight difference that didn't give me the solution I needed:
A Java Runtime Environment (JRE) or Java Development Kit (JDK) must be available in order to run Eclipse. No Java virtual machine was found after searching the following locations:
C:\Program Files (x86)\Java\jdk1.80_25\jre\bin\javaw.exe
I have checked over and over in that path, and javaw.exe is definitely there. Any ideas what to do, I had a exit-13 problem before I followed a step to add
"-vm "path to javaw.exe" in my eclipse.ini but I don't know what to do now.
My eclipse.ini file:
-startup
plugins/org.eclipse.equinox.launcher_1.3.0.v20140415-2008.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.200.v20150204-1316
-product
org.eclipse.epp.package.cpp.product
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
256M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
-vm
C:\Program Files (x86)\Java\jdk1.8.0_25\jre\bin\javaw.exe
--launcher.appendVmargs
-vmargs
-Dosgi.requiredJavaVersion=1.7
-Xms40m
-Xmx512m
Got it to work, uninstalled all my Java's, reinstalled jdk (x86) in my case, installed newest jre (x64) to delete obsolete ones from the jdk and it worked. THanks everyone
-vm
C:\Program Files (x86)\Java\jdk1.8.0_25\jre\javaw.exe
should be something like
-vm
C:/Program Files (x86)/Java/jdk1.8.0_25/
or even better:
-vm
C:/Program Files (x86)/Java/jre1.8.0_25/bin/server/jvm.dll
On a side note, download the 64bit version if you can
The potential problem is you are using 64 bit Eclipse but 32 bit java. Either use 32 bit eclipse or install 64 bit java and re-try. It all started with Java 7!
Just copy this file:
C:/Program Files/Java/jre(5,6,7...whatever version)/bin/javaw.exe
to the Eclipse folder (directory where the eclipse.exe is located)
Please note: Only tested for Windows
Alternatively, right click on Eclipse icon, select Properties and edit Target field.
There will be a large string, edit it to point to correct javaw.exe path:
-vm "c:/Program Files/Java/jdk1.8.0_65/bin/javaw.exe"
Related
I'am using Eclipse 3.7 from 4 years, I have never faced any issue till now.
Suddenly I started facing different errors on launching eclipse.
I have referred most of the similar issue posted on stackoverflow; fixing one issue results in another sort of issue.
Say when I followed instructions to solve error code=13, on launching I got error code=1 problem, on solving that I got JRE or JDK not available issue.
To let you know about what I have done:
- modified eclipse.ini file
- created PATH environment variable
my eclipse.ini looks like below:
-startup
plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.100.v20110502
-product
org.eclipse.epp.package.java.product
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
256M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
-vm
C:\Program Files\Java\jdk1.8.0_91\bin\javaw.exe
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms40m
-Xmx384m
User variable created as:
Name: PATH
Value: C:\Program Files\Java\jdk1.8.0_91\bin
System variable created as:
Name: JAVA_HOME
Value: C:\Program Files\Java\jdk1.8.0_91
Can someone suggest me in fixing this out.
Looks like 32/64 bit problem. From launcher.library I see you are using 32 bit eclipse. From the Java path it looks like 64-bit. You can confirm Java version by running Java -version.
Try with 32-bit Java or get a 64-bit Eclipse.
My assumption here is your OS is 64-bit.
I finally got rid of errors 13 and 1 but now I am dealing with the worst error of all, can not find jvm.dll. So I checked my copy of the JDK and it has two jvm.dll's, server, and client. I also got the 64 bit version of the JDK and Eclipse. I add the JDK to my PATH variable, and put the -vm tag in every directory of the JDK in Eclipse.ini, but still Failed to load shared library jvm.dll.
This is what I have in Ecilpse.ini:
-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.pl
atform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
-XX:-UseCompressedOops
-vm
C:\Program Files (x86)\Java\jdk1.8.0_51\jre\bin
--launcher.appendVmargs
-vmargs
-Dosgi.requiredJavaVersion=1.7
-Xms256m
-Xmx1024m
What should I do?
Sorry for not having enough reputation to comment, so first of all, are you sure that have JRE and JDK are correctly installed on your machine these seem to be problems with either the installation of the JDK and JRE or of eclipse itself, also since the problem is with finding a .dll file I assume you are running eclipse on a Windows machine, this shouldn't happen if you installed eclipse, the jdk and jre correctly, it should detect all these files automatically, I suggest you to make sure that you installed the correct versions of the JDK and JRE(×86 for 32 bit and ×64 for 64 bit) and reinstalling eclipse again.
P.S: I suggest that you also use the latest version of eclipse, there is an installer now so it should solve most of these problems (or if you used the installer then it may be the cause of the problem and you should install it in the old way (extracting a zip file and creating a shortcut from the eclipse.exe file)) hope this information helps
I recently updated java and came across this error... I've changed my eclipse.ini file to the
-vm
C:\Program Files (x86)\Java\jre7\bin\javaw.exe
Yet it still doesn't work... here is the whole ini file
-startup
plugins/org.eclipse.equinox.launcher_1.3.0.v20140415-2008.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.200.v20140603-1326
-product
org.eclipse.epp.package.cpp.product
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
256M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
--launcher.appendVmargs
-XX:-UseCompressedOops
-vm
C:\Program Files (x86)\Java\jre7\bin\javaw.exe
-vmargs
-Dosgi.requiredJavaVersion=1.7
-Xms40m
-Xmx512m
Any solutions? I don't know what to do
Make sure the JAVA_HOME variable and path was set properly.
I added the below, which resolved this issue.
-vm
C:\Program Files\Java\jdk1.6.0_45\bin\javaw.exe
Make sure, that the -vm option occurs before the -vmargs command.
The error message points to a problem with your java Version. Do you have a JDK installed?
Try adding:
-vm
c:/wherever/java/jdk1.8.0_40/jre/bin/server/jvm.dll
to your eclipse.ini file, pointing to the JDK you want to use, and check that the required Java Verision is at least as new as your JDK. This is the path for a Windows system.
Discovered the issue thanks to #Goose.
My JDK version was somehow not working? A fresh installation of Java and JDK seemed to resolve the issue as well as the rerouting of the ini file to:
-vm
c:/wherever/java/jdk1.8.0_40/jre/bin/server/jvm.dll
i have removed the same path which is displaying in error message from system environmental variables [ In "Path" Variable]
I am trying to start eclipse after installing java 7 and adding the line
-vm
C:\Progra~2\Java\jdk1.7.0_45\bin\javaw.exe
to the eclipse.ini file. Still i am getting the error "Java was started but returned exit code=13".
I just want to know how to start eclipse. Even if i have to install eclipse, java, jre all over again.
Any suggestion will do!
My eclipse.ini file:
-startup
plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.100.v20110502
-product
org.eclipse.epp.package.jee.product
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
256M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
-vm
C:\Progra~2\Java\jdk1.7.0_45\bin\javaw.exe
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms40m
-Xmx512m
On pasting the jre in eclipse folder i am getting this error:
All you have to do is to put the new jdk path in eclipse.ini
-vm
C:\Program Files\Java\jdk1.8.0_11\bin\javaw.exe
or the your new jdk path.
make sure that you type the above just before the -vmargs and after the OpenFile
that solved my problem
Check that you have installed the correct java that your OS requires. Meaning, if you are running a 64 bit OS then you need 64 bit java and the same for 32 bit.
Check eclipse.ini file, and in particular format of the vm option (look here for more):
Note the format of the -vm option - it is important to be exact:
The -vm option and its value (the path) must be on separate lines.
The value must be the full absolute or relative path to the Java executable, not just to the Java home directory.
The -vm option must occur before the -vmargs option, since everything after -vmargs is passed directly to the JVM.
Another thing to check is that bit version (32/64) of JVM should match bit version of eclipse (32/64).
I downloaded the latest Eclipse on Windows 7. When I click the eclipse icon it throws the following exception:
I have already installed JRE and JDK.
UPDATE: Eclipse.ini contents:
-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.v20120913-144807
-product
org.eclipse.epp.package.jee.product
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
256M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Dhelp.lucene.tokenizer=standard
-Xms40m
-Xmx512m
-vm C:\Program Files (x86)\Java\jre7\bin
According to the Eclipse documentation, you may need to specify the VM before the VM args, and the path should not be on the same line as the -vm switch:
The -vm option and its value (the path) must be on separate lines.
The value must be the full absolute or relative path to the Java executable, not just to the Java home directory.
The -vm option must occur before the -vmargs option, since everything after -vmargs is passed directly to the JVM.
Source: Eclipse Wiki
For example:
-vm
C:\Java\JDK\1.6\bin\javaw.exe
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms40m
-Xmx1024m
You also might need to surround your path with some quotes, since it contains spaces. I always install things like Eclipse and Java in root directories with no spaces, not under Program Files, to avoid this problem.
Reference the location of your JRE path in the eclipse configuration file, eclipse.ini.
Note that you only need a JRE to launch Eclipse, but once Eclipse is launched, you should register a JDK for your projects. This is done via
Preferences-> Java -> Installed JREs
Same happened with me on win7. I had 2 folders for 'program files'
Program files
Program Files(x86)
java folder was present on both. For environment variables, I have given the path of java from program files(x86)...\jre6\bin. Then I had downloaded new java 7 version update. Then had tried to open eclipse, it worked and i had not made any changes to eclipse.ini file. My eclipse.ini didnt have any reference to the -vm argument.
I have the same of problem because I was have both the java 1.7 and the java 1.8 and I solved the problem By :
for windows :
first :
open your CMD and write java -version
the result is the current version of java on your pc for exampe the result is 1.8 so
second
open the eclipse.ini and if the path was not the path of current version java (that shown in result of CMD) edit the path to correct path of your java (the version shown in result )
like this :
before I change the path was :
-vm
C:\Program Files\Java\jdk1.7.0_45\jre\bin\javaw.exe
-vmargs
-Dosgi.requiredJavaVersion=1.7
-Xms256m
-Xmx1024m
after I check of my version of java using CMD the result is : java 1.8
so I change the path and version like this :
-vm
C:\Program Files\Java\jdk1.8.0_45\jre\bin\javaw.exe
-vmargs
-Dosgi.requiredJavaVersion=1.8
-Xms256m
-Xmx1024m
Nice Day :)