?
Solved

how to run a jar file from jsp?

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

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

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

An introduction to the wonderful sport of Scam Baiting.  Learn how to help fight scammers by beating them at their own game. This great pass time helps the world, while providing an endless source of entertainment. Enjoy!
In this modest contribution, I want to share with the IT community (especially system administrators, IT Support Engineers and IT Help Desks) about Windows crashes/hangs and how to deal with these particular problems.
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
Suggested Courses

800 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