Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Execute application from web browser?

How can I execute a desktop application from a browser?. I have a web page with a button, when user click this button a simple java desktop application must run. How can I do this using jsp or javascript?

like image 493
Dorr Avatar asked Dec 28 '22 06:12

Dorr


2 Answers

Java Web Start might be your solution.

To start a Java Web Start application, you simply direct the browser to the location of the JNLP file. Basically, the browser detects that instead of simply downloading the file, it should run it in Web Start.

Most major browsers support Java Web Start. Java Web Start is cross platform (works on Mac and PC).

So, in Javascript, it's done simply like this:

window.location = "http://www.examples.com/myapp.jnlp";

You'll also need to sign your Java application, or the user will get a nasty warning.

like image 182
Marcus Adams Avatar answered Dec 31 '22 14:12

Marcus Adams


You should take a look at the Java Web Start technology.

like image 34
Colin Hebert Avatar answered Dec 31 '22 14:12

Colin Hebert