It's not a secret anymore!
The moose likes JNLP and Web Start and the fly likes Use Eclipse to run JNLP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JNLP and Web Start
Bookmark "Use Eclipse to run JNLP" Watch "Use Eclipse to run JNLP" New topic

Use Eclipse to run JNLP

albert kao
Ranch Hand

Joined: Feb 04, 2010
Posts: 252
I can use Java web start to start my application on the command line.
How to run my application inside Eclipse 3.3.2?
Can I run my application inside Eclipse without Java web start? How?

Clicking the launch.jnlp file inside Eclipse only open the text editor.
javaws http://localhost:7001/webstart/myapp/launch.jnlp

sourabh girdhar
Ranch Hand

Joined: Feb 10, 2010
Posts: 71

You can run your application in eclipse as normal java application. Create a project with all depnedencies and then you can use simply use ANT to target main class and invoke it with all other arguments and ussual settings.

This is all assuming that you have complete code on your machine. If you are trying to setup, some third party app, then getting all jars together with appropriate name could be issue as Java ws uses internal caching in your temp folder with strange naming conventions.

If you want to start webstart in eclipse by clicking jnlp file , you can setup preferences in eclipse to open .jnlp file with external tool "javaws".

The significant problems we face cannot be solved by the same level of thinking that created them -- Albert Einstein

prem pillai
Ranch Hand

Joined: Nov 02, 2007
Posts: 87

Why do you want to run your webstart application in eclipse ?
I agree. Here's the link:
subject: Use Eclipse to run JNLP
It's not a secret anymore!