I have a code/class/script in JAVA that I want to be executed when someone clicks on a button/anything that I will handle. What should be the code in JavaScript to launch that class/code/script/compiled program installed on the client’s system?
Share
It depends on what you are trying to do with the program on the client-side. If you want to call other programs on the client’s machine, you will need a few things.
Java code
HTML code with tags removed
The key is the mayscript and scriptable attributes that allow Javascript to call an applet.
You then use jarsigner to sign the myapplet.jar with the code-signing cert you get.
See this guide from Sun on mixed-browser Java plugin support.
http://java.sun.com/j2se/1.5.0/docs/guide/plugin/developer_guide/using_tags.html#mixed