Le D?aut St?phane wrote: > I deployed xxe via javaWebStart. > Now I would like to modify the jnlp file. > In fact, I tried to add the element <argument> to define system properties > which are useful to my application. > example : <application-desc > main-class="com.xmlmind.xmleditapp.app.WebStart" > > <argument>-sysproperty</argument> > <argument>userName=toto</argument> > </application-desc> > > When I launch xxe I've got an error message like this : > > "userName=toto" n'est pas un URL ou un nom de fichier > Usage: java com.xmlmind.xmleditapp.app.Start URL_ou_fichier ... > URL_ou_fichier > > > How can I define system properties which can be read by my application ?
[1] In the .jnlp file, but not like you did, add <property> children to the <resources> element --- <resources> . . . <property name="userName" value="toto"/> </resource> --- See http://java.sun.com/j2se/1.4.2/docs/guide/jws/developersguide/contents.html [2] OR add <property> children in the XXE configuration file for your XML application. Example: --- <property name="userName">toto</property> --- See http://www.xmlmind.com/xmleditor/_distrib/docs/configure/ch06s17.html

