Skip to content

Simple example of Openmap Swing application compiled to native image with GraalVM

Notifications You must be signed in to change notification settings

cloudpaul/openmap-swing-graalvm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple Openmap Swing example for GraalVM nativeimage

This is to demonstrate that it is possible to build a GraalVM native image from an Openmap Swing application.

Tested on MXLinux 19.3

Requirements:

  • Java 11 GraalVM 21.1.0-dev (may work with 21.0.0)

To build:

javac -cp lib/openmap-5.1.13.jar SwingTest.java

java -cp ".:lib/openmap-5.1.13.jar" -agentlib:native-image-agent=config-output-dir=META-INF/native-image SwingTesT

native-image -cp ".:lib/openmap-5.1.13.jar" --no-fallback --verbose -Djava.awt.headless=false SwingTest

To run

./swingtest

About

Simple example of Openmap Swing application compiled to native image with GraalVM

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages