File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JNLP and Web Start and the fly likes passing property arguements Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » JNLP and Web Start
Reply Bookmark "passing property arguements" Watch "passing property arguements" New topic
Author

passing property arguements

Ronnie Phelps
Ranch Hand

Joined: Mar 12, 2001
Posts: 329
I need to set a property in my JNLP file based on an arguement that gets passed via command line when the script is launched. How can I do this?
Maulin Vasavada
Ranch Hand

Joined: Nov 04, 2001
Posts: 1863
hi Ronnie
so do u mean arguments that u pass to ur application 's main method in String[] args?
u can use,
<application-desc main-class="Main">
<argument>arg1</argument>
<argument>arg2</argument>
</application-desc>
sort of thing in ur .jnlp file.
this
might be more helpful
regards
maulin


1. Have fun @ http://faq.javaranch.com/java/JavaRaq
2. Looking for simple infix2postfix conversion and postfix evaluation package? Click here
Ronnie Phelps
Ranch Hand

Joined: Mar 12, 2001
Posts: 329
Thanks but that's not what I mean. I know how to do that. What I want to do is pass arguements to the JNLP file like this:

runmyapp.jnlp arg1 arg2

Is there a way of doing this?
Maulin Vasavada
Ranch Hand

Joined: Nov 04, 2001
Posts: 1863
i don't think there is a way to do it.
regards
maulin
 
 
subject: passing property arguements
 
Threads others viewed
hibernate configration file
Problem with Hibernate and Oracle
commitEdit() is not committing the value
Error in data source definition in struts-config.jar
[Solved] org.hibernate.MappingException: invalid configuration
MyEclipse, The Clear Choice