4 Replies Latest reply on May 8, 2012 5:44 AM by jaikiran

    JBOSS AS 7.1 with JDK 1.5 EJB 3.0

    riaworld

      Hi i have an EJB 3.0 JDK 1.5 java application that runs perfecly on JBOSS AS 5.0 but when i migrate to JBOSS AS 7.1 it said java bad version number in .class file.

      Is there any solution to make it works on JBOSS AS 7.1

      Thanks in advance.

        • 1. Re: JBOSS AS 7.1 with JDK 1.5 EJB 3.0
          jaikiran

          You can compile your application against Java 5 and run it against AS7 which requires Java 6 to run. Are you sure you have set the JAVA_HOME path for AS7 to point to Java 6?

          • 2. Re: JBOSS AS 7.1 with JDK 1.5 EJB 3.0
            riaworld

            no i can not remcompile it with JDK 1.6 because it's a very big application and there are jars that are compiled with JDK 1.5 so i understand that there is no solution

            yes yes i have set JAVA_HOME to JDK 6 in jboss as 7

            • 3. Re: JBOSS AS 7.1 with JDK 1.5 EJB 3.0
              jaikiran

              Nizar B.Mansour wrote:

               

              no i can not remcompile it with JDK 1.6 because it's a very big application and there are jars that are compiled with JDK 1.5

              I never said you have to recompile with JDK 1.6. Infact I said the exact opposite:

               

              jaikiran pai wrote:

               

              You can compile your application against Java 5 and run it against AS7 which requires Java 6 to run

              • 4. Re: JBOSS AS 7.1 with JDK 1.5 EJB 3.0
                jaikiran

                Nizar B.Mansour wrote:

                 

                 

                yes yes i have set JAVA_HOME to JDK 6 in jboss as 7

                Post the entire console output including the echo statements that you see. Also post the output of:

                 

                echo $JAVA_HOME

                java -version

                 

                from the command window from where you run the server