Documentation
Solutions
GUIKit
Advanced Topics
Standalone Java Application
The GUIKit` package can also be used to provide Mathematica-enriched user interfaces to standalone 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 standalone 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 standalone 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 GUIKit` built dialogs and panels to supplement your existing Java application.
An example command-line launching of the Java application would be something along the following lines.
java -cp "..." com.wolfram.guikit.app.GUIKitApplication "Wolfram/Example/Calculator"
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.