How can I pass arguments to a .exe file? #2284
-
I have to create an app with Spring Boot, Picocli and GraalVM. The idea is that the customer be able to execute a .exe file and write some commands to see the information needed. I created a very simple app to see if it was possible, but even this simple app is not working. In this simple example, the idea is that in the cmd I should be able to do newSimpleCli.exe Nico and it should show: Hola, Nico!!! but as I said, it is not showing that. If I do: java -jar newSimpleCli-1.0-SNAPSHOT.jar Nico Why is not working with the .exe and how can I solve it? I have App.java:
HelloCommand:
pom:
MANIFEST.MF:
application.properties:
Unmatched argument at index 0: 'Nico' I also tried doing: newSimpleCli hello Nico |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Finally I could do it. But I needed to work with: |
Beta Was this translation helpful? Give feedback.
Finally I could do it.
I was working with this dependency:
info.picocli
picocli
4.7.6
But I needed to work with:
info.picocli
picocli-codegen
4.7.6