웹 개발

Can't execute jar- file: "no main manifest attribute"

노루아부지 2021. 11. 7. 21:53
java -jar "app.jar"

명령어를 이용하여 jar 파일을 실행할 때, 아래와 같은 에러 메시지가 발생하는 경우가 있습니다.

 

no main manifest attribute, in "app.jar"

 

이 에러 메시지가 발생한 경우는 해당 jar 파일이 "실행 가능한 jar" 파일이 아닐 경우 발생합니다.

eclipse의 경우 jar로 export 할 경우 아래 이미지와 같이 "JAR file"과, "Runnable JAR file"이 있는데 "Runnable JAR file"로 export해야 합니다.

 

 

더 상세한 내용을 원하시면 아래 링크를 참고하시기 바랍니다.

https://stackoverflow.com/questions/9689793/cant-execute-jar-file-no-main-manifest-attribute

 

Can't execute jar- file: "no main manifest attribute"

I have installed an application, when I try to run it (it's an executable jar) nothing happens. When I run it from the commandline with: java -jar "app.jar" I get the following message: no ...

stackoverflow.com

 

 

 

728x90
loading