Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse (Mars) not getting started after a java Upgrade

When I am starting the eclipse I am getting this error. -vm argument contains the path of the java.exe which is not their in my system possible after a java upgrade. How Can I correct this? Java was started but returned exit code=13 C:/ProgramData/Oracle/java/javapath/java.exe.... This path does not exist in my system

Eclipse.INI contents are

 -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.eclipse.epp.package.jee.product
 --launcher.defaultAction
 openFile
 --launcher.XXMaxPermSize
 512M
 -showsplash
 org.eclipse.platform
 --launcher.XXMaxPermSize
 512m
 --launcher.defaultAction
 openFile
 --launcher.appendVmargs
 -vmargs
 -Dosgi.requiredJavaVersion=1.6
 -Xms40m
 -Xmx512m
like image 952
kushwah_a Avatar asked Oct 21 '22 00:10

kushwah_a


1 Answers

osgi.requiredJavaVersion=1.6

this line specifies to use Java 6. If you upgraded JAVA you should update this field.

https://wiki.eclipse.org/Eclipse.ini#Specifying_the_JVM

like image 164
onof Avatar answered Oct 23 '22 03:10

onof