{"id":39221371,"url":"https://github.com/chirontt/lwjgl3-helloworld-native","last_synced_at":"2026-01-17T23:28:17.511Z","repository":{"id":158467662,"uuid":"348545293","full_name":"chirontt/lwjgl3-helloworld-native","owner":"chirontt","description":"HelloWorld demo for LWJGL 3, compiled to native executable by GraalVM native-image utility.","archived":false,"fork":false,"pushed_at":"2025-01-15T20:26:22.000Z","size":25187,"stargazers_count":20,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-15T21:56:57.109Z","etag":null,"topics":["graalvm-native-image","java","lwjgl3","opengl"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/chirontt.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2021-03-17T01:38:45.000Z","updated_at":"2025-01-15T20:26:24.000Z","dependencies_parsed_at":"2023-12-26T00:23:31.879Z","dependency_job_id":"46c7e3c7-aa54-4ce1-8ecf-73309eab3d67","html_url":"https://github.com/chirontt/lwjgl3-helloworld-native","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/chirontt/lwjgl3-helloworld-native","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chirontt%2Flwjgl3-helloworld-native","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chirontt%2Flwjgl3-helloworld-native/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chirontt%2Flwjgl3-helloworld-native/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chirontt%2Flwjgl3-helloworld-native/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chirontt","download_url":"https://codeload.github.com/chirontt/lwjgl3-helloworld-native/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chirontt%2Flwjgl3-helloworld-native/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28522302,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-17T22:11:28.393Z","status":"ssl_error","status_checked_at":"2026-01-17T22:11:27.841Z","response_time":85,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["graalvm-native-image","java","lwjgl3","opengl"],"created_at":"2026-01-17T23:28:17.448Z","updated_at":"2026-01-17T23:28:17.502Z","avatar_url":"https://github.com/chirontt.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# lwjgl3-helloworld demo + GraalVM native image\n\nHelloWorld [demo](https://www.lwjgl.org/guide) for LWJGL 3,\ncompiled to native executable by GraalVM native-image utility.\n\n\u003cpre\u003e\n\t\u003cimg src=\"HelloWorld.jpg\"/\u003e\n\u003c/pre\u003e\n\nGradle/Maven wrappers \u0026 build scripts are provided for building the project,\nwhich requires JDK 11+ or GraalVM 21+ (for native image).\n\n## GraalVM pre-requisites\n\nThe [GraalVM native-image](https://www.graalvm.org/reference-manual/native-image) page\nshows how to set up GraalVM and its native-image utility for common platforms.\n[Gluon](https://gluonhq.com/) also provides some setup\n[details](https://docs.gluonhq.com/#_platforms) for GraalVM native-image creation.\n\nThe GraalVM native-image utility will use the configuration files in\n`src/main/resources/META-INF/native-image` folder to assist in the native-image generation.\n\n## Gradle build tasks\n\nTo build and run the HelloWorld demo in standard JVM with Gradle, execute the `run` task:\n\n\tgradlew run\n\nTo see some debug info generated by LWJGL, run it with relevant system properties\nto show some debug messages in the console:\n\n\tgradlew run -Dorg.lwjgl.util.Debug=true\n\nThe above tasks can use any standard JDK 11+.\n\nTo generate native executable, GraalVM 21+ need be set up as mentioned in\n*GraalVM pre-requisites* section above.\n\nOnce GraalVM is set up and available in the path, run the `nativeCompile` task:\n\n\tgradlew nativeCompile\n\nThe `nativeCompile` task would take a while to compile the demo source code and\nlink them with the LWJGL libraries into a native executable file.\nThe resulting `lwjgl3-helloworld` executable file is:\n\n\tbuild/native/nativeCompile/lwjgl3-helloworld\n\n(or if building on a Windows machine:\n\n\tbuild\\native\\nativeCompile\\lwjgl3-helloworld.exe\n\n)\n\nwhich can then be run directly:\n\n\t./build/native/nativeCompile/lwjgl3-helloworld\n\nor, run it with relevant system properties to see some debug info in the console:\n\n\t./build/native/nativeCompile/lwjgl3-helloworld -Dorg.lwjgl.util.Debug=true\n\n(or if building on a Windows machine:\n\n\tbuild\\native\\nativeCompile\\lwjgl3-helloworld.exe\n\tbuild\\native\\nativeCompile\\lwjgl3-helloworld.exe -Dorg.lwjgl.util.Debug=true\n\n)\n\n## Maven build tasks\n\nTo build and run the HelloWorld demo in standard JVM with Maven, execute the\n`compile` then `exec:exec` tasks:\n\n\tmvnw compile\n\tmvnw exec:exec\n\nTo see some debug info generated by LWJGL, run it with relevant system properties\nto show some debug messages in the console:\n\n\tmvnw exec:exec -Dsys.props=\"-Dorg.lwjgl.util.Debug=true\"\n\nThe above tasks can use any standard JDK 11+.\n\nTo generate native executable, GraalVM 21+ need be set up as mentioned in\n*GraalVM pre-requisites* section above.\n\nOnce GraalVM is set up and available in the path, run the `package` task:\n\n\tmvnw package\n\nThe `package` task would take a while to compile the demo source code and\nlink them with the LWJGL libraries into an executable file.\nThe resulting `lwjgl3-helloworld` executable file is:\n\n\ttarget/lwjgl3-helloworld\n\n(or if building on a Windows machine:\n\n\ttarget\\lwjgl3-helloworld.exe\n\n)\n\nwhich can then be run directly:\n\n\t./target/lwjgl3-helloworld\n\nor, run it with relevant system properties to see some debug info in the console:\n\n\t./target/lwjgl3-helloworld -Dorg.lwjgl.util.Debug=true\n\n(or if building on a Windows machine:\n\n\ttarget\\lwjgl3-helloworld.exe\n\ttarget\\lwjgl3-helloworld.exe -Dorg.lwjgl.util.Debug=true\n\n)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchirontt%2Flwjgl3-helloworld-native","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchirontt%2Flwjgl3-helloworld-native","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchirontt%2Flwjgl3-helloworld-native/lists"}