Hi Martin;
My STD Integrated Foundation Class framework supports the JNI used by PB Classic to call your Java classes from a PB application. I have a detailed example and explanation of its workings that you can try out - plus, look at the way I coded it (click here).
HTH
Regards ... Chris