Git Product home page Git Product logo

swing-graalvm-demo's Introduction

swing-graalvm-demo

Swing demo app compiled ahead-of-time using GraalVM native-image. Read this post for more information.

The FlatLaf demo jar is used as input here. The final executable output is present in this repo as well.

Building

You'll need atleast GraalVM 21.0 installed. Use the following command to build:

./build.sh

swing-graalvm-demo's People

Contributors

praj-foss avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

swing-graalvm-demo's Issues

Compile problem: "Field sun.awt.X11GraphicsConfig.screen not found. To allow unresolvable reflection configuration, use option --allow-incomplete-classpath"

[demo:11936] classlist: 3,087.11 ms, 0.96 GB
[demo:11936] setup: 501.18 ms, 0.96 GB
Error: Error parsing JNI configuration in /Depot/jjj/ACK/swing-graalvm-demo/config/jni-config.json:
Field sun.awt.X11GraphicsConfig.screen not found. To allow unresolvable reflection configuration, use option --allow-incomplete-classpath
Verify that the configuration matches the schema described in the -H:PrintFlags=+ output for option JNIConfigurationFiles.
Error: Use -H:+ReportExceptionStackTraces to print stacktrace of underlying exception
[demo:11936] [total]: 3,672.84 ms, 0.96 GB

Printing build artifacts to: /Depot/jjj/ACK/swing-graalvm-demo/demo.build_artifacts.txt

Error: Image build request failed with exit status 1
com.oracle.svm.driver.NativeImage$NativeImageError: Image build request failed with exit status 1
at com.oracle.svm.driver.NativeImage.showError(NativeImage.java:1762)
at com.oracle.svm.driver.NativeImage.build(NativeImage.java:1473)
at com.oracle.svm.driver.NativeImage.performBuild(NativeImage.java:1434)
at com.oracle.svm.driver.NativeImage.main(NativeImage.java:1421)


Would it be possible to add a link towards the JNI stuff, in the main README as-is?

I'll look at the blog post, but blog posts may disappear eventually so ... may be better
to integrate this into the main README as-is if it is not too much trouble.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.