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).
Published May 19, 2004 · Updated September 17, 2005
Categorized as Java
Short URL: https://snook.ca/s/159

Conversation

2 Comments · RSS feed
Shilpa said on June 30, 2006

where is the source code for Run a jar file in JSP examle

Jonathan Snook said on June 30, 2006

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.

Sorry, comments are closed for this post. If you have any further questions or comments, feel free to send them to me directly.

Want to learn about scaling CSS for large projects?

I'm available for full and half-day workshops on scalable CSS architecture. I can provide on-site training for your team. Interested?
Get in touch.