Spring tool suite error 13 : Windows 8.1 and JAVA 8 - spring-tool-suite

Cannot start sts - it gives me below error - I am using Windows 8.1; JAVA Version 1.8.0_20 - not sure whats going wrong
-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.springsource.sts.ide
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
256M
-vm
T:/softwares/jdk1.8.0_20/bin/javaw.exe
-vmargs
-Dosgi.requiredJavaVersion=1.8
-Xms40m
-Xmx768m
-Dorg.eclipse.swt.browser.IEVersion=10001
I have tried changing JAVA_HOME path even added -vm args but nothing seems to work...Since I am running JAVA 1.8 I have added the required version as 1.8 not sure if that's the issue? Any help much appreciated. It gives me ERROR Code 13 constantly

I can't see the image that you mentioned, but I guess this is a mismatch between the STS version that you downloaded and the JDK that you are using with regards to 32bit vs. 64bit. It looks like you downloaded the 64bit version of STS. Are you sure that the JDK 1.8.0_20 that you have installed is a 64bit JDK as well? Error code 13 is often related to this kind of mismatch.

Related

Error when installing Eclipse on Linux Mint

I just followed the Eclipse websites links to download the latest version for Debian, and after running from the terminal
$ ./eclipse-inst
It goes through the installation process but returns
JVM terminated. Exit code=1
/usr/lib/jvm/java-9-openjdk-amd64/bin/java
-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
-Declipse.p2.max.threads=10
-Doomph.update.url=http://download.eclipse.org/oomph/updates/milestone/latest
-Doomph.redirection.index.redirection=index:/->http://git.eclipse.org/c/oomph/org.eclipse.oomph.git/plain/setups/
-Duser.dir=/root/eclipse/java-photon/eclipse
-jar /root/eclipse/java-photon/eclipse//plugins/org.eclipse.equinox.launcher_1.5.0.v20180512-1130.jar
-os linux
-ws gtk
-arch x86_64
-showsplash
-launcher /root/eclipse/java-photon/eclipse/eclipse
-name Eclipse
--launcher.library /root/.p2/pool/plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.700.v20180518-1200/eclipse_1705.so
-startup /root/eclipse/java-photon/eclipse//plugins/org.eclipse.equinox.launcher_1.5.0.v20180512-1130.jar
--launcher.appendVmargs
-exitdata eb0026
-product org.eclipse.epp.package.java.product
-vm /usr/lib/jvm/java-9-openjdk-amd64/bin/java
-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
-Declipse.p2.max.threads=10
-Doomph.update.url=http://download.eclipse.org/oomph/updates/milestone/latest
-Doomph.redirection.index.redirection=index:/->http://git.eclipse.org/c/oomph/org.eclipse.oomph.git/plain/setups/
-Duser.dir=/root/eclipse/java-photon/eclipse
-jar /root/eclipse/java-photon/eclipse//plugins/org.eclipse.equinox.launcher_1.5.0.v20180512-1130.jar
I wasn't able to search the error but it may be because the error is so massive that I don't know which parts of it to search for. I tried searching the initial segment of the error and didn't find much that was useful. What I did find indicated editing the eclipse.ini file, so I did that, and it now looks like the following: [Edit: after the advice of a proposed answer I updated the file to look like the following]
-startup
plugins/org.eclipse.equinox.launcher_1.3.0.dist.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.200.dist
-showsplash
org.eclipse.platform
#--launcher.XXMaxPermSize
#256m
--launcher.appendVmargs
-vm
/usr/lib/jvm/java-9-openjdk-amd64/bin/java
-vmargs
-Dosgi.requiredJavaVersion=1.8
--add-modules=ALL-DEFAULT
-Xms40m
-Xmx384m
-Dorg.eclipse.equinox.p2.reconciler.dropins.directory=/usr/share/eclipse/dropins
However, after making this edit I see no difference in the error message that the installer brings up.
I believe it's also possible to get Eclipse not by downloading the installer but by using a repo--but as I understand it, this repo usually has a slightly outdated version of Eclipse. I could certainly be wrong, but I believe I've seen advice that it's best to download and use the installer.
When I run java -version it returns
openjdk version "9-internal"
OpenJDK Runtime Environment (build 9-internal+0-2016-04-14-195246.buildd.src)
OpenJDK 64-Bit Server VM (build 9-internal+0-2016-04-14-195246.buildd.src, mixed mode)
When I try to run Eclipse it pops up an error message
An error has occurred. See the log file
/home/bob/.eclipse/org.eclipse.platform_3.8_155965261/configuration/1533437446117.log.
And interestingly, the folder in which the file is supposed to exist, doesn't exist.
This looks like a prerelease build of Java 9, and as such might not support the command line arguments expected in the actual release. Java 9 is current until the end of September, so try the released version if you can.
you have to adjust the eclipse.ini in order to configure Eclipse for Java 9 ...for example:
--launcher.appendVmargs
-vm
/usr/lib/jvm/java-9-openjdk-amd64/bin/java
-vmargs
-Dosgi.requiredJavaVersion=1.8
--add-modules=ALL-SYSTEM
or use Java 8 ...
I just installed Eclipse on Linux, but it does not start. What is the problem?
Quite often, Eclipse will not work properly with non-Sun or non-IBM JVMs. These issues are usually related to Blackdown or GCJ. Eclipse has a list of reference platforms that it is tested against which you should try to match against. Try installing one from Sun, IBM, or BEA (eg., Sun JDK 5.0, IBM JDK 5.0, or BEA JRockit 5.0). Version 6 of OpenJDK works too, particularly with Fedora Eclipse.

