Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Java Webstart with parameters

Can I launch a Java WebStart application with a set of parameters just like an applet is configured with the <param> tags ?

Thanks

like image 851
Pierre Avatar asked Jul 29 '09 10:07

Pierre


People also ask

What does Java Web Start do?

The Java Web Start software allows you to download and run Java applications from the web. The Java Web Start software: Provides an easy, one-click activation of applications. Guarantees that you are always running the latest version of the application.

Is Java Web Start deprecated?

In computing, Java Web Start (also known as JavaWS, javaws or JAWS) is a deprecated framework developed by Sun Microsystems (now Oracle) that allows users to start application software for the Java Platform directly from the Internet using a web browser.

How do I set Java to default to JNLP?

Select the 'Default apps' category, then select the 'Choose default apps by file type' link. 4. Scroll down to the '. jnlp' file type and select 'Java Web Start Launcher' as the default app.


2 Answers

Yeah you can, the following shows an example:

<application-desc main-class="my.main.class">
    <argument>-user=bob</argument>
    <argument>-pass=8jkaiuasu</argument>
</application>

Showing you passing the arguments "-user=bob" and "-pass=8jkaiuasu" to the application. Arguments are picked up in the standard way.

like image 78
tddmonkey Avatar answered Nov 04 '22 07:11

tddmonkey


Yes, check out the JNLP Tag reference

like image 31
Tim Büthe Avatar answered Nov 04 '22 07:11

Tim Büthe