이클립스로 서버를 구동했는데 오류 메시지가 출력되었다..
(분명 어제까지만해도 이상없이 진행되었기에 더 당황.. 서버는 건드린게 없었는데..?)
Console 창에는 제목과 같이 Unrecognized option: --add-opens when passed with _JAVA_OPTIONS
라는 에러메시지만 출력될 뿐 다른 설명들은 없었다.
결국 구글링으로 찾아보는 것을 시작으로 방법을 찾다가 참조할 수 있는 블로그를 발견하여 해결했습니다.
자바 8버전에서는 --add-opens 라는 옵션이 없기 때문에 에러가 난다고 작성되어 있었다.
run > run configurations > > Arguments > VM Arguments 에서 --add-opens 가 붙은 옵션들을 제거해주면 됩니다.
reference
https://velog.io/@sonyak-ku/Unrecognized-option-add-opens-when-passed-with-JAVAOPTIONS
'Java' 카테고리의 다른 글
Java Error : Unreachable code (0) | 2022.01.09 |
---|---|
exERD 설치 방법 (Eclipse Plugins) (0) | 2022.01.07 |
Eclipse Error - Implicit super constructor Object() is undefined for default constructor. Must define an explicit constructor (0) | 2021.12.15 |
Eclipse에서 주로 사용되는 단축키(Window OS) (0) | 2021.12.13 |
Eclipse Error... Cannot nest '~' inside '~'. To enable the nesting exclude 'src/' from '~' (0) | 2021.10.10 |