Eclipse neon "Could not create the JVM"

We are setting up eclipse neon on Java 1.7 and it fails to start showing a popup with message
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
Here is configuration in eclipse.ini
-startup
plugins/org.eclipse.equinox.launcher_1.3.201.v20161025-1711.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.401.v20161122-1740
-product
org.eclipse.epp.package.jee.product
--launcher.defaultAction
openFile
-showsplash
org.eclipse.platform
--launcher.defaultAction
openFile
--launcher.appendVmargs
-vmargs
-Dosgi.requiredJavaVersion=1.7
-XX:+UseStringDeduplication
-Dosgi.requiredJavaVersion=1.7
-Xms256m
-Xmx512m
I found this answer helpful. I was getting this error even after using java 8, So just delete eclipse.ini file, but backup first.
As of Eclipse Platform 4.6, and the Neon release, a Java 8 (or later) JRE or JDK is required to run Eclipse.
There is chance that the current eclipse you have was not completely downloaded. Try downloading again and try the set up again.
I received this error after upgrading from neon.2 to neon.3. Since Eclipse is ever-changing, what worked last year may not work today. My experience has shown the VM args to usually be the culprit in this situation, so my solution was to remove the -vmargs section of my eclipse.ini file and then restart Eclipse.
In my case it started correctly, so I added the VM args back one at a time until it failed. The source of my startup problems this time was -XX:+UseParallelGC. After some research I swapped it out for -XX:+UseG1GC and now I'm back in business.
Download and install JRE version 8, as it's required by Eclipse.
i just deleted the eclipse.ini then it worked like a charm
just add your jdk path on the top of your init file as below.
-vm
C:/Program Files/Java/jdk1.8.0_71/bin/javaw

Eclipse Birt JVM Terminated Exit code = -1

I downloaded birt-report-designer-all-in-one-2_5_0.
enviornment is windows 7, 8gb memory, 64bit OS and jdk1.6.0_45(64 bit)
But while launching , throwing this error
My eclipse.ini is
-startup
plugins/org.eclipse.equinox.launcher_1.0.200.v20090520.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.0.200.v20090519
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
-vmargs
-Xms512m
-Xmx1024m
-vm D:\java\jdk1.6.0_45\bin\javaw.exe
Note: the same eclipse which is working perfectly fine in my colleague's machine(with exactly same configuration)
Does anyone have other possible solutions?
This is fixed by installing 32 bit jdk 1.6 (uninstall 64 bit jdk)and pointing JAVA_HOME to this installed folder

Eclipse won't start after uninstalling EGit plugin

