Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

passing parameters from JNLP file to swing application

 
VenkataBhanu
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello!
How to send parameters from the <application-desc> tag in the jnlp file to the main method of the swing application?

or putting on other words

How can i send parameters from the jnlp file to swing application?
 
parthiban subramaniam
Ranch Hand
Posts: 116
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
this might be of big use if you are working in jws
http://hale.homeip.net/javabook/jaws/

in the element resources
<resources>
<!-- set a -D property -->
<property name="java.naming.factory.initial" value="org.jnp.interfaces.NamingContextFactory"/>
<property name="java.naming.provider.url" value="jnp://ws3804:1099"/>
</resources>


hope that helps
cheers,
parthi
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!