Written by
java-style
on
on
Can't execute jar- file: "no main manifest attribute"
Can't execute jar- file: "no main manifest attribute"
728x90
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
728x90
반응형
from http://yjh5369.tistory.com/632 by ccl(A) rewrite - 2021-11-07 22:00:44