fabiofai / jnibwapi

Automatically exported from code.google.com/p/jnibwapi
0 stars 0 forks source link

"Native code library failed to load" when running run.bat #32

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Attempting to call run.bat [jnibwapi 0.3.7, Windows 8.1 64bit] gives the 
following error message:

C:\Users\username\Desktop\jnibwapi\release>REM change back to the current 
director
y (if run as administrator)

C:\Users\username\Desktop\jnibwapi\release>cd 
C:\Users\Plasma\Desktop\jnibwapi\rel
ease\

C:\Users\username\Desktop\jnibwapi\release>REM start the java bot (you may need 
to
 specify 32-bit java here)

C:\Users\username\Desktop\jnibwapi\release>java -jar jnibwapi.jar
Native code library failed to load.
java.lang.UnsatisfiedLinkError: 
C:\Users\username\Desktop\jnibwapi\release\client-
bridge-amd64.dll: %1 is not a valid Win32 application
Exception in thread "main" java.lang.UnsatisfiedLinkError: jnibwapi.JNIBWAPI.sta
rtClient(Ljnibwapi/JNIBWAPI;)V
        at jnibwapi.JNIBWAPI.startClient(Native Method)
        at jnibwapi.JNIBWAPI.start(JNIBWAPI.java:574)
        at jnibwapi.ExampleAIClient.<init>(ExampleAIClient.java:45)
        at jnibwapi.ExampleAIClient.main(ExampleAIClient.java:37)

C:\Users\username\Desktop\jnibwapi\release>pause
Press any key to continue . . . 

Original issue reported on code.google.com by MechPla...@gmail.com on 12 Nov 2013 at 12:18

GoogleCodeExporter commented 8 years ago
This is not actually a bug.
You probably just need to specify 32-bit java, ie. replace:
java -jar jnibwapi.jar
with something like:
"C:\Program Files (x86)\Java\jre7\bin\java.exe" -jar jnibwapi.jar

Original comment by phogle...@gmail.com on 7 Feb 2014 at 12:35