|
Spec-Zone .ru
спецификации, руководства, описания, API
|
javafxpackager - JavaFX File Packager Utility javafxpackager - Packages files comprising a JavaFX Script application for deployment.
javafxpackager [options] class [arguments]
The javafxpackager tool creates an application in a format that is specific for a target profile,
either desktop or mobile.
-encoding <encoding>- Optional. Specifies character encoding used by source files.
-paramFile <property file>- Optional. Specifies the named application parameters stored in an external property file.
-profile [desktop | mobile | tv]-p [desktop | mobile | tv]- Specifies the JavaFX platform. The JavaFX SDK supports
desktop,mobile, andtvand defaults todesktop.-sourcepath <source root1> [;<source root2> ...]-src <source root1> [;<source root2> ...]- Required. Specifies the root directory of the source tree holding the application to be packaged. Here is an example of a source tree that illustrates these required option settings:
MyApp/ src/ package1/ Main.fx package2/ Class.fx
In the example below, the-srcoption specifiessrcas the root directory. TheappClassoption specifies theMain.fxfile in thePackage1source file subdirectory.
javafxpackager-src src -appClass package1.MainAt least one source root is required.-classpath <library1> [;<library2> ...]-cp <library1> [;<library2> ...]-librarypath <library1> [;<library2> ...]- Optional. Specifies the classpath.
-resourcepath <resource root1> [;<resource root2> ...]-res <resource root1> [;<resource root2> ...]- Optional. Specifies the resource path.
-destination [target directory]-d [target directory]- The default target directory is
./dist-workDir <working directory>- Optional.
-verbose-v- Enables verbose output.
-appName <application name>- The default application name is the application class name.
-appVendor <application vendor>- The default application vendor is the user.name Java system property.
-appVersion <application version>- The default application version is 1.0.
-appClass <application class>- Required. Specifies the class containing
mainfor applets-appWidth <applet width>- The default applet width is 200 pixels.
-appHeight <applet height>- The default applet height is 200 pixels.
-appCodebase <application code base URL>- The default code base is empty.
-sign- Builds a signed application.
-signis used while using-keystore,-keystorePassword, and so on. If-signis not specified, a self-signture is not created.-splash-splashScreenImage <imageURL>- Custom splash screen image URL or classpath resource path (PNG or JPEG).
-draggable- Makes the application draggable from the web browser.
-shortcut- The application asks to create a shortcut.
-keystore <keystore for signing>- A temporary self-signature is created when
keystoreis not specified.-keystorePassword <password>- Required when signing with specific
keystore.-keyalias <alias>- Mandatory when signing with specific
keystore.-keyaliasPassword <password>keystore Passwordis used instead when not specified.-pack200- Compresses an application using pack200. This option creates a file called
MyApplication.jar.pack.gzin the default./distdirectory.-help- Prints a help screen.
-version- Prints the JavaFX Toolchain version number.
-J <flag>- Pass flag directly to the compiler.
javafxpackager -src ./mysources -appClass mypackage.MyApplication -sign -pack200 -draggableBuilds all JavaFX and Java sources according ot the desktop profile specification into
./dist/MyApplication.html,./dist/MyApplication.jnlp,./dist/MyApplication.jar,./dist/MyApplication_browser.jnlp, and./dist/MyApplication.jar.pack.gz.
javafxpackager -src ./mysources -appClass mypackage.MyApplication -p mobileBuilds all JavaFX and Java sources according to the tv profile specification into
./dist/MyApplication.jadand./dist/MyApplication.jar.
javafxpackager -src ./mysources -appClass mypackage.MyApplication -p tvBuilds all JavaFX and Java sources according to the mobile profile specification into
./dist/MyApplication.jar.
|
Copyright © 2008, 2010, Oracle and/or its affiliates.
|
|