
dunnu if it will be today though, if not, tomorow.
Moderators: hoijui, Moderators
added to SpringLobbyTobi wrote:lobby developers add *.jar to possible AI file extensions. (Put the JAI .jar files that represent the AIs in same dir as AI dlls then.)
Code: Select all
aidll=AI/Bot-libs/JAI.dll;
Code: Select all
aidll=AI/Bot-libs/JAI-impl-hoijui.jar;
Code: Select all
[Dynamic-linking native method info.osrts.jai.generated.JAIJNI.swig_module_init ... JNI]
Java HotSpot(TM) Client VM warning: Floating point control word changed by native JNI code.
[Dynamic-linking native method info.osrts.jai.generated.JAIJNI.new_JGlobalAI ... JNI]
Java HotSpot(TM) Client VM warning: Floating point control word changed by native JNI code.
[Dynamic-linking native method info.osrts.jai.generated.JAIJNI.JGlobalAI_director_connect ... JNI]
Java HotSpot(TM) Client VM warning: Floating point control word changed by native JNI code.
FATAL ERROR in native method: Wrong object class or methodID passed to JNI call
Code: Select all
AI/Bot-libs/JAI-impl-hoijui.jar has C++ interface
Code: Select all
SET JAVA_HOME=P:\Programme\Java\jdk1.6.0_03
SET PATH=%JAVA_HOME%\bin;%JAVA_HOME%\jre\bin;%JAVA_HOME%\jre\bin\client;%PATH%
Code: Select all
export JAVA_HOME=/usr/jdk1.6.0_03
export PATH=$JAVA_HOME/bin:$JAVA_HOME/jre/bin:$JAVA_HOME/jre/bin/client:$PATH
Code: Select all
-DSTREFLOP_X87
Code: Select all
-jvm
Code: Select all
int GetUnitDefList(UnitDef** list);
UnitDef[] getUnitDefList();
well, the only progress i have made is that by using the -Xnoagent option for the JVM spring doesn't crash anymore with JDWP enabled, and i can connect to it using my eclipse IDE. i still can't really debug though, since spring just stalls where it crashed before, and doesn't respond anymore.hoijui wrote: btw...
i was able to debug my Java AI, but Synogen had problems with it, and as much as i know, did not yet get that working.
Code: Select all
Fixing SWIG generated wrapper
-----------------------------
Removing long redeclaration...
'sed' is not recognized as an internal or external command,
operable program or batch file.
'mv' is not recognized as an internal or external command,
operable program or batch file.
Adding streflop call (before and) after every JNI call, to reset FPU state..
'gawk' is not recognized as an internal or external command,
operable program or batch file.
'mv' is not recognized as an internal or external command,
operable program or batch file.
Code: Select all
In file included from ./src/cpp/JAI.cpp:2:
./src/cpp/generated/JAI_wrap.cxx:139: error: redeclaration of C++ built-in type
`long'
In file included from ./src/cpp/JAI.cpp:2:
./src/cpp/generated/JAI_wrap.cxx:149:17: jni.h: No such file or directory
./src/cpp/generated/JAI_wrap.cxx:173: error: variable or field `SWIG_JavaThrowEx
ception' declared void
./src/cpp/generated/JAI_wrap.cxx:173: error: `JNIEnv' was not declared in this s
cope
./src/cpp/generated/JAI_wrap.cxx:173: error: `jenv' was not declared in this sco
pe
./src/cpp/generated/JAI_wrap.cxx:173: error: expected primary-expression before
"code"
./src/cpp/generated/JAI_wrap.cxx:173: error: expected primary-expression before
"const"
Code: Select all
g++: ../../../game/spring.a: No such file or directory