반응형

Spring MVC Project를 생성하던 중 아래와 같은 에러가 발생하였습니다.

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

일단 해결을 위해서는 JAVA 버전을 변경해야 하는데요.

저는 JDK 1.8 버전을 사용하고 있었고 이를 11 버전으로 바꾸었습니다.

 

Java Archive Downloads - Java SE 11 | Oracle 대한민국

 

Java Archive Downloads - Java SE 11 | Oracle 대한민국

WARNING: These older versions of the JRE and JDK are provided to help developers debug issues in older systems. They are not updated with the latest security patches and are not recommended for use in production. For production use Oracle recommends downlo

www.oracle.com

위의 링크로 이동하여 자신의 운영체제 맞는

JDK 11 버전을 다운로드하여 PC에 설치해 줍니다.

설치가 완료된 JDK의 환경변수를 설정합니다.

 

이제 이클립스의 eclipse.ini 파일을 수정해야 하는데요.

-vm
C:\Program Files\Java\jdk-11.0.17\bin\javaw.exe

위와 같이 새로 설치된 JDK11의 JVM경로를 입력해 줍니다.

그러면 에러 없이 Spring MVC Project를 생성할 수 있습니다.

반응형

+ Recent posts