본문 바로가기

About Programing/09. Java

Failed to create the Java Virtual Machine 해결법



"자, 이제 시작해볼까?"
라며 기새 등등하게 Eclipse를 실행시켰는데...!

당황했다;;
Java 설정이 잘못된건가 싶어서
cmd에서 javac와 java를 쳐 봤는데 정상 작동된다;;

대체 뭐가 잘못된걸까!

정답은 Eclipse 폴더 안에 있는 eclipse.ini 파일 설정 문제다.

파일을 열어서 수정해주자!

-startup
plugins/org.eclipse.equinox.launcher_1.1.0.v20100507.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.0.v20100503
-product
org.eclipse.epp.package.jee.product
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
256M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
-vm
C:\Program Files\Java\jdk1.6.0_21\bin\javaw.exe // <-- 추가해준다!
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms40m
-Xmx512m