Solved

how to run a jar file from jsp?

Posted on 2004-04-21
5
1,163 Views
Last Modified: 2008-03-10
hi experts,
  i have a jar file(test.jar) this jar file contains
 for ex : one.java ,two.java,three.java .

my question is i would like to run this jar file from jsp(web).?how?

i want to have a link on jsp and when i click on the link i want to run this jar file.
<a href="c:\test.jar">run</a>

as far as i know  to run a dos command  like below

Runtime rt = Runtime.getRuntime();
Process p = rt.exec("c:\\test.jar");

but i am unsucessfull to run this jar file on web(jsp).

any help will be greatly appreciated.

advance thanks a million.

0
Comment
Question by:saleemkhan
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
5 Comments
 
LVL 9

Accepted Solution

by:
mmuruganandam earned 125 total points
ID: 10877398
think of applet... downloading and running within a client is applet only.  you can't do anything with jsp.

Regards,
Muruga
0
 
LVL 9

Expert Comment

by:mmuruganandam
ID: 10877406
If you try to go on anyway, it will run only in the server for chance,  you can't make that run at client side.

Regards,
Muruga
0
 
LVL 9

Expert Comment

by:mmuruganandam
ID: 10877412
If you try to go on anyway, it will run only in the server for chance,  you can't make that run at client side.

Regards,
Muruga
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article outlines some of the reasons why an email message gets flagged as spam on a recipient's end.
We take a look at some of the most common obstacles that IT teams run into as they work relentlessly to keep all the alarms and sirens from going off at once.
In this video, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question