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)
- NoClassDefFoundError: com.oracle.svm.core.c.function.CEntryPointNativeFunctions HOT 2
- Native build failed after upgrade graalVM jdk 22 on linux but success on macOS HOT 4
- Error: java.util.concurrent.ExecutionException: com.oracle.graal.pointsto.constraints.UnsupportedFeatureException: type is not available in this platform: com.oracle.svm.hosted.NativeImageSystemClassLoader HOT 7
- [GR-53978] Class graph unable to load classes with GraalVM JDK21 HOT 12
- Print exception details/stacktrace when failed to add a library HOT 2
- Too heavyweight org.graalvm.shadowed.icu4j HOT 4
- Native Shared Library Unable To List Names of Annotated Class HOT 9
- [GR-54159] Fontconfig head is null, check your fonts or fonts configuration HOT 5
- Runtime reflection is not supported for public javax.ws.rs.core.Response$StatusType org.jboss.resteasy.specimpl.AbstractBuiltResponse.getStatusInfo() HOT 3
- Runtime reflection is not supported for public javax.ws.rs.core.Response$StatusType org.jboss.resteasy.specimpl.AbstractBuiltResponse.getStatusInfo() HOT 3
- Statically Linked native image does not produce/embed all the needed .so next to the executable HOT 2
- Add support for JCMD and the Attach API HOT 6
- How to configure Gradle to initialize specific modules at runtime when generating a native image with GraalVM? HOT 2
- [GR-54108] Polyglot memory leak on simple python execution HOT 1
- objectInputStream.readObject() issue with springboot 3.3.0 + graalvm22 as native image HOT 11
- Call for Lead Maintainers – GraalVM Backports Repositories HOT 4
- Future proposal: have "javac" directly support graalvm + (static) native image creation HOT 2
- 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
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.