I was making an AI for the Java AI Interface, but I kept getting warnings ingame about the interface failing to load, so I tested NullAI and the same result occoured.
I then read the interface-log.txt and found the error (which I placed in the subject).
Detailed Pastebins:
interface-log.txt
infolog.txt
Is there a way to fix this problem?
Please note that I use Linux Mint and compiled Spring from source and used the encap package manager (epkg)
"Failed fetching AI interface class com.springrts.ai.AI"
Moderator: Moderators
Re: "Failed fetching AI interface class com.springrts.ai.AI"
nice report! 
this java class is meant to be in a jar file in AI/Interfaces/Java/.
do you have this jar file (i think it woudl be AIInterface.jar), and does it contain the class?
if not, then somethign went wrong during compilation of the Java AI Itnerface already, most likely. you would then have to do that again (probably after a clean), and paste the build output.

this java class is meant to be in a jar file in AI/Interfaces/Java/.
do you have this jar file (i think it woudl be AIInterface.jar), and does it contain the class?
if not, then somethign went wrong during compilation of the Java AI Itnerface already, most likely. you would then have to do that again (probably after a clean), and paste the build output.
Re: "Failed fetching AI interface class com.springrts.ai.AI"
I have a AIInterface.jar file at /usr/local/share/games/spring/AI/Interfaces/Java/0.1/AIInterface.jar
I do not have an AIInterface.jar file in my home dir config. (~/.spring/)
I'm sorry for the slightly long response, I did not know this forum did not automatically give you email notifications :)
I do not have an AIInterface.jar file in my home dir config. (~/.spring/)
I'm sorry for the slightly long response, I did not know this forum did not automatically give you email notifications :)
Re: "Failed fetching AI interface class com.springrts.ai.AI"
jar files are basically just zip files. your archiver should be able to open them. or you cna use unzip.
Re: "Failed fetching AI interface class com.springrts.ai.AI"
The AIInterface.jar file has the following structure:
com/springrts/ai/AbstractAI.class
com/springrts/ai/AI.class
com/springrts/ai/AICallback.class
com/springrts/ai/JniAICallback.class
com/springrts/ai/Util.class
META-INF/MANIFEST.MF
Maby copying the jar to my home dir would help?
com/springrts/ai/AbstractAI.class
com/springrts/ai/AI.class
com/springrts/ai/AICallback.class
com/springrts/ai/JniAICallback.class
com/springrts/ai/Util.class
META-INF/MANIFEST.MF
Maby copying the jar to my home dir would help?
Re: "Failed fetching AI interface class com.springrts.ai.AI"
that structure looks right.
i checked the code, and i saw that it must have found an AIInterface.jar, cuase otherwise you would see a message like this in the interface log file:
i checked the code, and i saw that it must have found an AIInterface.jar, cuase otherwise you would see a message like this in the interface log file:
So my best bet right now is, that it found an other/old AIInterface.jar somewhere else. maybe search your harddisk for other such files.Retrieving the parent dir of the path to AIInterface.jar (%s) failed.
Re: "Failed fetching AI interface class com.springrts.ai.AI"
I compiled spring on another computer, and now the error has gone away, but I am getting some new errors regarding my AI loading specifically. I have started a new thread because it does not hugely relate to this thread anymore:
http://springrts.com/phpbb/viewtopic.php?f=11&t=28567
http://springrts.com/phpbb/viewtopic.php?f=11&t=28567
Re: "Failed fetching AI interface class com.springrts.ai.AI"
sooo.. we consider this a problem with your personal setup on this computer, and therefore "solved"?
Re: "Failed fetching AI interface class com.springrts.ai.AI"
yes, and I think your solution quoted below was correct, because I had other versions of spring installed at one time
So my best bet right now is, that it found an other/old AIInterface.jar somewhere else. maybe search your harddisk for other such files.