Вот мой код
File file = ResourceUtils.getFile("classpath:run.sh");
String path = file.getAbsolutePath();
, но когда я делаю
Runtime.getRunTime().exec(path)
, выдается исключение FileNotFoundException
class path resource [run.sh] cannot be resolved to absolute file path because it
does not reside in the file system:
jar:file:/root/backend-2.1.2.RELEASE.jar!/BOOT-INF/classes!/run.sh