Execute setup.exe with Java in html

Posted on 2004-04-28
Last Modified: 2010-03-31
Please. I'm not very familier with Java programmimg and I need to write a command that executes "setup.exe" after the user clicked on a button in an html page
could you help me with the script?

Thanks allot!
Question by:nuritat

Accepted Solution

mmuruganandam earned 500 total points
ID: 10937924
I don't think that you can do that from the HTML.

Expert Comment

ID: 10937954
Have a look at the following...

You can't really execute any programs directly.  If you have any activeX attached to that, then only you are allowed to do that.
LVL 30

Expert Comment

by:Mayank S
ID: 10938076
Well, this is not much of a question for a Java expert to answer. Its more for an HTML expert to answer ;-) anyway, you cannot directly invoke an exe from an HTML if you're looking plainly at that.

One way could be -> the HTML contains an Applet tag -> the Applet has permissions and on init (), it starts a Runtime.exec () command which starts the exe -> he he, I'm being too imaginative, am I not ;-) ?
Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

LVL 23

Expert Comment

ID: 10939942
I think you cannot do in this case, and u can try using FTP application...


Expert Comment

ID: 10940135
every browser will pop up when u will click on a file, and asks for users option to save or open's not a matter of java, it's a matter of HTML and the browser...
LVL 30

Expert Comment

by:Mayank S
ID: 10940521
But he didn't ask about clicking and saving a file, did he? You mean to give a link to the setup.exe file and then ask the user to click on it to save/ open (run) it?

Expert Comment

ID: 11274839
Do you need the code for a Java Applet that can do this?!
LVL 30

Expert Comment

by:Mayank S
ID: 11677986
Points - mmuruganandam.

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
Configure a Bean in an XML file 4 49
type mismatch (Object[] to double[] 4 41
Tomcat: Unable to run tomcat service. 2 30
jboss wildfly 10.1 10 438
After being asked a question last year, I went into one of my moods where I did some research and code just for the fun and learning of it all.  Subsequently, from this journey, I put together this article on "Range Searching Using Visual Basic.NET …
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.

730 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