Solved

how to run a jar file from jsp?

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

In this article, I will show you HOW TO: Suppress Configuration Issues and Warnings Alert displayed in Summary status for ESXi 6.5 after enabling SSH or ESXi Shell.
Are you unable to connect or configure Hotmail email account in Microsoft Outlook 2010, 2007? Or Outlook.com emails are not downloading to Outlook? Lets’ see the problem and resolve Outlook Connector error syncing folder hierarchy (0x8004102A).
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

744 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now