weblogic10.3 关于jdk的更换
背景:我的weblogic版本为10.3,它默认的jdk为1.6,由于我本地环境的默认的jdk为1.5,
我在采用weblogic10.3创建域的时候就选择了我本地默认环境的jdk1.5。
问题:当我启动weblogic10.3的时候却报出:
starting weblogic with Java version:java version "1.5.0_08"Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_08-b03)Java HotSpot(TM) Client VM (build 1.5.0_08-b03, mixed mode, sharing)Starting WLS with line:C:\PROGRA~1\JAVA\JDK15~1.0_0\bin\java -client -Xms256m -Xmx512m -XX:CompileThreshold=8000 -XX:PermSize=48m -XX:MaxPermSize=128m -Dweblogic.Name=AdminServer -Djava.security.policy=D:\oracle\MIDDLE~1\WLSERV~1.3\server\lib\weblogic.policy-Xverify:none -da -Dplatform.home=D:\oracle\MIDDLE~1\WLSERV~1.3 -Dwls.home=D:\oracle\MIDDLE~1\WLSERV~1.3\server -Dweblogic.home=D:\oracle\MIDDLE~1\WLSERV~1.3\server -Dweblogic.management.discover=true -Dwlw.iterativeDev= -Dwlw.testConsole= -Dwlw.logErrorsToConsole= -Dweblogic.ext.dirs=d:\oracle\MIDDLE~1\patch_wls1032\profiles\default\sysext_manifest_classpath weblogic.Server<2012-5-16 下午03时55分59秒 CST> <Info> <WebLogicServer> <BEA-000377> <StartingWebLogic Server with Java HotSpot(TM) Client VM Version 1.5.0_08-b03 from Sun Microsystems Inc.><2012-5-16 下午03时55分59秒 CST> <Critical> <WebLogicServer> <BEA-000386> <Server subsystem failed. Reason: java.lang.UnsupportedClassVersionError: Bad version number in .class filejava.lang.UnsupportedClassVersionError: Bad version number in .class file at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:620) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124) at java.net.URLClassLoader.defineClass(URLClassLoader.java:260) at java.net.URLClassLoader.access$100(URLClassLoader.java:56) at java.net.URLClassLoader$1.run(URLClassLoader.java:195) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:164) at weblogic.kernel.FinalThreadLocalList.initialize(FinalThreadLocalList.java:44) at weblogic.t3.srvr.PreConfigBootService.start(PreConfigBootService.java:70) at weblogic.t3.srvr.ServerServicesManager.startService(ServerServicesManager.java:461) at weblogic.t3.srvr.ServerServicesManager.startInStandbyState(ServerServicesManager.java:166) at weblogic.t3.srvr.T3Srvr.initializeStandby(T3Srvr.java:749) at weblogic.t3.srvr.T3Srvr.startup(T3Srvr.java:488) at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:446) at weblogic.Server.main(Server.java:67)>