Eclipse 오류 : 'Java Virtual Machine을 작성하지 못했습니다'
Windows 7에서 Eclipse Helios를 시작할 때이 오류 메시지가 표시됩니다.
JVM (Java Virtual Machine)을 작성하지 못했습니다.
내 eclipse.ini는 다음과 같습니다.
-startup
plugins/org.eclipse.equinox.launcher_1.1.0.v20100507.jar
-vm
P:\Programs\jdk1.6\bin
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.0.v20100503
-product
org.eclipse.epp.package.jee.product
--launcher.defaultAction
openFile
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
512m
--launcher.defaultAction
openFile
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms120m
-Xmn100m
-Xmx1024m
내 JAVA_HOME은 내가 알 수있는 한 올바르게 설정되었습니다. 이 문제를 어떻게 해결할 수 있습니까?
내가 지금까지 시도한 것 :
- javaw.exe의 전체 경로 추가
-vm P:\Programs\jdk1.6\bin\\bin\javaw.exe
-vm
옵션을 모두 제거- 제거
--launcher.XXMaxPermSize
하면 문제가 해결되지만 permgen 오류가 발생합니다 - 값
512
을 제거하면--launcher.XXMaxPermSize
문제 가 해결되지만 permgen 오류가 발생합니다. - 이 문제를 해결
-Xmx
하기 위해 축소512m
'-Xmx'및 '--launcher.XXMaxPermSize'에 '1024m'을 사용할 수없는 이유는 무엇입니까?
-vm P:\Programs\jdk1.6\bin
선을 제거하십시오 .
또한 일반적인 권장 사항 : set -Dosgi.requiredJavaVersion=1.6
, not 1.5
.
1.eclipse.ini
이클립스 폴더에서 파일을 엽니 다 ( 아래 그림 참조).
2. 열기 eclipse.ini
에서 Notepad
또는 다른 text-editor
응용 프로그램, 라인 찾기 -Xmx256m
(또는 -Xmx1024m
). 이제 기본값 256m
(또는 1024m
)을로 변경하십시오 512m
. 또한 정확한 Java 설치 버전 (1.6 또는 1.7 또는 기타)을 제공해야합니다.
이것처럼 :
-Xmx512m
-Dosgi.requiredJavaVersion=1.6
또는
-Xmx512m
-Dosgi.requiredJavaVersion=1.7
또는
-Xmx512m
-Dosgi.requiredJavaVersion=1.8
그런 다음 나에게 잘 작동합니다.
추가하려고
-vm
D:\Java\jdk1.6.0_29\bin\javaw.exe
참고 : sunblog 참조
Eclipse Wiki에 따라 Java 7에 문제가있는 다른 사용자의 경우 -eclipse.ini vm_value (Windows 예제)
일부 시스템에서는 작동하지 않을 수 있습니다. 일식을 시작하는 동안 "Java가 시작되었지만 종료 코드 = 1이 리턴되었습니다"오류가 발생하면 -vm 인수를 수정하여 jvm.dll을 가리 키십시오.
예 :
-vm
C:\Program Files\Java\jre7\bin\client\jvm.dll
또한
-vmargs 이후의 모든 항목이 JVM으로 직접 전달되므로 -vm 옵션은 -vmargs 옵션보다 먼저 발생해야합니다.
나는 이것이 꽤 오래되었다는 것을 알고 있지만 방금 동일한 문제가 있었고 문제는 내가 잡을 수없는 일식을 위해 많은 메모리에 할당하고 있다는 것입니다. 오픈 eclipse.ini 있도록하기 위해 할당되는 메모리의 양을 낮추고 -Xmx
XXMaxPermSize
I가 내를 변경 -Xmx512m
하고XXMaxPermSize256m
eclipse.ini
이클립스 폴더에서 파일을 엽니 다 .추가 구성이 있습니다. 줄을 찾으십시오
–launcher.XXMaxPermSize
. 이제 기본값 256m을 제거하고 저장하십시오.
eclipse.ini 제거했습니다 . 이 문제가 발생하여 ini 파일을 제거하면 해결되었습니다.
- Eclipse.exe로 폴더를 열고 eclipse.ini 파일을 찾으십시오.
교체 -vmargs를 javaw.exe가의 현재 실제 경로 : * -vm "C : \ 프로그램 파일 \ 자바 \ jdk1.7.0_07 \ 빈 \ javaw.exe가"*
-startup plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar --launcher.library plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.200.v20120522-1813 -product com.android.ide.eclipse.adt.package.product --launcher.XXMaxPermSize 256M -showsplash com.android.ide.eclipse.adt.package.product --launcher.XXMaxPermSize 256m --launcher.defaultAction openFile **-vm “c:\Program Files\Java\jdk1.7.0_07\bin\javaw.exe”** -Dosgi.requiredJavaVersion=1.6 -Xms40m -Xmx768m -Declipse.buildId=v21.1.0-569685
"-launcher.XXMaxPermSize"행에서 "256m"값을 제거하여이 문제를 해결할 수도 있습니다.
나는 이것에 대한 매우 쉬운 해결책을 찾았다. eclipse.ini
파일을 삭제하고 먼저 백업하십시오. 나는이 같은 문제를 여러 번 가지고 마침내 그것을 삭제하고 더 이상 문제가 없습니다.
또한 로딩 시간이 증가했습니다. 이제 Eclipse가 이전보다 빠르게 시작됩니다.
에서 STS.conf
파일 당신은 / 생성 방지하기 위해 중요한 두 가지를 확인해야 JVM 문제를 할당
1. 정확한 jdk 설치 위치를 제공하십시오.
--vm C:\Program Files\Java\jdk1.7.0_01\jre\bin\javaw.exe
2. 정확한 Java 설치 버전을 제공해야합니다.
--Dosgi.requiredJavaVersion=1.7
3. 메모리 크기를 줄이십시오.
--XX:MaxPermSize=256m
Eclipse 설치 폴더에있는 ecplise.ini 파일을여십시오.
-vmargs 행을 -vm D : \ jdk1.6.0_23 \ bin \ javaw.exe로 찾아서 바꾸거나 -vmargs 행을 제거하고 저장하십시오. 이제 문제가 해결되고 있습니다
위의 메모리 감소 솔루션을 시도한 후 Eclipse는 작동하기 시작하지만 작업 공간에서 플러그인을 특별히로드 할 때마다 중단됩니다 org.eclipse.debug.core
.
여기에서 해결책을 찾았습니다 .Eclipse는 Splash Screen에서 멈추고 공유하고 싶습니다. 잘하면 그것은 다른 사람들도 도울 수 있습니다.
이거 한번 해봐:
-startup plugins/org.eclipse.equinox.launcher_1.1.1.R36x_v20101122_1400.jar
--launcher.library plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.2.R36x_v20101222
-showsplash org.eclipse.platform
--launcher.XXMaxPermSize 256m
--launcher.defaultAction openFile
-vm F:\Program Files\jdk1.6\bin\javaw.exe
-vmargs
-Xms512m
-Xmx512m
-XX:+UseParallelGC
-XX:PermSize=256M
-XX:MaxPermSize=512M
빠른 수정:
변화 -Xmx1024m
에 -Xmx512m
의 eclipse.ini (같은 수준에있는 파일 eclipse.exe
존재). 그리고 그것은 매력처럼 작동합니다.
이 문제를 해결하는 간단한 방법은 eclipse.ini 파일 을 삭제하거나 이름을 바꾸는 것 입니다. 먼저 해보십시오. 이 방법으로 문제가 해결되지 않으면 아래 설명 된 해결 방법을 시도하십시오.
그것을 고치는 다른 방법들 :
해결책 1
파일의 대상을 변경 하는 문자열을 eclipse.ini 파일에 추가 javaw.exe
하십시오. 중요한 것은이 문자열이 "-vmargs"문자열 위에 있어야한다는 것입니다!
-vm
C:\Program Files\Java\jdk1.6.0_22\bin\javaw.exe
해결책 2
256m–launcher.XXMaxPermSize
과 같은 값을 제거하십시오 .
해결책 3
Xms 및 Xmx 값을 제거하거나 줄입니다.
-Xms384m
-Xmx384m
이것은 작동 할 수 있습니다 :
eclipse.ini
파일을 열고 줄 끝에서 아래 줄을 붙여 넣습니다.
-vmargs
-Xms40m
-Xmx512m
-XX:MaxPermSize=256m
vmargs 전에 eclipse.ini에 여러 항목이없고 vm 항목을 사용했는지 확인하십시오.
-vm
D:/java/jdk1.8.0_65/bin/javaw.exe
-vmargs
-Dosgi.requiredJavaVersion=1.8
-Dosgi.instance.area.default=@user.home/eclipse-workspace
-XX:+UseG1GC
-XX:+UseStringDeduplication
-Dosgi.requiredJavaVersion=1.8
-Xms256m
-Xmx1024m
이것은 나를 위해 일했다 :
I closed all the other memory intensive applications on my Windows 7 machine. And I tried to open Eclipse, and, voila, it worked.
After adding -vm in eclipse.ini as shown below worked for me. Add it before -vmargs
do not remove it
-vm
C:\apps\Java\jdk1.8.0_92\bin\javaw.exe
-vmargs
There was a jdk update which was causing this issue.
Faced the issue when my Eclipse proton could not start. Got error "Failed to create the Java virtual machine"
Added below to the eclipse.ini file
-vm
C:\Program Files\Java\jdk-10.0.1\bin\javaw.exe
Adding this fixed the issue for me:
-vm
D:\Java\jdk1.6.0_29\bin\javaw.exe
Some time it's not your eclipse.ini; it's your JDK which is crashed. You can check it by writing following command in a command prompt:
c:\> java -version
If this command shows the following error:
Error occurred during initialization of VM
java/lang/NoClassDefFoundError: java/lang/Object
Then first uninstall JDK and reinstall it.
Eclipse will be in action again ;) As today I have got the same problem, and the above is suggested by Itachi Uchiha.
Reduce param size upto -256
See my eclipse.ini file
-startup
plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.100.v20110502
-product
org.eclipse.epp.package.jee.product
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
256M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256M
--launcher.defaultAction
openFile
-vmargs
-Dosgi.requiredJavaVersion=1.6
-Xms40m
-Xmx512m
The proper solution to your problem is to add the -vm line pointing to jvm.dll file of your Java folder in ini fie.
-vm
C:\Program Files\Java\jre1.8.0_202\bin\server\jvm.dll
/*there is no dquote for path, and path points to right java version folder mentioned in ini file*/
If the above fix is not fruitful, then do not attempt anything else. Most of the advice in this thread is misguided. Some of these hacks might work temporarily or on certain machine configurations, but the contents of eclipse.ini are not trivial nor arbitrary. For the authoritative reference, see this [wiki page]:https://wiki.eclipse.org/Eclipse.ini#Specifying_the_JVM that explains the contents of the file. Also note the See Also links at the bottom of that page for more details about things like heap size, etc. DO NOT delete eclipse.ini, EVER. It is also inadvisable to remove the -vm or Xmx options. If you do, you're asking for trouble.
Here are references from the wiki page pertaining to your problem:
For me it solved by changing the JDK bin path in the Path environment variable. Put the JDK bin path which has jre/bin/client/jvm.dll under JDK home.
STEPS TO SOLVE THE ISSUE :-
Open the eclipse.ini file from your eclipse folder.
It has some of add on configuration . Find the line –launcher.XXMaxPermSize.It will be the last line in this file. Now remove/delete the the default value 256m and save it.
-vm D:\Java\jdk1.6.0_29\bin\javaw.exe
I was facing the same problem, and I found the solution. There are issues in allocation of MaxPermSize. If you try to allocate more than your machine's free space then it gives this error in my issue. So try to reduce MaxPermSize.
I think it will help you to sort out your issue.
All these solutions failed me. This happened to me out of the blue after using Eclipse for six months. It seems somehow my JDK got corrupted.
내 최종 솔루션은 최신 JDK를 다운로드하고 그에 따라 내 JAVA_HOME을 jdk1.6.0_37에서 jdk1.6.0_43으로 업데이트하는 것이 었습니다.
@Maro 나를 위해 그것은 매우 간단하게 작동했습니다!
오류 메시지 경고가 나타난 후 명령 프롬프트에서 'eclipse c .exe'를 실행했습니다. 이것은 Eclipse를 열었습니다. 그런 다음 다시 'eclipse.exe'로 시도했는데 이제는 잘 작동합니다.
불행히도, 이에 대한 기술적 이유는 없었습니다.
참고 URL : https://stackoverflow.com/questions/7302604/eclipse-error-failed-to-create-the-java-virtual-machine
'Programming' 카테고리의 다른 글
프로그래밍 방식으로 segue 만들기 (0) | 2020.05.07 |
---|---|
Powershell에서 파일의 압축을 푸는 방법은 무엇입니까? (0) | 2020.05.07 |
폴더의 파일 이름을 순차 번호로 바꾸기 (0) | 2020.05.06 |
HTML에서 "모두 선택"확인란을 구현하는 방법은 무엇입니까? (0) | 2020.05.06 |
Rails에서 현재 경로를 어떻게 알 수 있습니까? (0) | 2020.05.06 |