강의

멘토링

커뮤니티

Inflearn Community Q&A

alclsloo1278's profile image
alclsloo1278

asked

Spring for Beginners - Learn Spring Boot, Web MVC, and DB Access Technology with Code

Build and Run

cmd에서 jar실행시

Written on

·

611

0

빌드도 됬고 libs폴더안에 jar파일도 만들어졌는데

java -jar hello-spring -0.0.1-SNAPSHOT.jar

하면 이런 오류로 실행이 되지 않습니다. ㅠㅠ

spring-bootMVCspringjava

Answer 2

1

alclsloo님의 프로필 이미지
alclsloo
Questioner

만들어진 jar파일 자체에 공백이 있었어용 ㅠㅠ! 감사합니다! 

0

yh님의 프로필 이미지
yh
Instructor

안녕하세요. alclsloo님

오류 메시지를 보니까, hello-spring이 없다고 하네요.

정확한 jar이 있는 위치에서 정확한 파일명을 입력하지 않은 것 같습니다.

그래서 확인해보니 java -jar hello-spring 그 다음에 공백이 하나 들어갔습니다^^!

오류버전: java -jar hello-spring (여기공백)-0.0.1-SNAPSHOT.jar

정상버전: java -jar hello-spring-0.0.1-SNAPSHOT.jar

공백을 제거하고 실행하면 되실꺼에요^^

감사합니다.

alclsloo1278's profile image
alclsloo1278

asked

Ask a question