2025-07-18 14:17 CEST

View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0005008Spring engineAIpublic2015-12-14 17:28
Reporteraeonios 
Assigned To 
PrioritynormalSeverityfeatureReproducibilityalways
StatusnewResolutionopen 
Product Version100.0 
Target VersionFixed in Version 
Summary0005008: Java AI interface does not include native libs in lib/ packaged with AIs
DescriptionI recently tried to integrate slick into kgb and found out after manually printing the java.library.path property that it only points to lib/ within the javaAI interface dir and not to any lib/ directory packaged with the AI (which jvm.properties claims is supposed to work/be autogenerated). This makes installation unnecessarily more of a pain for end users, etc.
TagsNo tags attached.
Checked infolog.txt for Errors
Attached Files

-Relationships
+Relationships

-Notes

~0015371

abma (administrator)

https://github.com/spring/spring/blob/develop/AI/Interfaces/Java/src/main/native/JavaBridge.c#L244

does jlib/ work?

~0015372

abma (administrator)

also:

https://github.com/spring/spring/blob/develop/AI/Interfaces/Java/data/jvm.properties#L49

(no clue if it works)

~0015373

aeonios (reporter)

jlib/ works for .jar libraries, but not for dll/so/dylib.

~0015374

abma (administrator)

Last edited: 2015-12-12 03:28

View 2 revisions

your description what you are doing sucks then.

what do you trying to accomplish?

i've never heard about "slick" and "kgb".

can you provide more details please?

link to source code?

~0015376

abma (administrator)

does this work?

System.setProperty(“java.library.path”, “/path/to/library”);

~0015377

aeonios (reporter)

basically that's what I ended up doing. It actually required something more complicated than that, but I don't think it really needs fixing spring-side.

~0015378

abma (administrator)

link to source code?

others are interested in your solution, too.

~0015379

aeonios (reporter)

Well, my original problem was that Java Graphics2D didn't have an add blend mode for drawing threat, and the custom compositor I used was so slow that it could drag spring down to 1fps just drawing stupid circles.

Slick2d is a gaming library that uses openGL bindings through lwjgl and does have an add-blending circle-drawing function, but the framework it uses to set everything up would produce an infinite loop and so would not work.

So in the end my 'solution' is to fork slick2d, strip out everything not directly graphics-related and port it from the ancient version of lwjgl it was built against to the newest stable. So far I haven't got it working properly. :| My library does include the code for loading the native libs though, which I could share if it was working.

For reference at least:
KGB: https://github.com/Anarchid/zkgbai
Java 2d Graphics Library: https://github.com/mtroyka/Shine2D
+Notes

-Issue History
Date Modified Username Field Change
2015-12-11 14:38 aeonios New Issue
2015-12-11 18:49 abma Note Added: 0015371
2015-12-11 18:49 abma Assigned To => abma
2015-12-11 18:49 abma Status new => feedback
2015-12-11 19:00 abma Note Added: 0015372
2015-12-11 23:17 aeonios Note Added: 0015373
2015-12-11 23:17 aeonios Status feedback => assigned
2015-12-12 03:23 abma Note Added: 0015374
2015-12-12 03:23 abma Status assigned => feedback
2015-12-12 03:28 abma Note Edited: 0015374 View Revisions
2015-12-13 22:43 abma Note Added: 0015376
2015-12-13 22:43 abma Severity minor => feature
2015-12-14 04:46 aeonios Note Added: 0015377
2015-12-14 04:46 aeonios Status feedback => assigned
2015-12-14 10:38 abma Note Added: 0015378
2015-12-14 10:38 abma Assigned To abma =>
2015-12-14 10:38 abma Status assigned => new
2015-12-14 10:42 abma Summary Java AI interface does not include lib/ packaged with AIs => Java AI interface does not include native libs in lib/ packaged with AIs
2015-12-14 17:28 aeonios Note Added: 0015379
+Issue History