I get a strange Exception when I try to run the WebLogicMBeanMaker, either to
produce my MBean source files or to create the MBean jar file. The error is as
follows:
Compiling these files /home1/bea/weblogic81/server/bin/applications/mbeans/DbAuthenticatorImpl.java
/home1/bea/weblogic81/server/bin/applications/mbeans/DbAuthenticatorMBI.java
/home1/bea/weblogic81/server/bin/applications/mbeans/DbAuthenticatorMBean.java
Exception in thread "main" java.lang.UnsupportedClassVersionError: com/sun/tools/javac/Main
(Unsupported major.minor version 48.0)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:486)
at java.security.SecurClassLoader.defineClass(SecureClassLoader.java:111)
...
...
...
at weblogic.utils.compiler.CompilerInvoker.compileMaybeExit(CompilerInvoker.java:407)
at weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvoker.java:329)
at weblogic.management.commo.WebLogicMBeanMaker.compile(WebLogicMBeanMaker.java:987)
at weblogic.management.commo.WebLogicMBeanMaker.main(WebLogicMBeanMaker.java:796)
Anyone seen this error before? What does it mean and how do I fix it? Any help
is appreciated. Thanks!
- Torin
java -version
You should run JDK1.4.1_03 at least.
Personaly, I use 1.4.2_02-b03.
<java classname="weblogic.management.commo.WebLogicMBeanMaker" fork="true"
failonerror="true">
<jvmarg line="-Dfiles=${dir.mbean.temp} -DMDF=${dir.mbean.temp}/YourAuthenticator.xml
-DcreateStubs=true"/>
<classpath>
<pathelement path="${java.class.path}"/>
<pathelement location="${dir.mbean.temp}"/>
<pathelement location="${dir.lib.mbeantypes}/wlManagement.jar"/>
<pathelement location="${dir.oem}/weblogic/8.1/weblogic.jar"/>
</classpath>
</java>
- Torin
I can not find your "latest" post describing your exception.