본문 바로가기

개발

spring legacy project 생성 에러

728x90

sts 4.13.0 jdk 17

sts3 addon 깔고 legacy project 만들려하면 에러!!

 

An error has occurred. See error log for more details.
Could not initialize class com.thoughtworks.xstream.converters.collections.PropertiesConverter

대충 검색해보니 버전이 안맞아?? 문제인듯

누굴 내리나...

jdk 11로 해도 안됨

 

sts 실행이 내장 jdk 17이며 이것은 레가시 프로젝트에러를 만든다 그래서 sts 실행자체도 11로 바꿔야함.

-vm
plugins/org.eclipse.justj.openjdk.hotspot.jre.full.win32.x86_64_17.0.1.v20211116-1657/jre/bin

 

C:\Program Files\OpenJDK\jdk-11.0.14+9\bin 에서 \는 /로 변경하고

C:/Program Files/OpenJDK/jdk-11.0.14+9/bin

로 변경

 

된다!ㅠㅠㅠㅠ

sts 버전을 아래꺼 써도 될거같다 jdk는 11정도로 하고..

728x90