How to Add In-Built Java Packages
Peter Leugner reminded me of the best method for including Java Packages that come with the Notes install and, for those who have never done it before, here is a pictorial description.
From the Package Explorer you have access to the plugin.xml. As well as an XML editor this also has GUI tabs, one of which is Dependencies. Just click on the Add button and you get a dialog of all libraries available. Note the library has a version number against it – we’ll come back to that.
Now go to the plugin.xml tab. It should look like this.
There are two things we need to do. First is to move it outside the AUTOGEN block, or it will get removed when the Build process runs. The second is remove the version attribute, so it will not look for a specific version number, so will work on a PC with a different Designer version. The final code should look like this:
Of course that code is straightforward, especially when you’ve got the other plugins above as an example. So the next time, if you know the package you want to include, it’s probably easier to just use the XML editor on the plugin.xml tab.