"Failed fetching AI interface class com.springrts.ai.AI"

"Failed fetching AI interface class com.springrts.ai.AI"

Discuss your problems with the latest release of the engine here. Problems with games, maps or other utilities belong in their respective forums.

Moderator: Moderators

Post Reply
Eadword
Posts: 21
Joined: 15 Aug 2012, 06:34

"Failed fetching AI interface class com.springrts.ai.AI"

Post by Eadword »

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)
User avatar
hoijui
Former Engine Dev
Posts: 4344
Joined: 22 Sep 2007, 09:51

Re: "Failed fetching AI interface class com.springrts.ai.AI"

Post by hoijui »

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.
Eadword
Posts: 21
Joined: 15 Aug 2012, 06:34

Re: "Failed fetching AI interface class com.springrts.ai.AI"

Post by Eadword »

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 :)
User avatar
hoijui
Former Engine Dev
Posts: 4344
Joined: 22 Sep 2007, 09:51

Re: "Failed fetching AI interface class com.springrts.ai.AI"

Post by hoijui »

jar files are basically just zip files. your archiver should be able to open them. or you cna use unzip.
Eadword
Posts: 21
Joined: 15 Aug 2012, 06:34

Re: "Failed fetching AI interface class com.springrts.ai.AI"

Post by Eadword »

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?
User avatar
hoijui
Former Engine Dev
Posts: 4344
Joined: 22 Sep 2007, 09:51

Re: "Failed fetching AI interface class com.springrts.ai.AI"

Post by hoijui »

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:
Retrieving the parent dir of the path to AIInterface.jar (%s) failed.
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.
Eadword
Posts: 21
Joined: 15 Aug 2012, 06:34

Re: "Failed fetching AI interface class com.springrts.ai.AI"

Post by Eadword »

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
User avatar
hoijui
Former Engine Dev
Posts: 4344
Joined: 22 Sep 2007, 09:51

Re: "Failed fetching AI interface class com.springrts.ai.AI"

Post by hoijui »

sooo.. we consider this a problem with your personal setup on this computer, and therefore "solved"?
Eadword
Posts: 21
Joined: 15 Aug 2012, 06:34

Re: "Failed fetching AI interface class com.springrts.ai.AI"

Post by Eadword »

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.
Post Reply

Return to “Help & Bugs”