Eclipse gives the error of JNI shared library - eclipse

Eclipse is unable to open, I installed a fresh copy of jre7 and eclipse but it did not work. First it gives the error message "cannot find virtual machine", so I write path of bin in eclipse.ini file. but now it gives the error message "Failed to load the jni shared library C:\Program Files (x86)\Java\jre7\bin\client\jvm.dll".
how can i fix this problem? I have a 64 bit os. The jre and eclipse are also of 64 bit. so what is the problem?

Related

Eclipse installation error: java.io.IOException

I tried to install Eclipse Oxygen on my macbook with High Sierra. The installation failed with logs.
At the end of the log I found:
java.io.IOException: Failed to create directory /Users/macuser/.p2/pool/plugins.
I have my username on the macbook which is different than macuser. I'm wondering how to make Eclipse installation or how to tell my mac not create directory inside "macuser" but inside "mycustomser" instead.

Fatal error compiling: tools.jar not found: C:\Program Files\Java\jre6\..\lib\tools.jar ->

I am having a strange issue. I am using maven 3.2, java 1.6 and jboss 5.1.
I am using all these old version because I have some system requirement.
I am working on web application.
I am getting an error
Fatal error compiling: tools.jar not found: C:\Program Files\Java\jre6\..\lib\tools.jar ->
imperviously it was working fine. When I made some changes in code and when I did this from that time I am getting This error.
I tried updating maven forcefully.
I tried maven install from eclipse.
Even I downloaded the missing jar and put into C:\Program
Files\Java\jre6\..\lib\ this path.
and many more still I am getting this error. please help me.
I think your eclipse is pointed to JRE not JDK. Can you point it to JDK and check?
Mistake you did is ---
Your build path is pointing to the wrong JRE directory/folder. So, you have to change the build path to JRE folder(which is inside the JDK folder) rather not the JRE folder that's available outside the JDK.
Eclipse > Select Windows > properties > Java > Installed JREs
• Select the "jreX" under the Installed JREs list > Select "Edit" or double click
• Your JRE home directory location may be pointing to something like
JRE home: C:..\Java\jre1.x --- (which is wrong)
• Point to the right directory as follows:
JRE home: C:..\java\jdk1.x\jre --- (this is right)
• Finish.
Clean your project and compile it. It should work fine :)

Eclipse JRE error ? How to fix it?

The error is like this
Description Resource Path Location Type
The project cannot be built until build path errors are resolved abc Unknown Java Problem
Unbound classpath container: 'JRE System Library [OSGi/Minimum-1.2]' in project 'abc' abc Build path Build Path Problem
I think it happens from Installed Jre's when I go there I see no Jres
Im also using Mac os x 10.10.1 yosemite
How can I fix this ?
I fixed it . Not a fix for juno but
I downloaded eclipse indigo And it detected Jres automatically .
Then for android I just add ADT to Indigo
Thats it .

NetBeans- Java Fx(mobile) could'n buld the projecjt

I have an error in NetBeans(mobile business application)
I have installed JDK (latest version jdk1.6.0_21)
After this I had an error:
Cannot run program "C:\Program Files (x86)\Java\jre6\bin\javac.exe": CreateProcess error=2, The system cannot find the file specified
BUILD FAILED (total time: 1 second)
Then in "Advanced system settings"->Environment variables
I added a new line in "system variables" - "JAVA_HOME" ,value - C:\Program Files\Java\jdk1.6.0_21 (my path to JDK)
Then i had "unknown error"
See in the screen..->
http://img693.imageshack.us/img693/6423/screencc.png' border='0' width="300px" height="300px"> or url http://img693.imageshack.us/img693/6423/screencc.png
Thanks for the answers!
I think this is specific to your machine setup. javac is the Java compiler, but it's looking for it inside C:\Program Files (x86)\Java\jre6\ instead of C:\Program Files (x86)\Java\jdk1.6.0_21\.
Let's try to dig through this:
Did you uninstall your previous JDK after you installed JDK6u21?
Did you uninstall your JRE?
What OS are you running? Windows 7 64?
Go to your Add/Remove Programs. You need the following entries:
What do you have in your C:\Program Files (x86)\Java\?
AFAIK, you have to install both the 32-bit and 64-bit version of the JDK.

Error when installing plugin in Eclipse

