-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[native-image] native image failed to build jar #411
Comments
@sound2gd thank you for your report, we'll look into it! |
@sound2gd can you provide the steps to build that jar? |
@cstancu sorry for late reply. here is the step. first make sure you have installed leiningen $ lein new luminus graal-test
Retrieving luminus/lein-template/2.9.12.54/lein-template-2.9.12.54.pom from clojars
Retrieving luminus/lein-template/2.9.12.54/lein-template-2.9.12.54.jar from clojars
Generating a Luminus project.
$ cd graal-test
$ lein uberjar
....
Created graal-test/target/uberjar/graal-test-0.1.0-SNAPSHOT.jar
Created graal-test/target/uberjar/graal-test.jar
$ native-image -jar ./target/uberjar/graal-test.jar |
@sound2gd I tried to replicate the issue on my machine and I get a different behavior. The |
@cstancu thanks for your effort, looking forward to your solution |
I have the same problem while trying to build https://github.com/mping/compojure-api-chassis. There's a makefile in that repo for building with I tried with rc3. |
This is the same issue has the reported here: #428 |
I am a clojure user and I use leiningen to build a executable fat jar.
it can be runned directly using
java -jar
, but when I usenative-image -jar
It stucked and hung forever
here is the output
$ java -version java version "1.8.0_161" Java(TM) SE Runtime Environment (build 1.8.0_161-b12) GraalVM 1.0.0-rc1 (build 25.71-b01-internal-jvmci-0.42, mixed mode) lein -v Leiningen 2.8.1 on Java 1.8.0_161 GraalVM 1.0.0-rc1
The text was updated successfully, but these errors were encountered: