I have Eclipse Neon x64 and OS is Windows 10 x64, jdk1.8.0_73. All was working fine, and I updated the eclipse and now "Failed to create Java Virtual Machine" is displayed. I have set JAVA_HOME and Path variable too. I tried editing the eclipse.ini file, did tried changing -Xmx,-Xms, adding -vm ...java path.. etc .But didn't work. My eclipse.ini file is :
-startup
plugins/org.eclipse.equinox.launcher_1.3.200.v20160318-1642.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.400.v20160518-1444
-product
org.eclipse.epp.package.jee.product
--launcher.defaultAction
openFile
-showsplash
org.eclipse.platform
--launcher.defaultAction
openFile
--launcher.appendVmargs
-vmargs
-javaagent:E:\Eclipse Neon\eclipse\plugins\com.zeroturnaround.eclipse.optimizer.plugin_1.0.11/agent/eclipse-optimizer-agent.jar
-server
-XX:PermSize=256m
-XX:MaxPermSize=512m
-XX:+UseParallelGC
-Dosgi.requiredJavaVersion=1.8
-XX:+UseG1GC
-XX:+UseStringDeduplication
-Dosgi.requiredJavaVersion=1.8
-Xms256m
-Xmx1024m
Please suggest me some solutions.
I added -vm "C:\Program Files\Java\jdk1.8.0_73\bin\javaw.exe" to the eclipse.ini before -vmargs line, you need to remove or comment out -vmargs and it worked.
Related
I am new to Java and trying to install Eclipse BIRT on a hosted linux server. I have executed the below commands using putty.
Step 1. Downloaded and extracted eclipse-reporting-neon-R-linux-gtk-x86_64.tar.gz file to /home/xxone/eclipse in cpanel.
Step2. Downloaded jdk-8u241-linux-i586.tar.gz and extracted into /home/xxone/jdk1.8.0_241/
Step 3: [Set the Java home and path varaibles][1]
export JAVA_HOME=/home/xxone/jdk1.8.0_241/
export PATH=$JAVA_HOME/bin:$PATH
Step 4: set -vm arguments in eclipse.ini as below
-startup
plugins/org.eclipse.equinox.launcher_1.3.200.v20160318-1642.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.400.v20160518-1444
-product
org.eclipse.epp.package.reporting.product
--launcher.defaultAction
openFile
-showsplash
org.eclipse.platform
--launcher.defaultAction
openFile
--launcher.appendVmargs
-vm
/home/xxone/jdk1.8.0_241/bin
-vmargs
-Dosgi.requiredJavaVersion=1.8
-XX:+UseG1GC
-XX:+UseStringDeduplication
-Dosgi.requiredJavaVersion=1.8
-Xms256m
-Xmx1024m
Step 5: when i try to run the eclipse file through putty, I am getting the below error.
[root#cloud eclipse]# ./eclipse
Eclipse:
GTK+ Version Check
Eclipse:
JVM terminated. Exit code=2
/home/xxone/jdk1.8.0_241/bin/java
-Dosgi.requiredJavaVersion=1.8
-XX:+UseG1GC
-XX:+UseStringDeduplication
-Dosgi.requiredJavaVersion=1.8
-Xms256m
-Xmx1024m
-jar /home/xxone/eclipse//plugins/org.eclipse.equinox.launcher_1.3.200.v2016 0318-1642.jar
-os linux
-ws gtk
-arch x86_64
-showsplash /home/xxone/eclipse//plugins/org.eclipse.platform_4.6.0.v2016060 6-1100/splash.bmp
-launcher /home/xxone/eclipse/eclipse
-name Eclipse
--launcher.library /home/xxone/eclipse//plugins/org.eclipse.equinox.launcher .gtk.linux.x86_64_1.1.400.v20160518-1444/eclipse_1617.so
-startup /home/xxone/eclipse//plugins/org.eclipse.equinox.launcher_1.3.200.v 20160318-1642.jar
--launcher.appendVmargs
-exitdata 40001
-product org.eclipse.epp.package.reporting.product
-vm /home/xxone/jdk1.8.0_241/bin/java
-vmargs
-Dosgi.requiredJavaVersion=1.8
-XX:+UseG1GC
-XX:+UseStringDeduplication
-Dosgi.requiredJavaVersion=1.8
-Xms256m
-Xmx1024m
-jar /home/xxone/eclipse//plugins/org.eclipse.equinox.launcher_1.3.200.v2016 0318-1642.jar
Any help is much appreciated.
Thanks.
Premise:
I am constrained to work on a very old Ubuntu 10.04LTS(aka Lucid Lynx)
After have downloaded (now) Oracle's most used 1.8 Java(and latest 1.8 release: 1.8.0_172) decompressed it and set it correctly in PATH in bash i downloaded and decompressed in $ECLIPSE_HOME the latest runnable(cause eclipse releases >= Oxygen require a newer gtk library that actually can't have in that PC) eclipse for my machine: eclipse-java-neon-3-linux-gtk-x86_64.tar.gz
When i tried to execute eclipse instead of a running instance i got that error dialog message
JVM terminated. Exit code=1
/usr/bin/java
-Dosgi.requiredJavaVersion=1.8
-XX:+UseG1GC
-XX:+UseStringDeduplication
-Dosgi.requiredJavaVersion=1.8
-Xms256m
-Xmx1024m
-jar /home/harrykar/Java8/eclipseJavaNeon64//plugins/org.eclipse.equinox.launcher_1.3.201.v20161025-1711.jar
-os linux
-ws gtk
-arch x86_64
-showsplash /home/harrykar/Java8/eclipseJavaNeon64//plugins/org.eclipse.platform_4.6.3.v20170301-0400/splash.bmp
-launcher /home/harrykar/Java8/eclipseJavaNeon64/eclipse
-name Eclipse
--launcher.library /home/harrykar/Java8/eclipseJavaNeon64//plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.401.v20161122-1740/eclipse_1618.so
-startup /home/harrykar/Java8/eclipseJavaNeon64//plugins/org.eclipse.equinox.launcher_1.3.201.v20161025-1711.jar
--launcher.appendVmargs
-exitdata 6e8037
-product org.eclipse.epp.package.java.product
-vm /usr/bin/java
-vmargs
-Dosgi.requiredJavaVersion=1.8
-XX:+UseG1GC
-XX:+UseStringDeduplication
-Dosgi.requiredJavaVersion=1.8
-Xms256m
-Xmx1024m
-jar /home/harrykar/Java8/eclipseJavaNeon64//plugins/org.eclipse.equinox.launcher_1.3.201.v20161025-1711.jar
Anyone has a clue?
TIA
Best Regards
Harry G.T. Kar
All that time i was focused to search in Web for a solution (but without luck) and not dig into the eclipse.ini file assumed it correct.
My eclipse.ini after eclipse installation looked like that:
-startup
plugins/org.eclipse.equinox.launcher_1.3.201.v20161025-1711.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.401.v20161122-1740
-product
org.eclipse.epp.package.java.product
--launcher.defaultAction
openFile
-showsplash
org.eclipse.platform
--launcher.defaultAction
openFile
--launcher.appendVmargs
-vmargs
-Dosgi.requiredJavaVersion=1.8
-XX:+UseG1GC
-XX:+UseStringDeduplication
-Dosgi.requiredJavaVersion=1.8
-Xms256m
-Xmx1024m
I notice here missed the path to java(JDK) actually in use(don't forget i used a custom installation of java - in my home directory - not that provided from the Ubuntu system in /usr/bin/ as the error message correctly reported)
So the solution was simply to add 2 lines in the eclipse.ini(i.e. the custom path to JDK).
Beware it's important to write these lines before the -vmargs as shown below (or also delete -vmargs if not use it)
-vm
/home/harrykar/Java8/jdk1.8.0_172/bin
-vmargs
And that's it eclipse now works as intended
Best Regards
Harry G.T. Kar
I have been trying to install Eclipse on my Windows 10 Dell PC.
Here's how my eclipse.ini file looks like originally:-
-startup
plugins/org.eclipse.equinox.launcher_1.4.0.v20161219-1356.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.551.v20171108-1834
-product
org.eclipse.epp.package.java.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
-Xms256m
-Xmx1024m
--add-modules=ALL-SYSTEM
I have been trying to do the following:-
Changed version from 1.8 to 1.7 as I have installed Java 1.7
Added this before -vmargs
-vm
C:\Program Files\Java\jdk1.7.0_80\bin\javaw.exe
Also changing -Xmx1024m to -Xmx512m
But still some or the other error occurs and I am totally clueless about what is happening
I get errors like
Cannot create Java Virtual Machine
or
An error has occurred. See log \some\path in configuration folder whose content I am unable to understand
I don't have any workspace where I can delete .metadata/.plugins some file path to something call .snap where I can delete that
Also, tried -clean command, that doesn't works too.
I would start with cleaning your system, that means uninstall Java completely with all of its versions. Either that, or try to upload that log you cannot understand, maybe some of us will and it will shine a light on your situation.
I have already looked at this question and none of the existing answers were particularly helpful.
The error message is
"Unable to stage app: Cannot get the System Java Compiler. Please use
a JDK, not a JRE."
$JAVA_HOME
/usr/lib/jvm/java-8-openjdk-amd64
$PATH
/usr/lib/jvm/java-8-openjdk-amd64/bin:/usr/lib/jvm/java-8-openjdk-amd64//bin:/home/ukraine/.nvm/versions/node/v9.11.1/bin:/home/ukraine/Downloads/Libraries/Python/google-cloud-sdk/bin:/home/ukraine/bin:/home/ukraine/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
eclipse.ini
-startup
plugins/org.eclipse.equinox.launcher_1.4.0.v20161219-1356.jar
--launcher.library
/root/.p2/pool/plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.551.v20171108-1834
-product
org.eclipse.epp.package.java.product
-showsplash
org.eclipse.epp.package.common
--launcher.defaultAction
openFile
--launcher.appendVmargs
-vm
/usr/lib/jvm/java-8-openjdk-amd64/jre/bin
-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
-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/
It turns out that I needed to use the Oracle JDK instead of the Open JDK
I've reviewed previous answers for this type of question, and have tried to act according to the answers given but still come up with this problem.
I've deleted previous versions of Eclipse and installed the 64-bit version in line with my OS, ensured JRE is for 64-bit.
Below, is my STS.ini
-startup
plugins/org.eclipse.equinox.launcher_1.3.200.v20160318-1642.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.400.v20160518-1444
-product
org.springsource.sts.ide
--launcher.defaultAction
openFile
-vmargs
-Dosgi.requiredJavaVersion=1.8
-Xms40m
-Xverify:none
-Dorg.eclipse.swt.browser.IEVersion=10001
-Xmx768m
And for eclipse:
-startup
plugins/org.eclipse.equinox.launcher_1.3.200.v20160318-1642.jar
--launcher.library
C:\Users\KIDS\.p2\pool\plugins\org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.400.v20160518-1444
-product
org.eclipse.epp.package.java.product
--launcher.defaultAction
openFile
-showsplash
org.eclipse.platform
--launcher.appendVmargs
-vmargs
-Dosgi.requiredJavaVersion=1.8
-XX:+UseG1GC
-XX:+UseStringDeduplication
-Dosgi.requiredJavaVersion=1.8
-Xms256m
-Xmx1024m
-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/
Absence of -vm is since I added that before all the re-installing but with the new installations the same problem occurs.
The STS.ini is for 32 bit – greg-449