Downloaded Java 7 Eclipse doesn't start - java

Ok, so I've been using eclipse Luna for a bit now with the Java 6 and all. Today, I decided it was time to update to Java 7. I did so by going to the Oracle site, downloading the Java 7 run time environment, and it said it would install. I let it install, but it told me that it detected previous versions of java (java 6) that it wanted to uninstall. I don't know a lot about the process and assumed it was fine and this probably isn't the problem anyway. But it installed, and when I tried to run things in eclipse, it gave me an error. So I restarted Eclipse. Suddenly, it wouldn't start giving me the error code 13. Then, I re installed Eclipse Luna. Now I get the same error and am worried I totally screwed up my Java. Can you help? I can also post the error report it gives me.
Java was started but returned exit code=13
C:/ProgramData/Oracle/Java/javapath/Javaw.exe
-Dosgi.requiredJavaVersion=1.6
-Xms40m
-Xmx512m
-jar
C:/Users/Jared/Downloads/eclipse-java-luna-SR2-win32x86_64/eclipse//plugins/org.eclipse.equinox.launcher_1.3.0.v20140415-2008.jar
-os win32
-ws win32
-arch x86_64
-showsplash
C:/Users/Jared/Downloads/eclipse-java-luna-SR2-win32-x86_64/eclipse//plugins/org.eclipse.platform_4.4.2.v20150204-1700/splash.bmp
-launcher
C:/Users/Jared/Downloads/eclipse-java-luna-SR2-win32-x86_64/eclipse/eclipse.exe
-name Eclipse
--launcher.library
C:/Users/Jared/Downloads/eclipse-java-luna-SR2-win32-x86_64/eclipse//plugins/org.eclipse.equinox.launcher.win32.x86_64_1.1.200.v20150204-1316/eclipse_1608.dll
-startup
C:/Users/Jared/Downloads/eclipse-java-luna-SR2-win32-x86_64/eclipse//plugins/org.eclipse.equinox.launcher_1.3.0.v20140415-2008.jar
--launcher.appendVmargs
-exitdata 2b0_5c
-product org.eclipse.epp.package.java.product
-vm C:/ProgramData/Oracle/Java/javapath/javaw.exe
-vmargs
-Dogsi.requiredJavaVersion=1.6
Xms40m
-Xmx512m
-jar
C:/Users/Jared/Downloads/eclipse-java-luna-SR2-win32-x86_64/eclipse//plugins/org.eclipse.equinox.launcher_1.3.0.v20140415-2008.jar
If I check my java version via command prompt, it looks like this:
C:\Users\Jared>java -version
java version "1.8.0_31"
Java(TM) SE Runtime Environment (build 1.8.0_31-b13)
Java HotSpot(TM) Client VM (build 25.31-b07, mixed mode)
I have minimal knowledge on this process however, if my educated guess is right, Luna is based on 1.6-1.7 and since I apparently have 1.8.0_31, I need a more updated version.
If you know how to help, please explain thoroughly, so I can understand as much as possible
Thanks in advance
-Jared.

You should also install correct JDK version.

Related

"Error: Could not create the Java Virtual Machine Error: A fatal exception..." Shows error when I tried to launch Eclipse IDE 2019-06

