安装网络逻辑:不支持的主要次要版本 52.0
installing web logic: Unsupported major minor version 52.0
我正在尝试安装 web logic
(下面指南中的第 3.6 点)
https://docs.oracle.com/cd/E24902_01/doc.91/e18840/install_config_12_1_3.htm#EOHWL224
当运行以下config.cmd文件时:
@ECHO ON
SETLOCAL
@REM Determine the location of this script...
SET SCRIPTPATH=%~dp0
FOR %%i IN ("%SCRIPTPATH%") DO SET SCRIPTPATH=%%~fsi
@REM Delegate to the common delegation script...
CALL "%SCRIPTPATH%\fmwconfig_common.cmd" config_internal.cmd %*
SET RETURN_CODE=%ERRORLEVEL%
pause
IF DEFINED USE_CMD_EXIT (
EXIT %RETURN_CODE%
) ELSE (
EXIT /B %RETURN_CODE%
)
我收到错误:
Exception in thread "main" java.lang.UnsupportedClassVersionError: com/oracle/ci
e/wizard/domain/WLSWizardConfiguration : Unsupported major.minor version 52.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:800)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:14
2)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)
at java.net.URLClassLoader.access0(URLClassLoader.java:71)
at java.net.URLClassLoader.run(URLClassLoader.java:361)
at java.net.URLClassLoader.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:274)
at java.util.ServiceLoader$LazyIterator.next(ServiceLoader.java:363)
at java.util.ServiceLoader.next(ServiceLoader.java:445)
at com.oracle.cie.wizard.WizardController.createWizardConfiguration(Wiza
rdController.java:100)
at com.oracle.cie.wizard.WizardController.main(WizardController.java:67)
Press any key to continue . . .
我该如何解决这个问题?作为参考,我使用 Java 7
.
问题是 Java 版本不匹配。根据此页面 https://en.wikipedia.org/wiki/Java_class_file,这里有 java 个版本:
J2SE 9 = 53
J2SE 8 = 52
J2SE 7 = 51
J2SE 6.0 = 50
J2SE 5.0 = 49
JDK 1.4 = 48
JDK 1.3 = 47
JDK 1.2 = 46
JDK 1.1 = 45
您似乎希望使用 Java 7,即 51,但实际上有 Java 8,即 52
我正在尝试安装 web logic
(下面指南中的第 3.6 点)
https://docs.oracle.com/cd/E24902_01/doc.91/e18840/install_config_12_1_3.htm#EOHWL224
当运行以下config.cmd文件时:
@ECHO ON
SETLOCAL
@REM Determine the location of this script...
SET SCRIPTPATH=%~dp0
FOR %%i IN ("%SCRIPTPATH%") DO SET SCRIPTPATH=%%~fsi
@REM Delegate to the common delegation script...
CALL "%SCRIPTPATH%\fmwconfig_common.cmd" config_internal.cmd %*
SET RETURN_CODE=%ERRORLEVEL%
pause
IF DEFINED USE_CMD_EXIT (
EXIT %RETURN_CODE%
) ELSE (
EXIT /B %RETURN_CODE%
)
我收到错误:
Exception in thread "main" java.lang.UnsupportedClassVersionError: com/oracle/ci
e/wizard/domain/WLSWizardConfiguration : Unsupported major.minor version 52.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:800)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:14
2)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)
at java.net.URLClassLoader.access0(URLClassLoader.java:71)
at java.net.URLClassLoader.run(URLClassLoader.java:361)
at java.net.URLClassLoader.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:274)
at java.util.ServiceLoader$LazyIterator.next(ServiceLoader.java:363)
at java.util.ServiceLoader.next(ServiceLoader.java:445)
at com.oracle.cie.wizard.WizardController.createWizardConfiguration(Wiza
rdController.java:100)
at com.oracle.cie.wizard.WizardController.main(WizardController.java:67)
Press any key to continue . . .
我该如何解决这个问题?作为参考,我使用 Java 7
.
问题是 Java 版本不匹配。根据此页面 https://en.wikipedia.org/wiki/Java_class_file,这里有 java 个版本:
J2SE 9 = 53
J2SE 8 = 52
J2SE 7 = 51
J2SE 6.0 = 50
J2SE 5.0 = 49
JDK 1.4 = 48
JDK 1.3 = 47
JDK 1.2 = 46
JDK 1.1 = 45
您似乎希望使用 Java 7,即 51,但实际上有 Java 8,即 52