Hi all, I had a look through the archived messages and couldn't find 
anything about this, so I thought I'd share with you how I got to 
building the jar file.  I'm not sure if the java code is currently 
maintained or if people are interested, but someone may find this helpful.

I'm running an Ubuntu system (feisty) with the 2.6.20-16-generic kernel 
and sun java 1.6.0.

I assumed from the WHATS-HERE.Java file, that the jar file would be 
automatically built unless I was to run the configure script with 
--disable-java, however the jar file was not build and there was no 
Makefile created in the java directory.  ( I tried --enable-java just 
for fun - but to no avail ).

These are the steps I took.
* Copied the configure script into the java directory and ran it there - 
just to create some sort of makefile - there is very likely an easier 
way to achieve the same result :-)
* Corrected the makefile, which had no definitions for JAVA, JAVAH etc.  
Also, it had no command line to create the pokerjni library.  I used this:
SLIBJNI_CMD=gcc -shared -W1,-soname,libpokerjni.so -o libpokerjni.so 
./jniutil.o ./pokutil.o ./org/pokersource/eval/JokerEvalImp.o 
./org/pokersource/eval/AsianStudEvalImp.o 
./org/pokersource/eval/StandardEvalImp.o 
./org/pokersource/enumerate/EnumerateImp.o -lpoker-eval
Again, this is ugly, and can be done much better.
* Next I found there were calls to System.loadLibrary in the java code 
that were trying to load "poker".  I substituted "poker" for "poker-eval".
* It looks like the Enumerate class has been repackaged from 
org.pokersource.enum to org.pokersource.enumerate, but the 
enumerateImp.c file was not similarly updated and nor was the makefile.  
I updated these two to reflect the name change - which is trivially done.

At this point, everything built, and when I sorted out the 
LD_LIBRARY_PATH, running "make test" in the java directory succeeded.

If anyone else is / was having difficulties building the java library I 
hope this will help.

Regards,

Dave.

_______________________________________________
Pokersource-users mailing list
[email protected]
https://mail.gna.org/listinfo/pokersource-users

Reply via email to