Sample application using Java
The HelloWorldJava sample application is a very simple Java/Swing application, consisting of a Swing JFrame window with a Carmenta Engine MapControl.
Prerequisites
Java version 8 or later is required to build and run this sample. The JDK tools ('javac') are assumed to be available in the search path.
Building and running the sample
The whole application consists of only a single source file, with very few lines of code. Use the supplied script files to build and run it.
For instructions on how to deploy a Java application on Linux/ARM, see Deploying Carmenta Engine 5 applications on Linux/ARM.
The sample application will display a map window with a sample map configuration, with full pan and zoom functionality.
![]() |
The sample can be built on Windows and Linux, but to deploy on Windows files from Carmenta Engine for Windows is needed.