Comments (6)
Thank you greatly for the concise reproducer! Assigning it to @pejovica as he is providing support for AWT.
from graal.
@tabiStein sure, I hope you don't mind that I've re-assigned the ticket to you. Please update the ticket when paketo-buildpacks/native-image#308 is resolved.
from graal.
@tabiStein Is libawt.so
next to the built executable? If not, was it listed in the build output as a produced artifact?
from graal.
@pejovica No, the executable is alone in a workspace/ directory.
Yes, I do see libawt.so listed in the built artifacts:
[INFO] [creator] Produced artifacts:
[INFO] [creator] /layers/paketo-buildpacks_native-image/native-image/libawt.so (jdk_library)
[INFO] [creator] /layers/paketo-buildpacks_native-image/native-image/libawt_headless.so (jdk_library)
[INFO] [creator] /layers/paketo-buildpacks_native-image/native-image/libawt_xawt.so (jdk_library)
[INFO] [creator] /layers/paketo-buildpacks_native-image/native-image/libfontmanager.so (jdk_library)
[INFO] [creator] /layers/paketo-buildpacks_native-image/native-image/libfreetype.so (jdk_library)
[INFO] [creator] /layers/paketo-buildpacks_native-image/native-image/libjava.so (jdk_library_shim)
[INFO] [creator] /layers/paketo-buildpacks_native-image/native-image/libjavajpeg.so (jdk_library)
[INFO] [creator] /layers/paketo-buildpacks_native-image/native-image/libjvm.so (jdk_library_shim)
[INFO] [creator] /layers/paketo-buildpacks_native-image/native-image/liblcms.so (jdk_library)
[INFO] [creator] /layers/paketo-buildpacks_native-image/native-image/org.example.App (executable)
I've attached the full output of running mvn -Pnative package, so you can check it in detail:
packageOutput.txt
from graal.
No, the executable is alone in a workspace/ directory.
Well, that's the problem. All produced artifacts are necessary for the executable to work (i.e., it can't work without the listed shared libraries).
Since the build output shows that all required artifacts are produced, and the error corresponds to the fact that the shared libraries are indeed missing when running the executable, there is nothing to fix on the native image side.
I'm guessing this is a bug with what drives the native-image
as it doesn't seem to take into account all the artifacts produced by the build.
from graal.
Thanks for the insight @pejovica , I have created a new issue with the Paketo team to see if it's an issue with their buildpack. Paketo Issue 427
If it's alright with you, I would like to keep this issue open until we can identify and verify the fix.
from graal.
Related Issues (20)
- Using native-image and Android apk files. HOT 3
- [GR-54193] Improve docs on JSON config files HOT 1
- What would be your recommendation to native compile a simple Java library and then call this native compiled library from another Java program? HOT 19
- native-image build error in graal-22.0.1
- jdk.VirtualThreadPinned JFR event NOT supported in native-image HOT 2
- jdk.graal.compiler.debug.GraalError: should not reach here: kind=V256_QWORD input=xmm6|V256_QWORD result=xmm0|V256_QWORD HOT 1
- epsilon and G1 seem not to work with JFR in NI HOT 2
- JFR CPU profiler does not respect the configured sampling period HOT 3
- Error encountered while parsing com.sun.glass.ui.mac.MacVariant.toString (MacVariant.java:193) HOT 2
- problem running compiled file when I have @Qualifier annotation in my code HOT 1
- native-image swing program in linux cannot switch to Chinese IME in the JTextField component HOT 2
- GraalVM website reference manual guide looks broken HOT 4
- absolute relocations in rodata section HOT 1
- Native images throw `MissingResourceRegistrationError` despite the resource being actually registered (but not present) HOT 1
- Crash with Kotlin Coroutines / Kotlin 2.0 HOT 2
- com.github.kevinsawicki dependency error HOT 3
- Missleading warning after the integration of proxy registration to the reflection config HOT 1
- Running gradlew nativeCompile in Spring Boot application fail because a missing OkHttp3 configuration for datadog HOT 1
- GraalVM compiler reports java.lang.NoSuchMethodError: java.lang.StringCoding.countPositives([BII) HOT 1
- native-image and poi: Defining hidden classes at runtime is not supported HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from graal.