How to Run My Java Application from JSP Page
807589Jul 7 2008 — edited Jul 9 2008Hi Friends,
I have the following scenario. I have a normal Java program with the main method.. When I invoke the same .clss file using 'java' from the DOS prompt, it executes the main method. Now my question is that, the application is handled by a person who is not familiar with java... So I need to develop a JSP page containing 2 buttons, say START & STOP. On click of the START button, the above Java program has to start the execution.. So the user is not needed to have familiar with the Java commands..
One option I found was to create a .bat file & execute the same using Runtime.getRuntime().exec.. But the problem was it opens a DOS prompt... So is there any othere way or how can I do the same by hiding the DOS prompt.... Look forward to your responses..