integration of jinpurt with web browser

I am now working on a project of internet robot.

As I am new to jinput, I would like to know if jinput can ingetrate with web browser and therefore read the joystick singal through a webpage?
So that i can use a joystick to control the robot through a web browser.

Thank you very much

Yes, you can run JInput as an applet. There are a couple of points though. You’ll need to sign the jars and get the permissions right so that it can load the native libraries, also, once you have closed the applet (navigated away from the page for example) you have to close the browser window before you can load it up again. This is because once the native libraries have been loaded once by the JVM, they can’t be loaded again in a different class loader. The browsers I have tried all run the applet in the same JVM, but different class loaders. This also means you can’t have 2 copies of the applet running, or even 2 different applets that both use JInput running. Webstart doesn’t have these issues as each application runs inside it’s own JVM.

HTH

Endolf