fabiofai / jnibwapi

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

Using even ExampleAIClient.jarr produces java.lang.UnsatisfiedLinkError #11

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Execute provided file "run.bat"
2. Load Starcraft and BWAPI with Chaoslauncher
3. Start custom game

What is the expected output? What do you see instead?
I expect so see the drones begin collecting minerals while the hatchery spawns 
more drones. Instead, I am notified that the client AI has connected, but 
nothing happens in-game. In the console, I'm notified repeatedly of an 
UnsatisfiedLinkError.

What version of the product are you using? On what operating system?
SC: 1.16.1.1, BWAPI: 3.6, JNI-BWAPI: 0.2, Chaoslauncher: 0.5.4.4

Please provide any additional information below.
java.lang.UnsatisfiedLinkError: eisbot.proxy.JNIBWAPI.getPlayerUpdate[I
     at eisbot.proxy.JNIBWAPI.getPlayerUpdate(Native Update)
     at eisbot.proxy.JNIBWAPI.gameupdate(JNIBWAPI.java:617)
     at eisbot.proxy.JNIBWAPI.startClient(Native Method)
     at eisbot.proxy.JNIBWAPI.start(JNIBWAPI.java:509)
     at eisbot.proxy.ExampleAIClient.<init>(ExampleAIClient.java:23)
     at eisbot.proxy.ExampleAIClient.main(ExampleAIClient.java:17)

Original issue reported on code.google.com by srnty.em...@gmail.com on 14 Jul 2011 at 6:07

GoogleCodeExporter commented 8 years ago
Also, the OS version is Server 2003 x86. Not sure if the fact that it isn't 
XP/Vista/7 makes a difference.

Original comment by srnty.em...@gmail.com on 14 Jul 2011 at 7:15

GoogleCodeExporter commented 8 years ago
An UnsatisfiedLinkError means that the JVM isn't able to find the definition of 
the methods that are declared 'native' as part of the JNI part of the bridge. 
However, if it actually couldn't find the .dll, then you would get a different 
error. This suggests that it can load the file, but can't get the two 
components working together. It's a bit over my head to debug with you, but I 
think it might aid diagnostics if you could post what version of java you have, 
as that might be contributing to the issue.

Original comment by LukeDic...@gmail.com on 15 Jul 2011 at 6:23

GoogleCodeExporter commented 8 years ago
Java version is 1.6.0_26

Original comment by srnty.em...@gmail.com on 24 Jul 2011 at 3:29

GoogleCodeExporter commented 8 years ago
Same java version, same problem. Tried it with win7 64bit and xp 32bit, both 
with 32bit java.

Original comment by peter.si...@gmx.de on 2 Aug 2011 at 8:42

GoogleCodeExporter commented 8 years ago
So much for my Jython bot idea lol.

Original comment by srnty.em...@gmail.com on 2 Aug 2011 at 3:21

GoogleCodeExporter commented 8 years ago
Just tried Java 7. Still the same error :(

Original comment by peter.si...@gmx.de on 3 Aug 2011 at 9:03

GoogleCodeExporter commented 8 years ago
Tried several old java versions (java 6 update 4 and 20). They do not work 
either for me... still UnsatisfiedLinkError.

Original comment by peter.si...@gmx.de on 4 Aug 2011 at 11:24

GoogleCodeExporter commented 8 years ago
Found the solution of the problem. Jar file was last changed March 3rd, so it 
is still from the old build while the dll is from the new one.
If you build a new jar file from source code everything works fine. Should be 
replaced with new jar file in download to prevent confusion of more noobs like 
me.

Original comment by peter.si...@gmx.de on 5 Aug 2011 at 8:49

GoogleCodeExporter commented 8 years ago
Thanks Peter, I'll poke relevant people about this.

Original comment by LukeDic...@gmail.com on 22 Aug 2011 at 10:17

GoogleCodeExporter commented 8 years ago
I've put version 0.2.1 up in the downloads section, this should clear up the 
problem with the enclosed JAR file.

Original comment by LukeDic...@gmail.com on 30 Aug 2011 at 2:49