This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes JSP and the fly likes Run Executable on Client Machine Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » JSP
Bookmark "Run Executable on Client Machine" Watch "Run Executable on Client Machine" New topic
Author

Run Executable on Client Machine

brad ryan
Greenhorn

Joined: Feb 13, 2002
Posts: 4
Please suggest me how I should launch a stand alone application from a browser.
I'm are trying to build a web page from which I want to launch some of the applications which on the local hard drive of the Client.
I'm using JSPs for my web pages. Right now I'm just pointing to the related executable using <a href > (< a href="file///C:\Program Files\xyz\bin\xyz.exe target="_blank"). I don't think this is a nice way to launch the application because It doesn't alert or warn the user if it could not find the exe on the path specified.
Basically, Thru my web site I want to search the Cilent's hard drive for an executable & run (or launch the application ). If it can't find the exe then alert or warn the user.
I'm a new bee to programming. so please don't think that it ia dumd question. Please Please suggest me or help me with a code to do this..
Thank you all in advance
br
chanoch wiggers
Author
Ranch Hand

Joined: May 24, 2001
Posts: 245
i think this is what is commonly known as a virus. YOu can't run an executable from the browser without special privileges for you applet. You can use webstart to download the program from your hard drive though. Otherwise you might have to write this executable yourself as an applet.
(btw, you might want to know that if the guys on the ranch catch you with that name they will ask you to change it - they prefer you real name)
chanoch


chanoch<p><a href="http://www.amazon.com/exec/obidos/ASIN/1861007736/" target="_blank" rel="nofollow">Author of Professional Apache Tomcat</a></p>
David O'Meara
Rancher

Joined: Mar 06, 2001
Posts: 13459

Originally posted by chanoch wiggers:
(btw, you might want to know that if the guys on the ranch catch you with that name they will ask you to change it - they prefer you real name)

The JavaRanch Naming Policy.
Where to edit your profile
 
Consider Paul's rocket mass heater.
 
subject: Run Executable on Client Machine