How to execute script from JAR file?

前端 未结 3 1118
醉酒成梦
醉酒成梦 2020-12-19 17:55

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

3条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-19 18:06

    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

提交回复
热议问题