I have a maven project, in which, I am trying to execute a script (written in R). I put this script file in the source code directory as well. I found this script is not exe
File inside jar is no longer a file, So to execute it you first need to extract it somewhere and then execute it from external extracted file path
I would do the following:
You will need to extract the script from the jar file:
jar -xvf my.jar com/foo/my.script.sh