Julia
Julia

Reputation: 1237

Invoke JNLP file from java code

is it possible to invoke .jnlp file from java code?

Example:

Process p = Runtime.getRuntime().exec(...)

Thanx!

Upvotes: 1

Views: 3804

Answers (3)

Ayusman
Ayusman

Reputation: 8719

I think you could just try

Runtime.getRuntime().exec("javaws http://host:port/application_name/oyur_jnlp_filename.jnlp")

Try this out...

This will start a browser with your jnlp in it.

Upvotes: 1

Diogo
Diogo

Reputation: 548

take a look at Desktop class from Java ...

Upvotes: 2

Ryan Fernandes
Ryan Fernandes

Reputation: 8526

The command line for running a jnlp would be $JAVA_HOME/bin/javaws <jnlp file>.

Upvotes: 0

Related Questions