no main manifest attribute, in

리눅스에서 java -jar test.jar 했는데

no main manifest attribute, in test.jar

에러가 나오면(에러라고 하기도 뭐한 에러) 메인클래스를 찾을 수 없다는 의미이기때문에

java -cp test.jar package.mainClass이름

위에 처럼 main 클래스가 어디인지 알려주고 실행하면 해결됨

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s