1) Initialize should be a void function - it doesn't need to return anything but may be doing no harm depending upon whether B4A B4J can accept the different signature.
Strange! If you post your actual library source file, just so we are definitely using the same code, I'll try it tomorrow afternoon as I'm busy in the morning. Post your compiled jar and xml for comparison as well.
EDIT: By actual I mean that cut down version that doesn't seem to work.
I think it has something to do with the naming of the internal files of the library. I did some renaming and I did manage to resolve the problem.
However: another problem pops up:
- SLC compiled the project (it has some external jars in the lib subfolder)
- now when I run the B4J proejct using my library I got a ClassNotFound error: it seems that the JAR file the SLC created does not include the classes I need from the external libs ?
No the reason was that I simplified the setup to just one file and I see got the error. But then this was probably caused by the file structure.
Before I had a reference to other java files and I did try the file structure but it did not work.
Long story short: not sure what *exactly* was the reason but now I have another issue I won't bother you about