I just uninstalled all of EGit plugins that I had before. The uninstall went through smoothly and asked me to restart Eclipse at the end but then Eclipse wouldn't start giving me the following error message:
I get that when I try to launch Eclipse from my shortcut on the Start Menu (using Win 7). But when I go to the Eclipse install directory itself and hit eclipse.exe there, I get the following error message:
I did go to see whether there is jvm.dll in the above directory and indeed it is there.
Any idea how to fix it?
UPDATE 1: I reinstalled both Eclipse AND JRE but the problem remains.
UPDATE 2: Here are the contents of my eclipse.ini
-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
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms40m
-Xmx512m
JRE & Eclipse should both be the same bit version (32 or 64). Your screenshot suggests you're running the 32-bit version of JRE, but I don't know if that was before or after you re-installed. java -version should help with JRE. Your eclipse.ini file will tell you the Eclipse bit version you're running. For example:
plugins/org.eclipse.enter code hereequinox.launcher.win32.win32.x86_1.0.
You should confirm this and try manually pointing Eclipse to your JRE binary. Here's a Windows example
-vm c:\java\jdk\1.6\bin\javaw.exe
If that works, you just need to update your eclipse.ini with the correct path.
Good luck.
Turned out the Java I had (and the only version I had access to due to the corporate network restrictions) was 1.6 32-bit even though my laptop is 64-bit (why does this work?). When I tried to reinstall Eclipse, I was using the 64-bit version. It worked when I installed the 32-bit version. BTW, the Eclipse version is
Eclipse IDE for Java EE Developers 1.4.1.20110909-1818 epp.package.jee null

Problem Installing Eclipse on Ubuntu

I downloaded the Eclipse IDE for Java Developers Linux 32 Bit file from here.
I extracted the file and launched eclipse from the command line.
Instead of Eclipse starting I get this message in a dialog box:
VM terminated. Exit code=13
/usr/bin/java
-Dosgi.requiredJavaVersion=1.5
-XX:MaxPermSize=256m
-Xms40m
-Xmx384m
-jar /home/justme/Desktop/FIREFOX_DOWNLOADS/eclipse/plugins/org.eclipse.equinox.launcher_1.1.0.v20100507.jar
-os linux
-ws gtk
-arch x86
-showsplash
-launcher /home/justme/Desktop/FIREFOX_DOWNLOADS/eclipse/eclipse
-name Eclipse
--launcher.library /home/justme/Desktop/FIREFOX_DOWNLOADS/eclipse/plugins/org.eclipse.equinox.launcher.gtk.linux.x86_1.1.1.R36x_v20100810/eclipse_1309.so
-startup /home/justme/Desktop/FIREFOX_DOWNLOADS/eclipse/plugins/org.eclipse.equinox.launcher_1.1.0.v20100507.jar
-exitdata 420021
-product org.eclipse.epp.package.java.product
-vm /usr/bin/java
-vmargs
-Dosgi.requiredJavaVersion=1.5
-XX:MaxPermSize=256m
-Xms40m
-Xmx384m
-jar /home/justme/Desktop/FIREFOX_DOWNLOADS/eclipse/plugins/org.eclipse.equinox.launcher_1.1.0.v20100507.jar
Any ideas how to fix this? I'm on Ubuntu 8.10 64bit and here's my Java info:
$ java -version
java version "1.6.0_0"
IcedTea6 1.3.1 (6b12-0ubuntu6.7) Runtime Environment (build 1.6.0_0-b12)
OpenJDK 64-Bit Server VM (build 1.6.0_0-b12, mixed mode)
First thing is to ensure you're running the java you think you're running. You can tell from your error output that it's using /usr/bin/java so run
/usr/bin/java -version
to check the version. That java is not necessarily the one on your path - you can find out which one that is with:
which java
Second thing you should probably try is the 64bit version of Eclipse. Everything else you have is 64bit.
Beyond that, I had all sorts of trouble early on with non-Sun JREs. That may not be the case now (or it may have been only specific to me) but it's something else you may want to look at.
On top of that (and probably unrelated to the problem at hand), do you really want to be running Eclipse from within your Firefox download directory. I would move it somewhere else personally.