Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to Run My Java Application from JSP Page

807589Jul 7 2008 — edited Jul 9 2008
Hi 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..
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 6 2008
Added on Jul 7 2008
4 comments
765 views