Page 1 of 1

How to use Spring and Java (NullOOJavaAI)?

Posted: 26 Sep 2014, 10:15
by anemol
I can't use Spring with Java.

I wanted to test the AI: "HughAI."

When I start a game with a bot "HughAI" or "NullOOJavaAI", I get this message:

Code: Select all

Error: Unknow AI skirmish specifed.
Skirmish AI "Bot1" #1 (ID:0), which controlled team 0 is now dead.
I use:
- Ubuntu 12.04 (32bits)
- Spring 96 (spring_96.0_minimal-portable-linux32-static)

I setup JAVA_HOME with: /usr/lib/jvm/java-1.6.0-openjdk/

Nothing into infolog.txt that tells how to solve the problem.

Re: How to use Spring and Java (NullOOJavaAI)?

Posted: 26 Sep 2014, 12:02
by gajop
Need more details to help:
1) infolog.txt
2) AIInfo.lua
3) relevant directory structure (spring, datadir, AI)

PS: those static builds may not have JAVA enabled, but I don't think that's your problem.

Re: How to use Spring and Java (NullOOJavaAI)?

Posted: 26 Sep 2014, 13:26
by anemol
those static builds may not have JAVA enabled
My base version is Spring-85 (installed with apt-get install spring).
For this reason I use Spring-96 (static lib)
I copied AI directories from a packet "spring-javaai_96.0+dfsg-1_all" for Ubuntu 13.04 because Ubuntu 12.04 doesn't offer Spring-96.

Finally, I updated my basic version via PPA, now version is Spring-95.

NullOOJavaAI seems to work now.