2

My laptop is 64 bit. But I have java 7 update 11(32 bit) for certain essential softwares. Now, i need java 8 (64 bit) and eclipse mars (64 bit) to work. I am unable to change version from java 7(x86) to java 8(64). I do not want to remove 32 bit java and also work with java 8, 64 bit. I have included the path system variable contents. I am a beginner. will appreciate if you do not write GLIB and derisive comments.

I am not looking for any batch scripts answers. Can it be done using GUI?

C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Java\jre7\bin;C:\Program Files (x86)\Java\jre7\bin;C:\Program Files\nodejs\;C:\Program Files (x86)\Java\jre7\bin;C:\Program Files (x86)\MySQL\MySQL Fabric 1.5 & MySQL Utilities 1.5\;C:\Program Files (x86)\MySQL\MySQL Fabric 1.5 & MySQL Utilities 1.5\Doctrine extensions for PHP\;C:\Program Files (x86)\Java\jre7\bin;C:\Program Files (x86)\Java\jre7\bin;C:\Program Files (x86)\Java\jre7\bin;C:\Program Files (x86)\Java\jre7\bin;C:\Program Files (x86)\Java\jre7\bin;C:\Program Files (x86)\Java\jre7\bin;C:\Program Files (x86)\Java\jre7\bin;C:\Program Files (x86)\Java\jre7\bin;C:\Program Files (x86)\Java\jre7\bin;C:\Program Files (x86)\Java\jre7\bin;C:\Program Files (x86)\Java\jre7\bin;C:\Program Files (x86)\Java\jre7\bin;C:\Program Files (x86)\Java\jre7\bin;C:\Program Files (x86)\Java\jre7\bin;C:\Program Files (x86)\Java\jre7\bin;C:\Program Files\Java\jdk1.7.0_79\bin;C:\Program Files\Java\jdk1.8.0_91\bin;C:\Program Files (x86)\Java\jre7\bin;C:\Program Files\Java\jre1.8.0_91\bin;C:\Program Files (x86)\Java\jdk1.7.0_11\jre\bin\;C:\Program Files (x86)\Java\jre7\bin

My eclipse.ini

-startup
plugins/org.eclipse.equinox.launcher_1.3.100.v20150511-1540.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.300.v20150602-1417
-product
org.eclipse.epp.package.jee.product
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
256M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
--launcher.appendVmargs
-vmargs
-Dosgi.requiredJavaVersion=1.7
-Xms256m
-Xmx1024m

-vm C:\Program Files\Java\jre1.8.0_91\bin\javaw.exe

5
  • If you want to use java 8 just from Eclipse, try editing eclipse.ini. Commented May 4, 2016 at 11:14
  • I have tried -vm C:\Program Files\Java\jre1.8.0_91\bin\javaw.exe in eclipse.ini Commented May 4, 2016 at 11:14
  • Try -vm C:\Program Files\Java\jre1.8.0_91\bin Commented May 4, 2016 at 11:16
  • 1
    Note: The -vm and the file path must be on separate lines in the eclipse.ini. They must also be above any -vmargs line. Commented May 4, 2016 at 11:23
  • tried... but not working greg-449 and uoyilmaz Commented May 4, 2016 at 11:26

1 Answer 1

1

You added to eclipse.ini

-vm C:\Program Files\Java\jre1.8.0_91\bin\javaw.exe

but should

-vm
C:\Program Files\Java\jre1.8.0_91\bin\javaw.exe

There must be a new line between. Are you sure you want to use JRE instead of JDK?

Try such an ini

-startup
plugins/org.eclipse.equinox.launcher_1.3.100.v20150511-1540.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.300.v20150602-1417
-product
org.eclipse.epp.package.jee.product
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
256M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
--launcher.appendVmargs
-vm 
C:\Program Files\Java\jre1.8.0_91\bin\javaw.exe
-vmargs
-Dosgi.requiredJavaVersion=1.7
-Xms256m
-Xmx1024m

Sign up to request clarification or add additional context in comments.

1 Comment

should i use C:\Program Files\Java\jdk1.8.0_91\bin\javaw.exe

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.