Delay Java initialization until needed
html, java, javascript
Solution
You can load the jar file into a seperate div created dynamically via javascript, at the time you need it.
Problem
I have a web page where sometimes I need to communicate with a device. This device is accessed with sockets, so I have a jar file with the support libraries. When you want to get data from the device, you press a button, and a javascript method fetches the data using the library (no java code here) The presence of the jar makes the java machine to start as soon as you load the page. Since there is a lot of users that don't use this option (usually they don't even have the device, to begin with), they see that as a nuisance. Is there a posibility to delay the java loading until the button is pressed ? I don't want to redirect them to another page, that should be done in the same page.