Well, here it is. IE 8 and Chrome do not allow for global java packages:
i.e you cant use java.lang.String, or java.atw.Point directly in your javascript. However, if you have an applet, you can easily expose such classes through your applet. For example, if you import java.awt.Point in your applet and have a method like this:
public Point createPoint(int x,int y);
You should be able now from your javascript to access the applet and just call its method like this:
(javascript code)
var applet = document.getElementById("applettie");
var Point = applet.createPoint(20,30);
//now you have the Point object
Cheers
new java.awt.Pointactually works. No idea why, can't find much on Google.