4 Replies - 64025 Views - Last Post: 11 July 2010 - 03:38 AM Rate Topic: -----

#1 xor-logic  Icon User is offline

  • HAL9000 was an Apple product
  • member icon

Reputation: 128
  • View blog
  • Posts: 764
  • Joined: 04-February 10

Eclipse can't load jvm.dll

Posted 09 July 2010 - 08:16 PM

Recently I started having some unexplained issues with Eclipse. Tried to fix it for a bit and failed, and I figured that I'd accidentally changed a setting somewhere that I wasn't aware of.

So I uninstalled Eclipse, downloaded it again and did a fresh install. When I try to run the application however, it pops up an error message saying: "Failed to load the JNI shared library "C:\Program Files (x86)\Java\jdk1.6.0\bin\..\jre\bin\client\jvm.dll".

I wondered if the problem might not have been with my jdk, so I moved the old one to another folder, downloaded it again, edited the path variable to point to the jdk's bin folder, and I'm still getting the error.

I just slapped together a quick Hello World program and compiled and ran it from the command prompt, so that still works.

How do I fix this?

Is This A Good Question/Topic? 1
  • +

Replies To: Eclipse can't load jvm.dll

#2 g00se  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 2735
  • View blog
  • Posts: 11,522
  • Joined: 20-September 08

Re: Eclipse can't load jvm.dll

Posted 09 July 2010 - 11:30 PM

See what happens when you do this:

1. Change at the command line to the directory containing jvm.dll
2. Do copy jvm.dll %WINDIR%
3. Start Eclipse

I'm not suggesting that's the ultimate solution - just try it first
Was This Post Helpful? 0
  • +
  • -

#3 Guest_Aniket*


Reputation:

Re: Eclipse can't load jvm.dll

Posted 10 July 2010 - 09:18 PM

*
POPULAR

You are using eclipse 64 bit version and your jdk is 32 bit. Try installing 64 bit jdk or using 32 bit eclipse
Was This Post Helpful? 5

#4 xor-logic  Icon User is offline

  • HAL9000 was an Apple product
  • member icon

Reputation: 128
  • View blog
  • Posts: 764
  • Joined: 04-February 10

Re: Eclipse can't load jvm.dll

Posted 10 July 2010 - 10:19 PM

View PostAniket, on 11 July 2010 - 03:18 AM, said:

Try ... using 32 bit eclipse


You, sir, are my hero. Thank you.

Do you perhaps know how to get Eclipse to go back to running things as a Java Application by default? When I hit the run icon, it gives me a bunch of gibberish about incorrect usage of the command javaw. However, if I select Run as... Java Application from the menu or the icon, or use the keyboard shortcut to do it, it still runs fine. Just wish it was default behavior.
Was This Post Helpful? 0
  • +
  • -

#5 g00se  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 2735
  • View blog
  • Posts: 11,522
  • Joined: 20-September 08

Re: Eclipse can't load jvm.dll

Posted 11 July 2010 - 03:38 AM

Quote

You are using eclipse 64 bit version and your jdk is 32 bit.


How did you know?
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1