Java

[eclipse/오류해결] Version 1.8.0_261 of the JVM is not suitable for this product. Version: 17 or greater is required.

Gaeun Lee 2023. 2. 16. 01:00

Eclipse를 실행하려는데 이런 오류창이 떴다.

 

구글링 해본 결과, eclipse가 설치된 폴더에 있는 구성 설정 (ini) 파일을 열고

가장 위에 이 두줄을 추가해주면 된다.

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

위 경로는 사용자마다 다르니 수정이 필요할 듯하다.

 

아래와 같이 수정해주고 저장하니 정상적으로 실행되었다.

-vm
C:\Program Files\jdk-18.0.2\bin\javaw.exe
-startup
plugins/org.eclipse.equinox.launcher_1.6.400.v20210924-0641.jar
--launcher.library
C:\Users\gaeun\.p2\pool\plugins\org.eclipse.equinox.launcher.win32.win32.x86_64_1.2.700.v20221108-1024
-product
org.eclipse.epp.package.java.product
-showsplash
C:\Users\gaeun\.p2\pool\plugins\org.eclipse.epp.package.common_4.26.0.20221201-1200
--launcher.defaultAction
openFile
--launcher.appendVmargs
-vmargs
-Dosgi.requiredJavaVersion=17
-Dosgi.instance.area.default=@user.home/eclipse-workspace
-Dosgi.dataAreaRequiresExplicitInit=true
-Dorg.eclipse.swt.graphics.Resource.reportNonDisposed=true
-Dsun.java.command=Eclipse
-Xms256m
-Xmx2048m
-XX:+UseG1GC
-XX:+UseStringDeduplication
--add-modules=ALL-SYSTEM
-Declipse.p2.max.threads=10
-Doomph.update.url=https://download.eclipse.org/oomph/updates/milestone/latest
-Doomph.redirection.index.redirection=index:/->http://git.eclipse.org/c/oomph/org.eclipse.oomph.git/plain/setups/