I have added the following in eclipse.ini before -vmargs:
-vm
C:\Program Files\Java\jdk1.8.0_201\jre\bin\javaw.exe
But when I run I get an error 13. I am seeing two vm in the error log. How do I keep only one? Below is the error.
Below is eclipse.ini:
-startup
plugins/org.eclipse.equinox.launcher_1.5.600.v20191014-2022.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.1100.v20190907-0426
-product
org.eclipse.epp.package.jee.product
-showsplash
org.eclipse.epp.package.common
--launcher.defaultAction
openFile
--launcher.defaultAction
openFile
--launcher.appendVmargs
-vm
C:\Program Files\Java\jdk1.8.0_201\jre\bin\javaw.exe
-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
Related
I am not able to open the eclipse by clicking on eclipse.exe file.
version details are :
Eclipse IDE for Enterprise Java and Web Developers (includes Incubating components)
Version: 2021-12 (4.22.0)
Build id: 20211202-1639
eclipse.ini
-clean
-vm
C:/Program Files/Java/jdk-11.0.11/bin
-startup
plugins/org.eclipse.equinox.launcher_1.6.400.v20210924-0641.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.2.400.v20211117-0650
-product
org.eclipse.epp.package.jee.product
-showsplash
org.eclipse.epp.package.common
--launcher.defaultAction
openFile
--launcher.defaultAction
openFile
--launcher.appendVmargs
-vm
plugins/org.eclipse.justj.openjdk.hotspot.jre.full.win32.x86_64_17.0.1.v20211116-1657/jre/bin
-vmargs
-Dosgi.requiredJavaVersion=11
-Dosgi.instance.area.default=#user.home/eclipse-workspace
-Dsun.java.command=Eclipse
-XX:+UseG1GC
-XX:+UseStringDeduplication
--add-modules=ALL-SYSTEM
-Dosgi.requiredJavaVersion=11
-Dosgi.dataAreaRequiresExplicitInit=true
-Dorg.eclipse.swt.graphics.Resource.reportNonDisposed=true
-Xms256m
-Xmx1064m
--add-modules=ALL-SYSTEM
did I miss anything in the .ini file?
I am trying to run the Eclipse 2020-09. I have two JDKs installed (15 and 1.8) and one JRE (1.8). I have to keep my environment variables pointing to the JDK 1.8. Because everything I work on uses 1.8. Only Eclipse needs JDK 15. How do i get Eclipse to use the JDK 15? I have my eclipse.ini file like this:
-startup
plugins/org.eclipse.equinox.launcher_1.5.800.v20200727-1323.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.1300.v20200819-0940
-product
org.eclipse.epp.package.jee.product
-showsplash
org.eclipse.epp.package.common
--launcher.defaultAction
openFile
--launcher.defaultAction
openFile
--launcher.appendVmargs
-vmargs
-Dosgi.requiredJavaVersion=11
-Dosgi.instance.area.default=#user.home/eclipse-workspace
-XX:+UseG1GC
-XX:+UseStringDeduplication
--add-modules=ALL-SYSTEM
-Dosgi.requiredJavaVersion=11
-vm "C:\Program Files\Java\jdk-15\bin\javaw.exe"
-Dosgi.dataAreaRequiresExplicitInit=true
-Xms1536m
-Xmx3072m
--add-modules=ALL-SYSTEM
But it still doesn't boot up Eclipse. I keep getting the error saying my JDK is 1.8 and I need 11 or higher pop-up message. Please let me know what I am doing wrong here? Or if I need some more configuration changes.
-vm and the path must be on separate lines and must be before the -vmargs line. No quotes around the path:
-startup
plugins/org.eclipse.equinox.launcher_1.5.800.v20200727-1323.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.1300.v20200819-0940
-product
org.eclipse.epp.package.jee.product
-showsplash
org.eclipse.epp.package.common
--launcher.defaultAction
openFile
--launcher.defaultAction
openFile
--launcher.appendVmargs
-vm
C:\Program Files\Java\jdk-15\bin\javaw.exe
-vmargs
-Dosgi.requiredJavaVersion=11
-Dosgi.instance.area.default=#user.home/eclipse-workspace
-XX:+UseG1GC
-XX:+UseStringDeduplication
--add-modules=ALL-SYSTEM
-Dosgi.requiredJavaVersion=11
-Dosgi.dataAreaRequiresExplicitInit=true
-Xms1536m
-Xmx3072m
--add-modules=ALL-SYSTEM
While running eclipse, i found the below error :-
Java started but returned exit code=13
Below are the details from
-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.jee.product
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
2048m
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
2048m
--launcher.defaultAction
openFile
C:\Program Files (x86)\IBM\WebSphere\AppServer\java\bin\javaw.exe
-Xmx512m
-vm "C:\Program Files\Java\jdk1.6.0_31\bin\javaw.exe"
-vm "C:\Program Files\Java\jre6\bin\javaw.exe"
-Dosgi.requiredJavaVersion=1.6
I checked other forums too, but didn't get the appropriate answer.Please help
When trying to import a project I am facing a warning message as shown in the screen shot.
Here is how my eclipse.ini looks like.
-startup
plugins/org.eclipse.equinox.launcher_1.1.0.v20100507.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.1.R36x_v20100810
-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
-Xms768m
-Xmx1024m
-vm
C:\Program Files (x86)\Java\jdk1.6.0_21\bin\javaw.exe
Change the path to javaw.exe to use forward slashes:
C:/Program Files (x86)/Java/jdk1.6.0_21/bin/javaw.exe
My eclipse configuration is described below,
-startup
plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.100.v20110505
-product
org.eclipse.epp.package.java.product
--launcher.defaultAction
openFile
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
-vmargs
-Dosgi.requiredJavaVersion=1.5
-XX:MaxPermSize=256m
-Xms40m
-Xmx1400m
I am using ubuntu with 6 gb of memory, please give me some best configuration for eclipse indigo.
Increase value for -Xmx parameter.