1

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

Example:

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

Thanx!

3 Answers 3

2

take a look at Desktop class from Java ...

Sign up to request clarification or add additional context in comments.

Comments

1

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.

1 Comment

It's not javaw but javaws.
0

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

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.