Java Reference
In-Depth Information
The key=value approach of specifying the command-line argument lets your application
have uniform access to runtime argument values. However, if you know your application will
always be launched from the command-line, outside of Web Start, you should simply access
your parameters using the run(args:String[]) function of your application's main class.
JVM arguments
When using Web Start or an applet, you can specify VM arguments in the JNLP file. To do this,
locate the tag <j2se/> in the JNLP file and set the JVM arguments as follows:
<j2se version="1.5+" java-vm-args="-Xmx256M"/>
See also
F Building and packaging your app with javafxpackager
Making your applets drag-to-install
So far, we have seen two ways to get your desktop applications deployed as either
browser-embedded applets or desktop Web Start. However, none is cooler than drag-to-install .
What is that? Well, it is a simple concept: enable the user to drag a running applet from the
web page unto the desktop to install it automatically. In this recipe, we are going to look at
how to create an application that can be deployed using the drag-to-install feature of the new
Java Plugin for browsers.
Getting ready
For this recipe, we will create a simple JavaFX application, which we will build using the
javafxpackager and deploy it as an applet. If you are not familiar with how to do this,
review previous recipe Building and packaging your app with javafxpackager . Discussions
in this recipe will also include topics covered in the recipes Packaging your app to be Web
Start(ed) and Packaging your app as an applet .
Search WWH ::

Custom Search