This question already has answers here:
Cannot run Eclipse; JVM terminated. Exit code=13
(34 answers)
Closed 7 years ago.
I recently tried running Eclipse on my Windows installation after several months (since I was working primarily on Ubuntu). Naturally, my java installation was outdated and Eclipse reported that it couldn't find a JDK to work with, so I proceeded to update the existing java installation. However, after the most recent version of Java was installed, the installer proceeded to uninstall the previous, outdated version of java (1.7), with my consent. Now, when I try to run Eclipse, this is the error message I get:
It probably has something to do with setting of path variables or previous eclipse settings and the version of eclipse I'm using is from the Android ADT bundle (please do not ask me to switch to Android Studio; I have my reasons).
How do I fix this and get Eclipse up and running?
No need to re-install eclipse, if you read the log you will notice that javaw was told to use java 6, but it is obviously not the java version you are trying to launch with.
Simply change 1.6 to 1.x in $ECLIPSE_HOME/eclipse.ini.
The error sounds you need to install JRE & JDK 1.6.
I work on Mac OS. I have a similar case I have to install JRE & JDK 1.6 since the one coming with the original OS is newer than it needs
Related
I have formatted my Mac due to some storage issues. Before this, I used Eclipse in a proper way. Now i have installed the JDK
Then, i have installed Java
Until now everything seems to be correct but when I open the Eclipse installer...
What can I do to fix this? I need to work with this the soon as possible.
Thanks
Eclipse on macOS will not start with Java 14 installed, this is being tracked in Eclipse bug 561273.
Installing Java 8 as well does not help. You need to remove the Java 14 install. You could use the Java 13.0.2 release instead.
Eclipse have determined that the root cause of this issue is a change in Java 14 which is described in this bug report JDK-8238225. The fix for this should be in Java 14.0.1
Update: Eclipse runs fine with Oracle Java 14.0.1 so the issue has been fixed.
I also asked this question which was closed, that's why I answer what I have found out: Eclipse will not install on Mac OS Catalina 10.15.4, saying the above error message
Failed to create the Java Virtual Machine.
Deinstalling jdk and install an older one wouldn't help on its own because Eclipse is refusing to install in the first place (as mentioned above). What I have done:
i´ve installed an JDK with boost (you can try several, mine worked with Version 13)
I edited the installer:
Download the dmg file
convert the dmg-file with "hdiutil convert /dev/disk3s1 -format UDRW -o devimage"
mount the converted dmg-file with: "hdiutil attach -owners on devimage.dmg -shadow"
Edit the /Volumes/Eclipse/Eclipse.app/Contents/Info.plist: there is a section which is commented and there you can try the jdk version. You have to give the full path to the java executable, for example:
<string>-vm</string><string>/Library/Java/JavaVirtualMachines/jdk-13.0.2.jdk/Contents/Home/bin/java</string>
Then my eclipse started from the (already) mounted Eclipse image without complaining
I had the same issue myself a while back. In your Eclipsepedia it provided an example of what the eclipse.ini file looks like when your trying to specify a JVM. So just change the eclipse.ini file and then make sure that you have all of the correct documents in that path to match the example.
I have formatted my Mac due to some storage issues. Before this, I used Eclipse in a proper way. Now i have installed the JDK
Then, i have installed Java
Until now everything seems to be correct but when I open the Eclipse installer...
What can I do to fix this? I need to work with this the soon as possible.
Thanks
Eclipse on macOS will not start with Java 14 installed, this is being tracked in Eclipse bug 561273.
Installing Java 8 as well does not help. You need to remove the Java 14 install. You could use the Java 13.0.2 release instead.
Eclipse have determined that the root cause of this issue is a change in Java 14 which is described in this bug report JDK-8238225. The fix for this should be in Java 14.0.1
Update: Eclipse runs fine with Oracle Java 14.0.1 so the issue has been fixed.
I also asked this question which was closed, that's why I answer what I have found out: Eclipse will not install on Mac OS Catalina 10.15.4, saying the above error message
Failed to create the Java Virtual Machine.
Deinstalling jdk and install an older one wouldn't help on its own because Eclipse is refusing to install in the first place (as mentioned above). What I have done:
i´ve installed an JDK with boost (you can try several, mine worked with Version 13)
I edited the installer:
Download the dmg file
convert the dmg-file with "hdiutil convert /dev/disk3s1 -format UDRW -o devimage"
mount the converted dmg-file with: "hdiutil attach -owners on devimage.dmg -shadow"
Edit the /Volumes/Eclipse/Eclipse.app/Contents/Info.plist: there is a section which is commented and there you can try the jdk version. You have to give the full path to the java executable, for example:
<string>-vm</string><string>/Library/Java/JavaVirtualMachines/jdk-13.0.2.jdk/Contents/Home/bin/java</string>
Then my eclipse started from the (already) mounted Eclipse image without complaining
I had the same issue myself a while back. In your Eclipsepedia it provided an example of what the eclipse.ini file looks like when your trying to specify a JVM. So just change the eclipse.ini file and then make sure that you have all of the correct documents in that path to match the example.
I am trying to install JBoss Developer Studio 9 on Windows using executable JAR file.
I have Java in my machine and set the PATH and JAVA_HOME environment variables.
But while launching the jar, I am facing this error:
Java virtual machine launcher couldn't find the main class program will exit
Could some one please help me in resolving this.
Try to use devstudio-10.4.0.GA-installer-eap.jar from here. I tried that.
Not sure what the issue was but for future reference the install docs / guides for Developer Studio 9.1 are located here:
https://access.redhat.com/documentation/en-US/Red_Hat_JBoss_Developer_Studio/9.1/html-single/Install_Red_Hat_JBoss_Developer_Studio/index.html#Install_JBoss_Developer_Studio_Stand-alone_and_JBoss_EAP
Instructions may be written for linux users, but the same instructions apply on Windows or OSX once you're in a console.
Note that Java 8 is required for Developer Studio 9 and 10, so if that's not your default JDK (eg., JDK 7 is your default, or is found in your PATH before the entry for JDK 8), the installer likely won't work.
Perhaps that's the problem that was reported here?
I downloaded Eclipse (specifically that for C/C++ Programming) for Mac, running OSX Mavericks. When I try to start Eclipse, it gives me this message: "Version 1.6.0_65 of the JVM is not suitable for this product. Version 1.7 or greater is required", and it doesn't open. I installed Java version 7, but nothing changed. I don't know how else to update the JVM (I don't know much about Java in general).
I downloaded the 64-bit version for my MacBook Air, if that matters.
Simply Install the JDK 7 or JDK 8, and not just the latest JRE.
Run whereis java in a Terminal. It will normally display something like /usr/bin/java.
Now run java -version. It shows you 'java version 1.6.0_65' or something approaching. This is because Java 7 does not replace Java 6. Java 7 is installed as an Internet Plug-in and can be found in /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/bin/java.
What you need to do is to symlink /usr/bin/java to /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/bin/java.
Restart Eclipse, or reboot your computer (I don't know how Eclipse manages this), and it should do the trick. :)
I went to oracle downloads and the scrolled one of the several Mac osX links and downloaded jdk-8u73-nb-8_1-macosx-x64.dmg from oracle and that fixed the problem. I don't know why updating java doesn't do the trick.
add this script into 'eclipse.ini' at the top
'/Library/java/JavaVirtualMachines/jdk1.8.0_77.jdk/contents/Home/bin'
Trying to install eclipse, I installed java version 1.6.0_65 as it requested yet still was blocked from finishing the Eclipse install with the error that I needed 1.7 JVM or higher - not true, installing higher didn't work either. I tried installing jdk-8u101-macosx-x64.dmg and that didn't work. So, I tried JDK 7 as advised, sorry no good.
So, to get the Eclipse installer to run with out that java error I had to edit the Info.plist inside the Eclipse Installer. Right click the Eclipse installer and show package contents, then open info.plist in textEdit.app
(Note: So after several tries editing this plist and following methods mentioned elsewhere nothing worked, I found that you have to use the symlink or java alias because java is installed differently now a days as an internet plugin.)
Where you want to make an edit (You should probably Backup the original or you can download it again), under <key>Eclipse</key>, then <array>, delete out what's there and add <string>-vm</string> and this string underneath; <string>/usr/bin/java</string>
Here is what mine looks like.
<key>Eclipse</key>
<array>
<string>-vm</string>
<string>/usr/bin/java</string>
<string>-keyring</string>
<string>~/.eclipse_keyring</string>
<string>-showlocation</string>
</array>
Then save and try running your eclipse installer; this worked for me.
Just running the below command from there terminal worked for me.
brew cask install java
It updated my idk with 1.8, and after that eclipse opens successfully.
This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
Eclipse can't find the JDk or JRE
I have the latest JRE and JDK installed, however when I install Eclipse Classic 4.2 and try to run it, it displays the following message:
I have tried moving the installation to Program Files, as well as to the Java installation folder itself. The former generates no difference other than the path displayed in the message. The latter starts loading Eclipse, to the point that it shows the blue rectanglue loading box, at which point I get a different error message saying it couldn't load a particular.dll file in the Java installation. That said, I don't see why I would have to move the Eclipse files into the Java folder for it to work.
I used to have a working installation of Eclipse some time ago, which I uninstalled. Now I plan to use Eclipse, possibly with PyDev, in order to learn Python.
P.S. I realize this is not exactly a question involving coding, however I know I can't be the only one experiencing this issue. So hopefully others may benefit from seeing the response.
EDIT: The installation is now working. Here are the steps I took:
1) Make sure the JDK and Eclipse installations are both 32-bit or 64-bit, depending on your setup.
2) Add -vm
/absolute/path/to/jre6/bin to the top of the eclipse.ini file
Note: After reinstalling both Eclipse and the JDK, making sure the bit-type matched, step 2 was no longer necessary as Eclipse finally ran normally.
This question was asked before and the answer was very well written so just follow the link and read the answer to this.
Eclipse - no Java (JRE) / (JDK) ... no virtual machine
It worked for me.
As noted above:
Please refer to http://wiki.eclipse.org/FAQ_How_do_I_run_Eclipse%3F#Find_the_JVM.
Also make sure that you're using a 64-bit JDK with a 64-bit bundle of Eclipse, and a 32-bit JDK with a 32-bit bundle of Eclipse.
By default, the 32-bit JDK will install into "Program Files (x86)", and a 64-bit JDK will install into "Program Files". Under 64-bit Windows, you can choose to use either 32-bit or 64-bit Eclipse/JDK - but the Eclipse bundle and the JDK must match. (I'd recommend 64-bit, as your OS supports it.)