halcyon / asdf-java

A Java plugin for asdf-vm.
MIT License
466 stars 86 forks source link

adding native-image to the path when using graal #171

Open joprice opened 2 years ago

joprice commented 2 years ago

When using graal as my jvm: java graalvm-21.3.0+java17, I can install native-image using gu install native-image, but the native-image binary is not available on the path.

oppegard commented 1 year ago

I'd also like to see this. native-image exists:

$ ls -l ~/.asdf/installs/java/graalvm-22.3.1+java17/bin

lrw-r--r--  1 goppegard  staff     23 Jan 19 04:28 gu -> ../lib/installer/bin/gu
-rwxr-xr-x  1 goppegard  staff  68864 Jan 19 12:26 jar
-rwxr-xr-x  1 goppegard  staff  68880 Jan 19 12:26 jarsigner
-rwxr-xr-x  1 goppegard  staff  68864 Jan 19 12:26 java
-rwxr-xr-x  1 goppegard  staff  68864 Jan 19 12:26 javac
-rwxr-xr-x  1 goppegard  staff  68864 Jan 19 12:26 javadoc
-rwxr-xr-x  1 goppegard  staff  68864 Jan 19 12:26 javap
-rwxr-xr-x  1 goppegard  staff  68864 Jan 19 12:26 jcmd
-rwxr-xr-x  1 goppegard  staff  68880 Jan 19 12:26 jconsole
-rwxr-xr-x  1 goppegard  staff  68864 Jan 19 12:26 jdb
-rwxr-xr-x  1 goppegard  staff  68880 Jan 19 12:26 jdeprscan
-rwxr-xr-x  1 goppegard  staff  68864 Jan 19 12:26 jdeps
-rwxr-xr-x  1 goppegard  staff  68864 Jan 19 12:26 jfr
-rwxr-xr-x  1 goppegard  staff  68864 Jan 19 12:26 jhsdb
-rwxr-xr-x  1 goppegard  staff  68864 Jan 19 12:26 jimage
-rwxr-xr-x  1 goppegard  staff  68864 Jan 19 12:26 jinfo
-rwxr-xr-x  1 goppegard  staff  68864 Jan 19 12:26 jlink
-rwxr-xr-x  1 goppegard  staff  68864 Jan 19 12:26 jmap
-rwxr-xr-x  1 goppegard  staff  68864 Jan 19 12:26 jmod
-rwxr-xr-x  1 goppegard  staff  68880 Jan 19 12:26 jpackage
-rwxr-xr-x  1 goppegard  staff  68864 Jan 19 12:26 jps
-rwxr-xr-x  1 goppegard  staff  68880 Jan 19 12:26 jrunscript
-rwxr-xr-x  1 goppegard  staff  68864 Jan 19 12:26 jshell
-rwxr-xr-x  1 goppegard  staff  68864 Jan 19 12:26 jstack
-rwxr-xr-x  1 goppegard  staff  68864 Jan 19 12:26 jstat
-rwxr-xr-x  1 goppegard  staff  68864 Jan 19 12:26 jstatd
-rwxr-xr-x  1 goppegard  staff  68864 Jan 19 12:26 keytool
lrwxr-xr-x  1 goppegard  staff     27 Feb  1 14:27 native-image -> ../lib/svm/bin/native-image
lrwxr-xr-x  1 goppegard  staff     37 Feb  1 14:27 native-image-configure -> ../lib/svm/bin/native-image-configure
lrw-r--r--  1 goppegard  staff     28 Jan 19 04:28 polyglot -> ../lib/polyglot/bin/polyglot
lrwxr-xr-x  1 goppegard  staff     29 Feb  1 14:27 rebuild-images -> ../lib/svm/bin/rebuild-images
-rwxr-xr-x  1 goppegard  staff  68880 Jan 19 12:26 rmiregistry
-rwxr-xr-x  1 goppegard  staff  68880 Jan 19 12:26 serialver

But it's not at ~/.asdf/shims/native-image.

sify21 commented 6 months ago

I installed graalvm-community-17.0.9, native-image is available in the path.