Programing

eclipse.ini -vm 옵션을 어떻게 설정합니까?

lottogame 2020. 9. 10. 08:20
반응형

eclipse.ini -vm 옵션을 어떻게 설정합니까?


EclipseMaven 플러그인을 설치 했는데 다음과 같은 오류가 발생했습니다.

eclipse.ini의 -vm 옵션이 JDK를 가리키는 지 확인하십시오.

-vmeclipse.ini에서 내 JDK를 가리키는 옵션을 어떻게 사용 합니까?


내 솔루션은 다음과 같습니다.

-vm
D:/work/Java/jdk1.6.0_13/bin/javaw.exe
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256M
-framework
plugins\org.eclipse.osgi_3.4.3.R34x_v20081215-1030.jar
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms40m
-Xmx512m

eclipse.ini 파일은 -vm첫 번째 행에 있고 두 번째 행에 경로 가 있어야합니다 . 모든 것을 한 줄에 넣으려고하지 마십시오!

-vm
C:\Program Files\Java\jdk1.6.0_07\bin\javaw.exe

"vmargs"이후의 모든 것은 vm 인수로 간주됩니다. eclipse.ini의 마지막 부분 인 그 전에 있는지 확인하십시오.


여기에 위키 페이지가 있습니다 .

JVM 을 시작 하는 방법에는 두 가지가 있습니다. Eclipse 실행기와 별도의 프로세스에서 분기하거나 JNI 호출 API를 사용하여 프로세스 내에서로드하는 것입니다 .

-vm실제 java (w) .exe에 대한 경로를 지정 하면 JVM이 별도의 프로세스에서 분기됩니다. -vmJVM이 동일한 프로세스에서로드되도록 jvm.dll에 대한 경로를 지정할 수도 있습니다 .

-vm
D:/work/Java/jdk1.6.0_13/jre/bin/client/jvm.dll

jre / bin 폴더 자체의 경로를 지정할 수도 있습니다.

또한 eclipse.ini의 일반 형식은 별도의 행에있는 각 인수입니다. "-vm"과 경로를 같은 줄에 넣으면 작동하지 않습니다.


-vm

C : \ Program Files \ Java \ jdk1.5.0_06 \ bin \ javaw.exe

경로에 공백이 있더라도 따옴표가 없어야합니다 (명령 줄 실행과 반대).

여기 참조 : Eclipse 용 JRE 찾기


Ubuntu Linux 용 내 솔루션 :

-vm
/home/daniel/Downloads/jdk1.6.0_17/bin
-startup
plugins/org.eclipse.equinox.launcher_1.1.1.R36x_v20101122_1400.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.2.R36x_v20101019_1345
-product
org.eclipse.epp.package.jee.product
--launcher.defaultAction
openFile
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
-vmargs
-Dosgi.requiredJavaVersion=1.5
-XX:MaxPermSize=256m
-Xms40m
-Xmx512m

변경된 사항이 있는지 확실하지 않지만 Eclipse Galileo SR2 (Windows XP SR3)의 "eclipse.ini"항목에 대한 다른 답변을 시도했지만 아무것도 작동하지 않았습니다. Java는 jdk1.6.0_18이며 기본 Windows 설치입니다. 경로에서 "\ javaw.exe"를 삭제했을 때 상황이 개선되었습니다.

또한 -vmini 파일에서 첫 번째 줄이되어야 하는 언급에 대해 충분히 감사 할 수 없습니다 . 정말 도움이되었다고 생각합니다.

따라서 내 eclipse.ini 파일은 다음으로 시작됩니다.

-vm
C:\Program Files\Java\jdk1.6.0_18\bin

참고로, JDK로 Eclipse 시작을 지정해야하는 특별한 필요성은 m2eclipse 플러그인으로 작업하기를 원했기 때문입니다.


다음과 유사한 항목을 갖도록 eclipse.ini 파일을 편집해야합니다.

C:\Java\JDK\1.5\bin\javaw.exe (your location of java executable)
-vmargs
-Xms64m   (based on you memory requirements)
-Xmx1028m

Also remember that in eclipse.ini, anything meant for Eclipse should be before the -vmargs line and anything for JVM should be after the -vmargs line.


The JDK you're pointing to in your eclipse.ini has to match the Eclipse installation.

If you are running a 32- or 64-bit Eclipse, use a 32 or 64-bit Java JDK, respectively.


I'd like to share this little hack:

A click on the Eclipse's icon indicated a problem with the JRE. So, I put this command in the destination field of the icon's properties:

C:\...\eclipse.exe -vm c:\'Program Files'\Java\jdk1.7.0_51\jre\bin\javaw

Thinking that the "'" would solve the problem with the space in the path. That did not function. Then, I tried this command:

C:\...\eclipse.exe -vm c:\Progra~1\Java\jdk1.7.0_51\jre\bin\javaw

with success


Assuming you have a jre folder, which contains bin, lib, etc files copied from a Java Runtime distribution, in the same folder as eclipse.ini, you can set in your eclilpse.ini

-vm
jre\bin\javaw.exe

I know that there exists a command line option, -vm, to specify the path to the executable of the Java runtime. This may be the same as in eclipse.ini.


-startup
plugins/org.eclipse.equinox.launcher_1.3.0.v20140415-2008.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.200.v20140603-1326
-product
org.eclipse.epp.package.jee.product
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
512M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
512m
--launcher.defaultAction
openFile
--launcher.appendVmargs
-vmargs
-Dosgi.requiredJavaVersion=1.6
-Xms2000m
-Xmx3512m

참고URL : https://stackoverflow.com/questions/905611/how-do-i-set-the-eclipse-ini-vm-option

반응형