Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

how to run a jar file from jsp?

Posted on 2004-04-21
5
Medium Priority
?
1,177 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 500 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

Geo-targeting is the practice of distributing content based on a person’s location, as best as you can determine it. Let’s look at some ways you could successfully use this tactic. The following tips and case studies could lead to meaningful results.
Let's take a look into the basics of ransomware—how it spreads, how it can hurt us, and why a disaster recovery plan is important.
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …

604 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