3

I've just downloaded the JDK ( http://download.oracle.com/otn-pub/java/jdk/6u27-b07/jdk-6u27-windows-i586.exe ), 32 bit. And eclipse ( http://www.eclipse.org/downloads/download.php?file=/eclipse/downloads/drops/R-3.7.1-201109091335/eclipse-SDK-3.7.1-win32.zip ), 32 bit. And Windows 7 is 32 bit. None of the "you need the 64 bit JVM" solutions will work here.

When I run eclipse.exe, all I get is a dialog box:

Failed to load the JNI shared library "C:\Program Files\Java\jre6\bin\client\jvm.dll".

That file does exist. If I run Eclipse as an administrator it works. I categorically do not want to do that. I want my user account to own the files I will be creating and editing.

If I add

-vm
C:\Program Files\Java\jre6\bin\javaw.exe

to eclipse.ini it will run, but then I cannot pin it to the task bar.

How do I get Eclipse to A) Run B) As my user account C) Pinned to the task bar?

arantius
  • 1,715
  • 1
  • 17
  • 28

1 Answers1

0

You should try, as illustrated in this eclipse.ini to reference a JRE within a JDK, not a JRE directly:

-vm
C:/Program Files/Java/jdk1.6.0_27/jre/bin/server/jvm.dll
Community
  • 1
  • 1
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
  • That gives the same error, except with that path. However "C:\Program Files\Java\jdk1.6.0_27\jre\bin\javaw.exe" runs, but behaves identically. – arantius Oct 08 '11 at 02:03
  • @arantius: did you try with the same `eclipse.ini` than the one I mention? You can also try and copy the jdk directory elsewhere, in case there is some limitations due to the fact it is in "`Progam Files`" – VonC Oct 08 '11 at 07:05
  • Install to C:\Java and launching (stock) Eclipse gives the same error (Now "Failed to load the JNI shared library C:\Java\jre6\bin\client\jvm.dll."). Edit just the vm line, same almost working behavior. Any vm pointing to jvm.dll fails to load, same error. Any, including that ini verbatim, pointing to javaw.exe gives the no-pinning behavior. – arantius Oct 12 '11 at 00:41
  • @arantius: then maybe this can help: http://www.java.com/en/download/help/error_mainclass.xml (taken from http://stackoverflow.com/questions/7352493/failed-to-load-the-jni-shared-library-jdk) – VonC Oct 12 '11 at 03:52
  • @arantius that thread points out to 64-bit JDK (http://www.eclipse.org/forums/index.php/t/170758/) which shouldn't be your issue. But it still would be interesting to check a 64-bit JDK with a 64-bits eclipse. – VonC Oct 12 '11 at 03:58
  • That says "During Java installation process". Java installs fine. Eclipse doesn't run. I have a 32 bit OS so ... 64 bit anything is not a solution. – arantius Oct 12 '11 at 16:45
  • @arantius: right... sorry for the false leads. At least I tried. – VonC Oct 12 '11 at 17:08