The problem I am facing:
I have tried to launch the Eclipse IDE 2019-06 64-bit, but it is showing the error "Error: Could not create the Java Virtual Machine Error: A fatal exception has occurred. Program will exit."
Image of the error box:
Once I clicked on the Ok button the tab with some text starting with "java was started but returned exit code 1" shows up.
Image here:
(Sorry, It is not allowing to copy the whole text, so not able to paste it here.)
Things I have tried:
After searching in Google I got the blog which says in method 1 "add _JAVA_OPTIONS to System Variables and set the value to -Xmx512M", and in method 2 "run java.exe as an administrator" but both methods are not working.
Saw one video which says edit the 'eclipse.ini' and replace '-Xmx1024m' to '-Xmx512m', but it is not working though.
Currently, the 'eclipse.ini' file contains,
-startup
plugins/org.eclipse.equinox.launcher_1.5.400.v20190515-0925.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.1000.v20190125-2016
-product
org.eclipse.epp.package.jee.product
-showsplash
org.eclipse.epp.package.common
--launcher.defaultAction
openFile
--launcher.defaultAction
openFile
--launcher.appendVmargs
-vmargs
-Dosgi.requiredJavaVersion=1.8
-Dosgi.instance.area.default=#user.home/eclipse-workspace
-XX:+UseG1GC
-XX:+UseStringDeduplication
--add-modules=ALL-SYSTEM
-Dosgi.requiredJavaVersion=1.8
-Dosgi.dataAreaRequiresExplicitInit=true
-Xms256m
-Xmx1024m
--add-modules=ALL-SYSTEM
Please note:
I have another version of the eclipse on my machine, which is 'Eclipse Juno'(Version: Juno Service Release 2 Build id: 20130225-0426) and it is working fine. But I want to upgrade that's why I am trying it.
OS I use: Windows 10 PRO 64-bit.
'java -version' gives:
java version "1.8.0"
Java(TM) SE Runtime Environment (build 1.8.0-b132)
Java HotSpot(TM) 64-Bit Server VM (build 25.0-b70, mixed mode)
Thanks in advance if you have the solution. If you don't have it, but understood the things which produce the error, please let me know by commenting the same. Thank you!
Try to uninstall and reinstall eclipse and Java... It's the first option that you must try with this type of "unexplained" errors.
Create a Shortcut to the eclipse.exe
Edit the shortcut so that it has -vm {path to javaw.exe} as arguments
Make sure the shortcut
has the directory containing eclipse.exe as its working/starting
directory.

Spring Tool Suite failing to start with error

I was using Spring tool suite, I just upgraded it to latest version spring-tool-suite-3.5.1.RELEASE-e4.3.2-linux-gtk-x86_64 and now I am not able to start it. It gives below error:
VM terminated. Exit code=1
/usr/bin/java
-Dosgi.requiredJavaVersion=1.6
-Xms40m
-Xmx768m
-XX:MaxPermSize=256m
-jar /home/vishal/install/sts/sts-3.5.1.RELEASE//plugins/org.eclipse.equinox.launcher_1.3.0.v20130327-1440.jar
-os linux
-ws gtk
-arch x86_64
-showsplash
-launcher /home/vishal/install/sts/sts-3.5.1.RELEASE/STS
-name STS
--launcher.library /home/vishal/install/sts/sts-3.5.1.RELEASE//plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.200.v20140116-2212/eclipse_1508.so
-startup /home/vishal/install/sts/sts-3.5.1.RELEASE//plugins/org.eclipse.equinox.launcher_1.3.0.v20130327-1440.jar
--launcher.overrideVmargs
-exitdata 98006
-product org.springsource.sts.ide
-vm /usr/bin/java
-vmargs
-Dosgi.requiredJavaVersion=1.6
-Xms40m
-Xmx768m
-XX:MaxPermSize=256m
-jar /home/vishal/install/sts/sts-3.5.1.RELEASE//plugins/org.eclipse.equinox.launcher_1.3.0.v20130327-1440.jar
I have ubuntu 12.04 and this Java version:
java version "1.7.0_25"
Java(TM) SE Runtime Environment (build 1.7.0_25-b15)
Java HotSpot(TM) 64-Bit Server VM (build 23.25-b01, mixed mode)
This is STS.ini
-vm
/usr/lib/jvm/jdk1.7.0/bin/java
-startup
plugins/org.eclipse.equinox.launcher_1.3.0.v20130327-1440.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.200.v20140116-2212
-product
org.springsource.sts.ide
--launcher.defaultAction
openFile
-vmargs
-Dosgi.requiredJavaVersion=1.6
-Xms40m
-Xmx768m
-XX:MaxPermSize=256m
The above error cause by STS version.
At this site: http://spring.io/tools/sts/all , Download STS version what support 32 bit (x86) or 64 bit (x64) computer.
I am not a java developer but had to look into java code.I faced the same issue stated above and fixed it in different way. located STS.ini, opened it and changed the version from 1.6 to 1.7. bingo... its started working..
I faced the same problem after another software updated 1.8 32 bit client VM, where I am running on 64 bit Windows 7. This issue was resolved after I installed JDK 1.8 64 bit Server VM.
The .ini file you posted points to /usr/lib/jvm/jdk1.7.0/bin/java but the error log shows it's actually using /usr/bin/java. That suggests you're not using the .ini you think you are. Double check you're launching from the correct directory/executable.
May not be the case here, but usually this kind of error means the JVM is 32 bit where it needs to be 64 bit or vice versa. Double check that the JVM you are using matches your downloaded STS with respect to 32/64 bit.
Also the answer from E-Riz makes sense. Check exactly what '/usr/bin/java' actually points to (it is probably a symlink). Try the following commands
/usr/bin/java -version
Also track down the symlink
ls -la /usr/bin/java
This will tell you where it points (probably /etc/alternatives/java, which is another symlink. Repeat until you get to the end of the symlink chain. If this doesn't lead to where you think it should (i.e. /usr/lib/jvm/jdk1.7.0/bin/java) then E-riz is right and you are probably not running the STS.ini that you think you are.
I tried to resolve this error in so many ways, but nothing worked for me. At last I uninstalled all my java installations from Control Panel, and reinstalled Java 1.8 and it worked :)
This error with STS is pretty common when you start for the first time. Here is what I found on YouTube, will help eliminate the error: https://youtu.be/cMClVM6rzuc
I had the same issue when trying to open Sprint STS on my Windows machine (64 bits).
The problem was, in fact, that the STS download page, by default, downloads the Windows 32 bits version and it was not working because of that on my 64 bits Windows.
I just went to the STS download page again and download the right version (64 bits) and it solved my issue.
Best regards!

