The java generated code using the -j option doesnt compile due to the classes having been refactored into new packages, eg jboost.examples.attributes.Attribute etc. Here's the output editted to build with the jboost 2.2. Only other issue is that to now set jboost.monitor.Monitor.logLevel = -1; as per the code, you must set the jboost.monitor.Monitor.logLevel to be public.
Editted -j output