Yeah looking inside my jar file I can also see the api jar files, which I'm sure is not right!
To get my code to compile (using NetBeans) I right clicked on my project name, selected properties, went to the libraries option and added the PluginAPI jar with the add JAR/folder option.
Which allow me to compile, as without it moans about the imports not working (i.e. net.risingworld.api.... )
To create my jar I right clicked on my project and selected "build"
It's been a while since I wrote any code, and I'm new to NetBeans (old Eclipse guy here).
This is my attempt at almost a "hello world" plugin.