eclipse321 crashes a lot

while I'm working with eclipse 3.2.1 it's crashes and the message is like:
JVM terminated exit code = 1
C:\program Files(x86)\Java\jdk1.6.0_30\BIN\javaw.exe
-Xms40m
-Xmx256m
-jar C:\*****\eclipse321\startup.jar
-os win32
-ws win32
-arch x86
-launcher C:\*****\Eclipse321\eclipse.exe
-name Eclipse
-showsplash 600
-exitdata 1548_c0
-vm C:\Program Files (x86)\Java\jdk1.6.0_30\BIN\javaw.exe
-vmargs
-Xms40m
-Xmx256m
-jar C:\*****\Eclipse321\startup.jar
what could it be?
I'm using win7 in 64 bit.
tnx
Eclipse 3.2.1 is not (and never) was supported on Windows 7. Eclipse 3.2.1 came out long before Windows 7. While I can appreciate that your workplace policy dictates that you must use this version of Eclipse (likely to backport a maintenance issue) they should not be dictating that you must use this version with an incompatible OS. If you really must use this version (which, as others have mentioned, is almost 8 years old) you should be running it on a compatible OS.
The list of target Operating Systems for 3.2.1 are available here:
http://www.eclipse.org/eclipse/development/readme_eclipse_3.2.1.html

Eclipse Download on Ubuntu error

