The
GUIKit` package can also be used to provide
Mathematica-enriched user interfaces to stand-alone Java applications leveraging the fact that
J/Link also works within a Java application environment. There is a sample custom application Java main class that demonstrates this within the
GUIKit.jar: com.wolfram.guikit.app.GUIKitApplication. You can run any of the
GUIKit` definitions you build as stand-alone Java applications if you add all
GUIKit`-required jars to the classpath and have
Mathematica installed on the machine that is running the application. Likewise, the entire stand-alone Java application does not have to be
GUIKit`-defined only, looking at the source code in
com.wolfram.guikit.app.GUIKitApplication. You can also easily runtime load dialogs and panels built with
GUIKit` to supplement your existing Java application.
An example command-line launching of the Java application would be something along the following lines.
There are sample Windows and Unix scripts located in the
Examples/Standalone/ directory of the
GUIKit` distribution that show typical complete runtime scripts using
com.wolfram.guikit.app.GUIKitApplication.