Closed xljnc closed 8 months ago
Hello, can you please give the logs and stack trace you received, also provide us with a reproducer to reproduce and investigate the issue.
full log is added
seems that nativeCompile ouput file doesn't have a executable file named springboot-demo which specified in gradle config file
project url: https://github.com/xljnc/jdk21-research.git
I understand that the reproducer is the springboot-demo right? if yes than I have found that the settings.xml file was missing in springboot-demo, along with some issues in the springboot-demo/build.gradle line 59 to 61. I used the same settings.xml in jdk21-research, I used it as springboot-demo/settings.xml, as for the lines 59 to 61 of the springboot-demo/build.gradle I removed them. Am I on the correct path? also what commands do you use for building and running the native image (just to double check).
I understand that the reproducer is the springboot-demo right? if yes than I have found that the settings.xml file was missing in springboot-demo, along with some issues in the springboot-demo/build.gradle line 59 to 61. I used the same settings.xml in jdk21-research, I used it as springboot-demo/settings.xml, as for the lines 59 to 61 of the springboot-demo/build.gradle I removed them. Am I on the correct path? also what commands do you use for building and running the native image (just to double check).
command is gradle clean nativeCompile nativeRun, I do add a settings.gradle to springboot-demo and use springboot-demo as the root project, then I got the same result ,
I found that the nativeCompile output does not contains a executable file naming springboot-demo
just as the nativeRun command reports
by the way , the demo code runs well using maven plugin , I wonder why the gradle executable file has a 'dylib' suffix ??
if I try to execute it , error occurs
@xljnc @medoussboug
How was this issue solved? I'm currently facing the same issue on my Ubuntu pc
@xljnc the reproducer is no longer available, please make sure that it is available we are still using it for testing purposes. @ArakunrinBambam you can provide a reproducer, the steps to reproduce and information about your environment (os-architecture-java version-graalvm version)
If you find a similar issue, please create a new ticket and we will be happy to help. This ticket is closed for surpassing inactivity period limit.
Describe the issue when I'm running nativeRun with gradle, error occurs, below is the error log
What went wrong: A problem was found with the configuration of task ':springboot-demo:nativeRun' (type 'NativeRunTask').
Reason: An input file was expected to be present but it doesn't exist.
Possible solutions:
For more information, please refer to https://docs.gradle.org/8.4/userguide/validation_problems.html#input_file_does_not_exist in the Gradle documentation.
graalvm gradle plugin version: 'org.graalvm.buildtools.native' version '0.9.28'
gradle nativeCompile OutPut:
gradle config:
Describe GraalVM and your environment:
please look at this ,thanks.
More details Add any other information about the problem here. Especially important are stack traces or log output. Feel free to link to gists or to screenshots if necessary.