본문 바로가기

Java/Jsp

Eclipse "Failed to create the Java Virtual Machine" 해결 방법


Eclipse에서 실행했을 경우, "Failed to create the Java Virtual Machine"이라는 메시지가 뜨는 것은 주로 메모리 부족과 관련있다고 함.

eclipse.ini의 맨 위에
-vm
(path_to_jdk)\bin\javaw.exe
추가하면 해결됨.

그래도 안되면 아래 강조된 부분도 수정.
-vm
C:\PROGRA~1\Java\jdk1.6.0_23\bin\javaw.exe
-startup
plugins/org.eclipse.equinox.launcher_1.1.0.v20100507.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.1.R36x_v20100810
-product
org.eclipse.epp.package.jee.product
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
128M   <--- 256M에서 변경
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
128m   <--- 256m에서 변경
--launcher.defaultAction
openFile
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms40m
-Xmx512m

[출처] http://thefuturedesigner.tistory.com/1