Results 1 to 5 of 5
  1. #1
    DinnerFork is offline Member
    Join Date
    Feb 2012
    Posts
    20
    Rep Power
    0

    Default JWinAPI UnsatisfiedLinkError

    I have been trying to run the IEMain program from the JWinAPI demo but everyone time I do it says:

    Exception in thread "main" java.lang.UnsatisfiedLinkError: no JWinAPI in java.library.path
    at java.lang.ClassLoader.loadLibrary(Unknown Source)
    at java.lang.Runtime.loadLibrary0(Unknown Source)
    at java.lang.System.loadLibrary(Unknown Source)
    at com.JWinAPI.JWinAPI.<clinit>(JWinAPI.java:1664)
    at IEMain.main(IEMain.java:13)
    I tried running it on my Vista laptop and it worked perfectly the first time around but doesn't on my Windows 7 laptop. I also added the JWinAPI.jar to my BuildPath Library and Run Configurations Classpath. I also tried adding it to the Path environment variable.

    I am using JWinAPI version 1.9

    Is JWinAPI not usable with Windows 7 or have I set up something wrong?

  2. #2
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,458
    Rep Power
    20

    Default Re: JWinAPI UnsatisfiedLinkError

    Does that come with a .dll?

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

  3. #3
    DinnerFork is offline Member
    Join Date
    Feb 2012
    Posts
    20
    Rep Power
    0

    Default Re: JWinAPI UnsatisfiedLinkError

    Yes, it installs JWinAPI.dll. Since posting I've tried correcting some of the JWinAPI.dll errors with Dependency Walker but I get the same error in Eclipse.

  4. #4
    DinnerFork is offline Member
    Join Date
    Feb 2012
    Posts
    20
    Rep Power
    0

    Default Re: JWinAPI UnsatisfiedLinkError

    Alright, I tried making sure I was running on my 32bit jre, running 32 bit eclipse with no results still, and adding the JWinAPI.dll to my library path but I'm still getting the same error. I also get "the source attachment does not contain the source for the file". Would it be possible for me to make a 64 bit JWinAPI.dll that I could run?

  5. #5
    DinnerFork is offline Member
    Join Date
    Feb 2012
    Posts
    20
    Rep Power
    0

    Default Re: JWinAPI UnsatisfiedLinkError

    I got it to run without the error. At first I tried to made sure that that jre, jdk, and Eclipse I was using were 32 bit which still did not work. So I scrapped the entire project folder again and tried creating a new one. It worked without any problems this time.

    [Solved]

Similar Threads

  1. UnsatisfiedLinkError using JNI
    By JNB in forum Advanced Java
    Replies: 2
    Last Post: 07-19-2011, 05:51 PM
  2. UnsatisfiedLinkError using JNI
    By JNB in forum New To Java
    Replies: 2
    Last Post: 07-14-2011, 10:21 AM
  3. UnsatisfiedLinkError
    By leepan2008 in forum Advanced Java
    Replies: 4
    Last Post: 01-07-2011, 05:40 AM
  4. UnsatisfiedLinkError
    By Hussain Ali in forum Eclipse
    Replies: 2
    Last Post: 04-11-2010, 08:59 AM
  5. UnsatisfiedLinkError using gr.DotNetFromJava.cpp.dll
    By Viter_ in forum Advanced Java
    Replies: 0
    Last Post: 07-17-2009, 09:53 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •