Run a jar file in JSP
Runtime.getRuntime().exec("java -jar /path_to_jar/myfile.jar");This should work on a windows or unix box (the above was tested on a unix box running Tomcat).
Runtime.getRuntime().exec("java -jar /path_to_jar/myfile.jar");This should work on a windows or unix box (the above was tested on a unix box running Tomcat).
Conversation
where is the source code for Run a jar file in JSP examle
I suspect the rendering in your browser was blocking the code. I've updated the stylesheet so hopefully the code will be visible. Sorry about that.