-
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] Naitve-image tool does not recognize jar files that contain shell headers #405
Comments
@Glavo, thanks for your report. I will have a look if this can be fixed easily. |
Fixed on master (023d1b0). |
FWIW, implementing a full Scala repl on top of SubstrateVM would require a truffle-language implementation for Scala. |
I had the same problem ... trying to convert a maven-based springboot jar into executable.
I saw that you have fix it in here, I assume now it should parse jar correctly, so I checkout from git, how am I going to build the latest changes that you've made, but I seems not able to follow those instructions (specifically SubstrateVM native-image binary), I find it not straight forward enough. I'm following this guide: # from my home path
> cd ~/
# pull the mx code base
> git clone https://github.com/graalvm/mx.git
# setting env. variable
> export PATH=~/mx:$PATH
# pull the graal code base
> git clone https://github.com/graalvm/graal.git
> cd graal/compiler
# install missing dependency for my Ubuntu 16.04 (Bash on Ubuntu on Windows)
> sudo apt-get install build-essential
> sudo apt-get install python-minimal
# ... etc I don't want to bore you all
# setting env variable for JDK (the lab jvmci version)
> export JAVA_HOME=/usr/lib/jvm/jdk1.8.0_171
> export PATH=$PATH:$JAVA_HOME/bin:
# test if java correctly
> java -version
# to test if env config correctly for mx
> mx
# build graal compiler
> mx build
# try the graal vm
> mx vm
# execute correctly Things are ok now, how do I proceed from here ... ?? Any help is much appreciated. |
Erm I kinda get it one step further this time, it generates a binary for me ... super NICE, however the result isn't correct (exception thrown), probably related to the UnsupportedElementsAtRuntime previously ...
|
@avatar21 yes, that error means that we don't currently support |
@cstancu thanks, is it in another word SpringBoot is not supported yet?? |
block on this ProtectionDomain too |
@fujohnwang you can follow the progress of that bug here #564. It will be fixed soon. |
@cstancu got it, thanks |
Add workflow additions for uploading build stats
Jar files generated using this tricks can be run directly by java commands:
but the native-image tool doesn't recognize it:
The text was updated successfully, but these errors were encountered: