Creating a Processing Library from JavaScript code

Thanks for the reply.

Never done any java coding, mainly C, BBC BASIC, Python plus various machine code instruction sets and Processing.

Do you have any examples of running a java class in processing, perhaps I could get an idea what is involved by seeing that.