1 Reply Latest reply on Jul 9, 2003 5:36 PM by Adrian Brock

    Help: old version of jboss with j2sdk1.4

    nonmin Newbie

      Hello,

      I have met a problem as following:

      We have a system running on jboss2.2.2 and tomcat3.2.2 with jdk1.3. After I change jdk1.3 to j2sdk1.4, while compiling using ant, I get following error message.

      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(Unknown Source)
      at java.security.SecureClassLoader.defineClass(Unknown Source)
      at java.net.URLClassLoader.defineClass(Unknown Source)
      at java.net.URLClassLoader.access$100(Unknown Source)
      at java.net.URLClassLoader$1.run(Unknown Source)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.net.URLClassLoader.findClass(Unknown Source)
      at java.lang.ClassLoader.loadClass(Unknown Source)
      at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
      at java.lang.ClassLoader.loadClass(Unknown Source)
      at java.lang.ClassLoader.loadClassInternal(Unknown Source)
      at java.lang.Class.forName0(Native Method)
      at java.lang.Class.forName(Unknown Source)
      at org.apache.tools.ant.taskdefs.Javac.doModernCompile(Javac.java:501)
      at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:334)
      at org.apache.tools.ant.Target.execute(Target.java:142)
      at org.apache.tools.ant.Project.runTarget(Project.java:818)
      at org.apache.tools.ant.Project.executeTarget(Project.java:532)
      at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:213)
      at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:103)
      at org.apache.tools.ant.Target.execute(Target.java:142)
      at org.apache.tools.ant.Project.runTarget(Project.java:818)
      at org.apache.tools.ant.Project.executeTarget(Project.java:532)
      at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:213)
      at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:103)
      at org.apache.tools.ant.Target.execute(Target.java:142)
      at org.apache.tools.ant.Project.runTarget(Project.java:818)
      at org.apache.tools.ant.Project.executeTarget(Project.java:532)
      at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:213)
      at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:103)
      at org.apache.tools.ant.Target.execute(Target.java:142)
      at org.apache.tools.ant.Project.runTarget(Project.java:818)
      at org.apache.tools.ant.Project.executeTarget(Project.java:532)
      at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:213)
      at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:103)
      at org.apache.tools.ant.Target.execute(Target.java:142)
      at org.apache.tools.ant.Project.runTarget(Project.java:818)
      at org.apache.tools.ant.Project.executeTarget(Project.java:532)
      at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:213)
      at com.truexchange.ant.RequiredProject.doBuild(RequiredProject.java:184)
      at com.truexchange.ant.RequiredProject.execute(RequiredProject.java:493)
      at org.apache.tools.ant.Target.execute(Target.java:142)
      at org.apache.tools.ant.Project.runTarget(Project.java:818)
      at org.apache.tools.ant.Project.executeTarget(Project.java:532)
      at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:213)
      at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:103)
      at com.truexchange.ant.SmartCallTarget.execute(SmartCallTarget.java:47)
      at org.apache.tools.ant.Target.execute(Target.java:142)
      at org.apache.tools.ant.Project.runTarget(Project.java:818)
      at org.apache.tools.ant.Project.executeTarget(Project.java:532)
      at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:213)
      at com.truexchange.ant.RequiredProject.doBuild(RequiredProject.java:184)
      at com.truexchange.ant.RequiredProject.execute(RequiredProject.java:493)
      at org.apache.tools.ant.Target.execute(Target.java:142)
      at org.apache.tools.ant.Project.runTarget(Project.java:818)
      at org.apache.tools.ant.Project.executeTarget(Project.java:532)
      at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:213)
      at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:103)
      at com.truexchange.ant.SmartCallTarget.execute(SmartCallTarget.java:47)
      at org.apache.tools.ant.Target.execute(Target.java:142)
      at org.apache.tools.ant.Project.runTarget(Project.java:818)
      at org.apache.tools.ant.Project.executeTarget(Project.java:532)
      at org.apache.tools.ant.Project.executeTargets(Project.java:506)
      at org.apache.tools.ant.Main.runBuild(Main.java:420)
      at org.apache.tools.ant.Main.main(Main.java:149)
      com/sun/tools/javac/Main (Unsupported major.minor version 48.0)

      I am not sure whether it is because of old version of joss or tomcat or ant or jdk. Any hint is really appreciated.

      Thanks a million.