我正在尝试安装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.access$100(URLClassLoader.java:71)
at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
at java.net.URLClassLoader$1.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$1.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
。
答案 0 :(得分:2)
问题在于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