Eclipse를 사용하며 Spring MVC Legacy 를 생성 하는데 에러가 났다.
에러 메세지
an error has occurred. see error log for more details. could not initialize class Could not initialize class com.thoughtworks.xstream.converters.collections.PropertiesConverter
발생 이유
spring version 과 java version 호환 문제
해결법
Eclipse > properties > java > installed jres > 11버전 이상 java 를 선택
(Eclipse 2020-09 버전부터..)
참고로 Eclipse 2020-06 까지는 java8 이 호환 되지만 2020-09 부터는 java11 호환이므로 주의
다음 info.plist에서 아랫 부분에
<string>-vm</string>
<string>/Library/Java/JavaVirtualMachines/jdk-11.0.13.jdk/Contents/Home/bin/java</string>
참고 포스팅
https://thenicesj.tistory.com/9
[mac setting .m1pro] java 설치
이번에는 mac에 java를 설치하려고 한다. 이전 포스팅에서 프로그래밍 언어들은 적시적소에 맞게 버전관리를 위해서 brew를 사용하면 좋다고는 말했으나 솔직하게 개발 하는 입장에서는 자꾸 버전
thenicesj.tistory.com
이클립스 설치 포스팅
https://thenicesj.tistory.com/16
[mac setting .m1pro] eclipse 설치
이번엔 mac에 자바/ 스프링을 위한 eclipse를 설치해볼것이다. 자바 설치를 하고 eclipse를 셋팅하면 되는데 java 설치는 아래 블로그를 참조하자! https://thenicesj.tistory.com/9?category=1036926 [mac setti..
thenicesj.tistory.com
'IT > Java' 카테고리의 다른 글
spring 예제 part.3 (1) | 2021.12.16 |
---|---|
spring 예제 part.2 (1) | 2021.12.14 |
spring 예제 part.1 (2) | 2021.12.13 |
[java] lombok 사용법 (2) | 2021.12.02 |
[java] Session사용하기 (4) | 2021.12.02 |
댓글