Monday, February 21, 2011

how to :eclipse win64 , java.lang.UnsatisfiedLinkError: Can't load library: /C:/eclipse/eclipse64/eclipse/configuration/org.eclipse.osgi/bundles/292/1/.cp/lib/linux/x86/libjd-eclipse.so

I found it’s a very tricky issue when you are using jdeclipse add-in, and switching between win 32 and win 64.

one day, I get this error, as attached,
eclipse win64 , java.lang.UnsatisfiedLinkError: Can't load library: /C:/eclipse/eclipse64/eclipse/configuration/org.eclipse.osgi/bundles/292/1/.cp/lib/linux/x86/libjd-eclipse.so

image

How to fix that.

  1. Make sure you download the Right version of Eclipse, on Windows 64 , please download the 64 bit version eclipse and using the 64 bit JVM.
    ( in the eclipse.int, put a –vm pathyour64bitjre/bin/java.exe”)
  2. After you finish the Eclipse download, Download the jdeclipse http://java.decompiler.free.fr/jd-eclipse/update/jdeclipse_update_site.zip and unzip the file to eclipse folder.
  3. When you open a Workspace which is generated by 32 bit eclipse, Please chose a new workspace, or manually edit the pref file [workspace]\.metadata\.plugins\org.eclipse.core.runtime\.settings, replace x86 with x86_64.
    otherwise, you will be in a situation that 64 bit host to load 32 bit dll, ( eclipse figure out a wrong system architecture., cached by previous editor)

No comments:

 
Locations of visitors to this page