What is the syntax to refer to a library reference, in order to make use of a type defined in an external library?
I already have the path specified in Additional Libraries, and the specific jars indicated with the #AdditionalJar: directive. But how do you refer to the external jar, so that the As (Type) reference will compile?
... or at least forward an example of a b4j module that refers to additional jars in the auxiliary library folder, and makes use of its classes. This may sound easy & obvious to everyone using B4A or B4J for a while, but I can't figure out how to do it. I need to use several external libraries.
There are very few results, from a additionaljar search on the forum, or from a 'b4j additionaljar' search, in Google.
Even if I use the exact class name, which is included in one of the jars referenced in the additionaljar directive, B4J won't compile. The error message asks if I'm missing a library reference?
I don't understand this. The library reference is already given in the additionaljar line. Where else would we put it?
Daestrum, I think you're referring to the libraries in the (Program Files)\(Anywhere Software)\B4J\Libraries folder.
I'm trying to reference libraries in the Tools/Configure Paths/Additional Libraries folder.
Do we need to generate the xml file, even for the Additional Libraries jars that are referenced in the additionaljar directive? Will that coax B4J to display them in the class picklist?
any library needs an xml file, it tells B4J what parameters are needed for the methods.
Does the package name /class name appear in the list of libraries on the libs tab? (it shows built in and extra libs you've added) if not then you need to have an xml file and tick the box next to the name on the libs tab.
There is a link somewhere on this site to the download location for BADoclet.
I think it's written to supply the correct output for B4J and B4A to use.
There are two SLCs in the archive, one each for B4A and B4Jand the doclet is also included. What exactly are you trying to do? You probably don't need the #AdditionalJar: directive, as far as I know it only bundles the jar in the final jar but doesn't let you use it in any way. I've never needed it! As an example I've attached the source for jMsgboxes. You should be able to compile it with SLC.
I'm trying to make use of third party libraries, jars, for which the source isn't necessarily available, without decompilation.
I don't know why this is difficult to understand. We make use of third party libraries all the time, in Java & Groovy, without having to write wrappers or run it through a special processor.
If B4J doesn't have this capability yet, then ok. I'll come back, after it matures a bit more.