3 Replies Latest reply on Nov 4, 2009 2:43 PM by tkubaska

    Parameterized types are only available if source level is 5.0

      Hello, im trying to deploy clearspace's WAR but when i finish setup i can log in clearspace as user but when i try to enter into /admin ive got this error:

       

      An error occurred at line: 15 in the jsp file: /admin/include/perm-methods.jspf

      Generated servlet error:

      The type List is not generic; it cannot be parameterized with arguments <Community>

       

      An error occurred at line: 15 in the jsp file: /admin/include/perm-methods.jspf

      Generated servlet error:

      Syntax error, parameterized types are only available if source level is 5.0

       

      About SO:

      SO: Fedora 7 (i tried in Fedora 6 and have same problem)

      Java:

      java version "1.5.0"

      gij (GNU libgcj) version 4.1.2 20070502 (Red Hat 4.1.2-12)

      (i tried to put java 1.5.0_12 but same error)

      $JAVA_HOME=/opt/jdk1.5.0_12/

      $PATH=$PATH:/opt/jdk1.5.0_12/bin

       

      Can somebody help me?

       

      Thanks a lot

        • Re: Parameterized types are only available if source level is 5.0

          Hi pablete,

           

          I have found out that even though you have Java 5 installed, the JVM running may be different. Try typing this in the console window: java -version. It will give you the Version of the Runtime Environment, and see what it returns.

           

          -Will

            • Re: Parameterized types are only available if source level is 5.0

              I hope it's OK to respond to this thread. I can start a new one if that is appropriate but this one was recent and concerns my issue.

               

              I am trying to build Eclipse/ECF. We have a build machine on OSU. We added the new Smack version 3.1.0 and get the error...

               

              ERROR in ...org.jivesoftware.smack/.../WorkgroupForm.java

              Syntax error, parameterized types are only available if source level is 1.5

               

              My eclipse shows a Java compliance level of 1.6.Windows->Preferences->Compiler

              and I have jdk1.6.0_16 checked under Installed JREs.

               

              java -version gives me

              java version "1.6.0_16"

              Java(TM) SE Runtime Envirnment (build 1.6.0_16-b01)

              Java HotSpot(TM) 64-Bit Server VM (build 14.2-b01, mixed mode)

               

              We've spent a bunch of time on this today and I'm stuck.

               

              We run on Linux. This is the official Eclipse/ECF build.

              I attached a portion of our log.

               

              This is a headless build with cruisecontrol/ant but used the eclipse described above. It worked before the Smack addition.

               

              I'd really very much appreciate some advice.

               

              -ted