I'm assuming that the Java file is for a Java applet that is embedded into the document?

If so, then use the DOM to reference the applet and with Liveconnect you can call a method of the applet:

document.applets[0].reading();

Note that you do not need to reference the class, just the method used in that applet.