我已经将 Redhat OpenJDK 安装到我的计算机中,现在当我打开 Eclipse IDE 时,我遇到了问题。
java.lang.NumberFormatException:对于输入字符串:“201-2-redhat”
如何更改 Redhat OpenJDK 版本名称以使 Eclipse 正常运行?
以下是日志:
!SESSION 2019-04-29 11:46:15.415 -----------------------------------------------
eclipse.buildId=4.9.0.I20180906-0745
java.version=1.8.0_201-2-redhat
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_CA
Framework arguments: -product com.rapidclipse.ide.product
Command-line arguments: -os win32 -ws win32 -arch x86_64 -product com.rapidclipse.ide.product
!ENTRY org.eclipse.osgi 4 0 2019-04-29 11:46:18.179
!MESSAGE Application error
!STACK 1
java.lang.NumberFormatException: For input string: "201-2-redhat"
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
at java.lang.Integer.parseInt(Integer.java:580)
at java.lang.Integer.parseInt(Integer.java:615)
at com.rapidclipse.application.VMCheck.checkJavaVersion(VMCheck.java:64)
at com.rapidclipse.application.VMCheck.check(VMCheck.java:17)
at com.rapidclipse.application.RapidclipseApplication.start(RapidclipseApplication.java:112)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:199)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:137)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:107)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:391)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:246)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:659)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:595)
at org.eclipse.equinox.launcher.Main.run(Main.java:1501)