When I try to install a plugin in Eclipse I get these error messages
Registry event dispatcher
Error notifying registry change listener.
Error notifying registry change listener.
Invalid registry object
Error notifying registry change listener.
Invalid registry object
Error notifying registry change listener.
Invalid registry object
Error notifying registry change listener.
Invalid registry object
Error notifying registry change listener.
Invalid registry object
Has someone an idea what the cause of this problem could be? Thanks
Edit:
I see the Eclipse .log file has also a lot of new stack traces
The first one is
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=nl_NL
Framework arguments: -product org.eclipse.epp.package.jee.product
Command-line arguments: -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.jee.product
!ENTRY org.eclipse.equinox.registry 4 2 2010-05-06 21:04:31.236
!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.equinox.registry".
!STACK 0
org.eclipse.core.runtime.InvalidRegistryObjectException: Invalid registry object
at org.eclipse.core.internal.registry.TemporaryObjectManager.getObject(TemporaryObjectManager.java:98)
at org.eclipse.core.internal.registry.BaseExtensionPointHandle.getExtensionPoint(BaseExtensionPointHandle.java:106)
at org.eclipse.core.internal.registry.BaseExtensionPointHandle.getContributor(BaseExtensionPointHandle.java:45)
at org.eclipse.core.internal.registry.BaseExtensionPointHandle.getNamespace(BaseExtensionPointHandle.java:37)
at org.eclipse.ui.internal.PopupMenuExtender.registryChanged(PopupMenuExtender.java:520)
at org.eclipse.core.internal.registry.ExtensionRegistry$2.run(ExtensionRegistry.java:921)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.core.internal.registry.ExtensionRegistry.processChangeEvent(ExtensionRegistry.java:919)
at org.eclipse.core.runtime.spi.RegistryStrategy.processChangeEvent(RegistryStrategy.java:260)
at org.eclipse.core.internal.registry.osgi.ExtensionEventDispatcherJob.run(ExtensionEventDispatcherJob.java:50)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Edit2:
When I restart Eclipse I get a "install connectors" window, but when I select a connector and click on "Finish" nothing happens and there appears an "Unhandled event loop exception" in the Eclipse log
Edit3:
I tried Subclipse instead of Subversive but that gives these errors
Failed to load JavaHL Library.
These are the errors that were encountered:
no libapr-1 in java.library.path
no libapriconv-1 in java.library.path
C:\Program Files (x86)\Zend\Core\bin\libeay32.dll: Can't load IA 32-bit .dll on a AMD 64-bit platform
C:\Program Files (x86)\Zend\Core\bin\ssleay32.dll: Can't load IA 32-bit .dll on a AMD 64-bit platform
no libaprutil-1 in java.library.path
no libsvn_subr-1 in java.library.path
no libsvn_delta-1 in java.library.path
no libsvn_diff-1 in java.library.path
no libsvn_wc-1 in java.library.path
no libsvn_fs-1 in java.library.path
no libsvn_repos-1 in java.library.path
no libsvn_ra-1 in java.library.path
no libsvn_client-1 in java.library.path
no libsvnjavahl-1 in java.library.path
no svnjavahl-1 in java.library.path
no svnjavahl in java.library.path
java.library.path = C:\Windows\system32;.;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Zend\Core\bin;C:\Program Files (x86)\Zend\Core\oic;C:\Program Files (x86)\MySQL\MySQL Server 5.0\bin;C:\Program Files (x86)\Common Files\Acronis\SnapAPI\;C:\Program Files\TortoiseSVN\bin;C:\Program Files (x86)\QuickTime\QTSystem\;C:\Program Files\Java\jdk1.6.0_20\bin
Is there a possibility that the installed Eclipse version conflicts with another installed Eclipse version or with Zend Studio?
It's problem with x64 Java.
With x64 java you need to use JavaHL with x64 support
This is official FAQ
http://subclipse.tigris.org/wiki/JavaHL#head-0ae839721445e3f59d10a128ec9439d4f4988d5f
I have same installation and it works after steps from FAQ
Edit: You may also need to edit your PATH variable (in Windows at least) to include the bin folder from the SlikSVN install that is recommended in the subclipse FAQ listed above.
If you are installing Subclipse plugin for SVN in eclipse on windows7 64 bit. Make sure you do not install JavaHL as part of the plugin install options. You need to separately install SilkSVN install outside the eclipse. Steps are here,
First install SilkSVN, than install Subclipse plugin install withouth JavaHL plugin checked.
For Kirk Woll:
Modify your Path in Environment variables
Change C:\Program Files\SlikSvn\bin\ into C:\Program Files\SlikSvn\bin
maybe this can help you.
Install SlikSvn http://www.sliksvn.com/en/download
Change system variables path: C:\Program Files\SlikSvn\bin\ to C:\Program Files\SlikSvn\bin
Did you observe that on a fresh installation of Eclipse?
And in the case of your instance of Eclipse, did you try to relaunch iot a second time? (and still see errors?)
Because when several plugins are already there, this thread mentions (for AJDT but that can be applied to other plugins as well):
The error means that somebody holds on to the handles to the extension registry objects that no longer exists.
Most likely AJDT (or one of the bundles it depends on) maintains persistent cache of registry objects, such as extensions or extension points.
When a bundle is updated, behind the scene the "old" version of the bundle is uninstalled, removing all its registry elements, and when the new version of the bundle is installed, adding new registry element.
If a bundle cached handles for extensions/extension points and did not react to the registry events, it ends up with invalid handles.
I had the same problem, running eclipse 64 bit on windows 7 64 bit, trying to use subclipse and this is how I fixed it:
I have installed eclipse Helios 64 bit.
I have installed jdk 1.6 64 bit.
I have installed subclipse.
I have installed JavaHL (Slik subversion) 64 bit.
I had to make sure eclipse uses the 64 bit version Java when launching (this can be verified when looking at the java.library.path property in eclipse->help->about eclipse->installation details->configuration. Make sure it shows also the path to your 64 bit JDK - if not, change the relevant system environment variable from your windows control panel->system and restart eclipse with the -clean variable).