-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Any posibilities to use libraries which are also using AWT / Swing with GraalVM native-image feature? #505
Comments
Here there there is a similar issue already: gluonhq/substrate#908 |
Just copy those file to folder where your exe is launched and it should work with AWT |
@Hugolarson Thanks for your quick response and solution. I am not sure which should I have to copy and put where exe is launched, please try to explain you comment! Here is my sample working project: https://github.com/ctoabidmaqbool1/iTextPdf-5-And-ICEpdf-Viewer-Test/tree/gluon-or-graalvm-issue And as I already mentioned, my other issues at: pcorless/icepdf#351 (comment) |
Copy AWT related DLLs from JVM to exe folder. |
I have copies those files from my D:\Programs\graalvm-svm-java17-windows-gluon-22.1.0.1-Final\bin and now some more errors are comming!
Alos it looks like, after applying something like this, It's using gernal Java not graalvm-native image only? |
Maybe id does not work with swing. My application is Javafx and AWT and it's working |
In my another project When I try to run any native tasks, e.g. I am trying my commands in Windows 10 -> WSL 2 -> Ubuntu
I am seeing error e.g.:
|
Okey, Last time erorrs are caused my system missing dependencies.
I have solved by Complete installing WSL 2 -> Ubuntu with GUI package e.g.
|
Hi! your provided solutions works as expacted 100%! but I have to copy every time i again clean and build gluon native-image. iss there any method to automatically copy these file and after nativing building or including these libs using gradle or something else??? I am trying currently
or
|
There are 100 or thousand of libraries available which are dependent upon AWT and Swing too, So How can we such a libraries with GrallVM nicely! I am facing such an issue in my another project: |
Still errror is shoiwng,
|
Try set java.home in terminal your run gradlew |
I think, this is issue in graalvm too: oracle/graal#1812 |
I alrady have tried without any luck, e.g. same issue:
Anyhow, still if I will be seccedded, then still it will not be pure graalvm native-image but will be tottaly dependent upon JVM. |
It's looks like AWT/Swing can be used in GraalVM, but still i am facing same issue, even in latest GraalVM release |
Hi! currently GraalVM is not currently supported AWT.
Actualy I am trying to use power libs e.g. ICE-Pdf Viewer and iText pdf 5.
I think there are some solutions to AWT with GraalVM e.g. https://bell-sw.com/liberica-native-image-kit/
But i am not sure, if can i use it with Gluon technology!
https://bell-sw.com/blog/how-to-turn-awt-applications-into-native-images/
I have put issue to library officail repository too!
pcorless/icepdf#351
The text was updated successfully, but these errors were encountered: