> Hello Stephano.
>>> Did you put each class in a separate file?
> Yes, of course, it is the goal :
> => a separate wrapper class (TheWrapper.java), with all the methods defined
> to use the library,
> => and the main class (test.java) who uses that wrapper class.
> So, the same wrapper class way be used by other main class...
> But impossible to find how to do that... ;-(
Just a guess here, but what command did you use to "run" the `main class`? Something like `java test` of rather `java TheWrapper`? From the message you get it seems to me you ran the latter. If true then try the former. Finally, instead of immediately going for the JNI approach, try to get the wrapper class working with something that simply prints something to stdout (System.Out.println() if I'm not mistaking?). Your chances of getting help with some extremely simple bit of java code are a lot better that case IMHO.
>> Just a guess here, but what command did you use to "run" the `main class`?
Yep, Ewald, you get it (and me too) :-)
It seems that, indeed, i used the wrong run-parameter.
And guess what... IT WORKS.
Ok, Java is now completely in the basket of fpc libraries.
Time to present to the lucky Java people some wonderful fpc Java native libraries.
And with the wrapper class included, ready to use, s'il vous plait.