Eclipse- Failed to load JNI shared library

Today I have downloaded the Eclipse IDE with below details:

Version : Mars Release (4.5.0)
For OS : Windows 64 bit
Link : http://www.eclipse.org/
I have got a *.zip package for startup. When I tried to execute the eclipse.exe file, it shown me a splash screen followed by an alert and then exit.

Failed to load JNI shared library "C:\Program Files (x86)\Java\jdk1.6.0_20\jre\bin\client\jvm.dll"

I was not able to use the Eclipse IDE. However after a lot of effort, below changes worked as magic to run my eclipse IDE.
-------------------------------------------------------------------------
eclipse.ini before
-------------------------------------------------------------------------
-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
-Dosgi.requiredJavaVersion=1.7
-Xms256m

-Xmx1024m
-------------------------------------------------------------------------
eclipse.ini after
-------------------------------------------------------------------------
-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\jdk1.8.0_91\jre\bin
-vmargs
-Dosgi.requiredJavaVersion=1.7
-Xms256m
-Xmx1024m
-------------------------------------------------------------------------
Added property -vm has parameter location pointing to required jre location. Now I saved the file and executed eclipse.exe again, it's working for me :)






Comments

Popular posts from this blog

Oracle SOA Suite- Implementing Email Notification

Oracle SOA Suite 12c- PKIX path building failed & unable to find valid certification path to requested target

Migration of Oracle SOA Suite Composite from 11g to 12c