2 Replies Latest reply on Apr 23, 2006 8:47 PM by tim5901

    UnsupportedClassVersionError in 1.5.1.GA

    tim5901

      I have installed the JBoss IDE 1.5.1.GA into Eclipse 3.1.2 per the instructions in the JBoss Eclipse IDE Installation Guide. I then followed the steps in the JBoss Eclipse IDE Tutorial up to where I am supposed to build the XDoclet. When I right-click on the project and select Run XDoclet I get the following error.

      Buildfile: /home/tim/devel/workspace31/Tutorial/xdoclet-build.xml
      N10004:

      BUILD FAILED
      java.lang.UnsupportedClassVersionError: xjavadoc/ant/XJavadocTask (Unsupported major.minor version 49.0)

      Total time: 6 seconds

      Here is the jar file that has the XJavadocTask in it. The one downloaded by the install.

      plugins/org.jboss.ide.eclipse.xdoclet.core_1.5.1.GA/xjavadoc-1.5-snapshot050611.jar

      Can anybody help me out?

        • 1. Re: UnsupportedClassVersionError in 1.5.1.GA

          You need to run the XDoclet task with a Java 5.0 VM, otherwise it will give you this error.

          If you must compile your project with Java 1.4 . You can either do two things:

          - Switch your JRE libs in Eclipse to a 1.5 and run XDoclet. After it finishes, switch your JRE back to 1.4 and compile your project.

          Or

          - Download an older version of the xjavadoc-1.5-snapshotxxxxx.jar in Apache Ant so it is possible of running it with java 1.4. Can't remember where I found it exactly, but just google around a bit.

          • 2. Re: UnsupportedClassVersionError in 1.5.1.GA
            tim5901

            yep, that was it. I changed the build to use the 1.5 jre and it worked.

            Thanks!