The call to initStatic() returned unsuccessfuly. - Page 2

The call to initStatic() returned unsuccessfuly.

Here is where ideas can be collected for the skirmish AI in development

Moderators: hoijui, Moderators

msm8bball
Posts: 52
Joined: 09 Oct 2009, 08:08

Re: The call to initStatic() returned unsuccessfuly.

Post by msm8bball »

abma wrote:should be fixed with https://github.com/spring/spring/commit ... 0a9ddaff5a

please try again with >= spring 101.0.1-373-g9d13eb6
Unfortunately, that did not fix it.
http://paste.springfiles.com/view/2990b921
abma
Spring Developer
Posts: 3798
Joined: 01 Jun 2009, 00:08

Re: The call to initStatic() returned unsuccessfuly.

Post by abma »

Failed locating the client version of the JVM, please contact spring devs.

is JAVA_HOME correctly set? maybe unsetting already fixes it.
msm8bball
Posts: 52
Joined: 09 Oct 2009, 08:08

Re: The call to initStatic() returned unsuccessfuly.

Post by msm8bball »

abma wrote:
Failed locating the client version of the JVM, please contact spring devs.

is JAVA_HOME correctly set? maybe unsetting already fixes it.
Ah! I forgot I installed the 64bit Java the other day to compile SignalR Java client library. That set my JAVA_HOME to the 64 bit Java. Unsetting the JAVA_HOME allowed it to proceed. I got a different error, but it appears to be something I did wrong in my AI rather than the engine. Looks like you've fixed it!
[f=-000001] [Java Interface] JRE found in registry!
[f=-000001] [Java Interface] Using JRE (can be changed with JAVA_HOME): C:\Program Files (x86)\Java\jre1.8.0_91
[f=-000001] [Java Interface] Successfully loaded the JVM shared library at "C:\Program Files (x86)\Java\jre1.8.0_91\bin\client\jvm.dll".
[f=-000001] [Java Interface] Unable to find common read-only data-dir (optional).
[f=-000001] [Java Interface] Unable to find common read-only native libs data-dir (optional).
[f=-000001] [Java Interface] Initialization successfull.
[f=-000001] [Java Interface] Error: AI class not assignable from interface com/springrts/ai/AI: myjavaai.MyJavaAI
[f=-000001] [Java Interface] Error: possible reasons (this list could be incomplete):
[f=-000001] [Java Interface] Error: * com/springrts/ai/AI interface not implemented
[f=-000001] [Java Interface] Error: * The AI is not compiled for the Java AI Interface version in use
[f=-000001] [Java Interface] Error: Class loading failed for class: myjavaai.MyJavaAI
[f=-000001] Error: Failed to initialize an AI for team 0 (ID: 0), error: 1
Post Reply

Return to “AI”