Solved

how to run a jar file from jsp?

Posted on 2004-04-21
5
1,159 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
  • 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Stuck in Bootstrap WysiHtml Editor 3 42
maven project jars 7 55
withoutString  challenge 40 207
HTTPSessionBindingListernter not configured in deployment descriptor 2 65
In this article we will learn how to fix  “Cannot install SQL Server 2014 Service Pack 2: Unable to install windows installer msi file” error ?
Many businesses neglect disaster recovery and treat it as an after-thought. I can tell you first hand that data will be lost, hard drives die, servers will be hacked, and careless (or malicious) employees can ruin your data.
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

809 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