Error: Could not create the Java Virtual Machine. Error: A fatal exception has occurred. Program will exit. 해결방법

CODEDRAGON Development/Java

반응형

 

 

 

오류메시지

---------------------------

Java Virtual Machine Launcher

---------------------------

Error: Could not create the Java Virtual Machine.

Error: A fatal exception has occurred. Program will exit.

---------------------------

확인  

---------------------------

 

 

 

 

해결방법

javaw.exe파일 경로 확인

eclipse 설정 변경하기

 

 

 

 

javaw.exe파일 경로 확인

javaw.exe파일이 있는 경로를 확인합니다.

 

JDK 설치된 경로의 bin폴더에서 javaw.exe파일을 확인합니다.

 

 

 

 

 

 

 

javaw.exe 경로 - OracleJDK

C:\Program Files\Java\jdk1.8.0_05\bin\javaw.exe

 

 

 

javaw.exe 경로 - OpenJDK, AdoptopenJDK

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

 

 

 

javaw.exe 경로 - ojdkbuild

C:\Program Files\ojdkbuild\java-11-openjdk-11.0.2-1\bin\javaw.exe

 

 

 

eclipse.ini 경로

C:\CodeLab\eclipse-jee-2018-09-win32-x86_64\eclipse\eclipse.ini

 

 

 

 

eclipse 설정 변경하기

eclipse 폴더의  eclipse.ini 파일을 오픈합니다.

 

eclipse.ini파일을 오픈한

openFile항목 밑에 아래와 같이 javaw.exe경로 추가

--launcher.defaultAction
openFile
-vm
C:\Program Files\Java\jdk1.8.0_05\bin\javaw.exe

 

 

 

openFile
--launcher.defaultAction
openFile
-vm
C:\Program Files\Java\jdk-12\bin\javaw.exe
--launcher.appendVmargs
-vmargs

 

 

 

openFile
--launcher.defaultAction
openFile
-vm
C:\Program Files\ojdkbuild\java-11-openjdk-11.0.2-1\bin\javaw.exe
--launcher.appendVmargs
-vmargs

 

 

 

이클립스를 재시작합니다.

 

 

 

 

 

 

다른 해결 방법

https://codedragon.tistory.com/8680

 

Error-Server Tomcat v7.0 Server at localhost failed to start.

Error-Server Tomcat v7.0 Server at localhost failed to start. 다른 해결방법 http://codedragon.tistory.com/1352 http://codedragon.tistory.com/4613 에러 메시지 Server Tomcat v7.0 Server at localhost f..

codedragon.tistory.com

 

 

https://codedragon.tistory.com/1352

 

eclipse - JRE 경로 변경하기

eclipse - JRE 경로 변경하기 프로젝트 선택 >> 마우스 우클릭 >> [Build Path] >> [Configure Build Path…] >> [Libraries] >> 에러 표시가 있는 [JRE System Library [jre1.x.x_xxx](unbound)] 항목 선택 >> [E..

codedragon.tistory.com

 

 

https://codedragon.tistory.com/6022

 

Error-Server Tomcat v7.0 Server at localhost failed to start. 해결방법

Error-Server Tomcat v7.0 Server at localhost failed to start. Server Tomcat v7.0 Server at localhost failed to start. 해결방법 프로젝트 선택 >> 마우스 우클릭 >> [Build Path] >> [Configure Build Pat..

codedragon.tistory.com

 

 

 

반응형