I created a simple jar (helloword.jar) that prints "Hello World", i want to run it from my JSP web page that is running in an apache-tomcat server. The file helloword.jar is in the same porject/folder that contains my JSP page.
This is my code for the JSP and it is not showing the message "Hello World" in the tomcat console nor web-broswer console. (I imported the jar in the libraries in my NetBeans IDE)
<%@ page import="helloword.*" %>
<%
helloword hw = new helloword();
hw.main();
%>
I tried this too but it didnt work neither.
Runtime.getRuntime().exec("java -jar helloword.jar");