I just downloaded Ubuntu 13.04 on my laptop, and I'm trying to run Eclipse. When I downloaded it and tried to run it, it told me to install JRE, so I did. But now it's showing this error:
JVM terminated. Exit code=13
/usr/bin/java
-Dosgi.requiredJavaVersion=1.6
-XX:MaxPermSize=256m
-Xms40m
-Xmx512m
-jar /home/sam/Eclipse/eclipse//plugin/org.eclipse.equinox.launcher_1.3.0.v20130327-1440.jar
-os linux
-ws gtk
-arch x86
-showsplash /home/sam/Eclipse/eclipse//plugins/org.eclipse.platform_4.3.1.v20130911-1000/splash.bmp
-launcher /home/sam/Eclipse/eclipse/eclipse
-name Eclipse
--launcher.library /home/sam/Eclipse/eclipse//plugins/org.eclipse.equinox.launcher.gtk.linux.x86_1.1.200.v20130807-1835/eclipse_1506.so
-startup /home/sam/Eclipse/eclipse//plugins/org.eclipse.equinox.launcher_1.3.0.v20130327-1440.jar
--launcher.appendVmargs
-exitdata e5800c
-product org.eclipse.epp.package.standard.product
-vm /usr/bin/java
-vmargs
-Dosgi.requiredJavaVersion=1.6
-XX:MaxPermSize=256m
-Xms40m
-Xmx512m
-jar /home/sam/Eclipse/eclipse//plugins/org.eclipse.equinox.launcher_1.3.0.v20130327-1440.jar
I'm very new to Ubuntu and I'm not sure at all what is going on. Did something install incorrectly? Is something not installed?
Thanks in advance!
Looks like you are trying to run the 32 bit version of Eclipse with a 64 bit Java. You need to use the 64 bit version of Eclipse.
I tried to install Eclipse Standard 4.3.1 (from http://www.eclipse.org/downloads) on ArchLinux.
Here is the version of my java installation:
$ java -version
java version "1.7.0_40"
OpenJDK Runtime Environment (IcedTea 2.4.2) (ArchLinux build 7.u40_2.4.2-1-x86_64)
OpenJDK 64-Bit Server VM (build 24.0-b56, mixed mode)
...and got exactly the same error.

XML errors and Java(TM) Platform SE Binary crashing

So last night I was creating an android XML file to show an edit text and toggle buttons.
Then today when I launched eclipse and opened my project the XML graphical layout was showing:
The rendering target (Android 4.2) is still loading.
The layout will refresh automatically once the process is finished.
I even hadn't typed a single word yet when I got the error
Java(TM) Platform SE Binary has crashed
And Eclipse returned an error dialog
Java was started but returned exit code=255
C:\Windows\system32\javaw.exe
-Dosgi.requiredJavaVersion=1.5
-Dhelp.lucene.tokenizer=standard
-Xms40m
-Xmx512m
-XX:MaxPermSize=256m
-jar
C:\Users\<name>\Desktop\Android\eclipse\\plugins/org.eclipse.equinox.launch
er_1.3.0.v20120522-1813.jar
-os win32
-ws win32
-arch x86_64
-showsplash
C:\Users\<name>\Desktop\Android\eclipse\\plugins/org.eclipse.platform_4.2.1.v
201209141800\splash.bmp
-launcher C:\Users\<name>\Desktop\Android\eclipse\eclipse.exe
-name Eclipse
-launcher.library
C:\Users\<name>\Desktop\Android\eclipse\\plugins/org.eclipse.equinox.launch
er.win32.win32.x86_64_1.1.200.v20120522-1813\eclipse_1503.dll
-startup
C:\Users\<name>\Desktop\Android\eclipse\\plugins/org.eclipse.equinox.launch
er_1.3.0.v20120522-1813.jar
--launcher.overrideVmargs
-exitdata b24_5c
-product org.eclipse.epp.package.mobile.product
-vm C:\Windows\system32\javaw.exe
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Dhelp.lucene.tokenizer=standard
-Xms40m
-Xmx512m
-XX:MaxPermSize=256m
-jar
C:\Users\<name>\Desktop\Android\eclipse\\plugins/org.eclipse.equinox.launch
er_1.3.0.v20120522-1813.jar
Well I don't understand what it says and now I'm unable to launch eclipse.
Thanks.
Had similiar java exit code and error when hovering over java objects. Not sure if you have the same problem, but since the error is pretty the same my solution will maybe work for you. I added "-Dorg.eclipse.swt.browser.DefaultType=mozilla" to my eclipse.ini
Set the below property in eclipse.ini has resoled this problem
-Dcom.ibm.ws.management.event.max_polling_interval=1000
I'm using Windows 8.1 Professional x64 and I was getting the same annoying error, I tried to execute Eclipse by using Troubleshoot compatibility (right click on eclipse.exe) then I chose the option "execute in Windows 8 Mode" and up now, this workaround has solved the problem...
This error is also caused by a damage on ntdll.dll that happens whenever you're trying to install Sony Vaio Drivers on Windows 8.1.
That crash also affects other apps like Windows Media Player, BSPlayer, Catalist Control Center and all of them gets solved when they're executed by using troubleshoot compatibility option as mentioned on previous answer...
I got rid of this issue by not installing all Sony drivers. It seems that Sony Vaio model VPCSB25FB doesn't fully support Windows 8.1 yet. Mainly, when you install Windows 8.1 directly, with no upgrade from Windows 8 or 7...

Categories

Resources