Hi guys and gals!
Does anyone know how to register the java script plugin?
I'm trying to get scripting with java working since my CS(1.2.1) won't compile with either python or perl5 (even though they are both found by configure... (another problem with swig!), otherwise I'd be using either of those and poking around in the pysimp example.
I can get crystalspace.jar and libcsjava.so built fine and installed in the right places, I have all the environment variables set up in order for CS to find them, and my code compiles cleanly, but when my code executes:
csRef<iScript> java = csQueryRegistryOrLoad<iScript>( obj_reg, "crystalspace.script.java" );
I get the following message:
could not load plugin 'crystalspace.script.java'
crystalspace.plugin.query: Couldn't load plugin with class 'crystalspace.script.java'!
I've tried looking through the CS code including csjava.cpp and the swig *.i files, but couldn't find anything that refers to the java script plugin name. I've also read the manual entries for creating and using plugins, but no joy there either. The manual said that plugins require a *.csplugin file, but I couldn't find one in the java script subdirectory (as there is in both the python and perl5 subdirectories). I tried recreating one using the python.csplugin as a guide, but that didn't work.
I'd really like to get this working, otherwise I'm going to have to use jni, and much as I like a challenge (my sanity takes a priority), I would rather keep the solution within the CS framework.
Thanks in advance for any help...