Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Use Eclipse to run JNLP

 
albert kao
Ranch Hand
Posts: 252
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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

launch.jnlp:
 
sourabh girdhar
Ranch Hand
Posts: 71
Java Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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".
 
prem pillai
Ranch Hand
Posts: 87
Java Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why do you want to run your webstart application in eclipse ?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic