2 Replies Latest reply on Dec 4, 2004 8:14 AM by Bill Burke

    Error - building ejb30 tutorial ,help ME!

    l ml Newbie

      the environmets are:

      ant 1.6.2
      jdk 1.5.0
      ejb3.0 pre2
      jboss4.0.1 rc2

      I've checked java_home,jboss_home,ant path set
      when I build stateless ,get the following :

      compile:
      [javac] Compiling 5 source files to E:\j2ee\jboss-EJB-3.0_Preview_2\docs\tut
      orial\stateless\build\classes
      [javac] E:\j2ee\jboss-EJB-3.0_Preview_2\docs\tutorial\stateless\src\org\jbos
      s\tutorial\stateless\bean\CalculatorBean.java:11: illegal character: \64
      [javac] @Stateless
      [javac] ^
      [javac] E:\j2ee\jboss-EJB-3.0_Preview_2\docs\tutorial\stateless\src\org\jbos
      s\tutorial\stateless\bean\CalculatorLocal.java:11: illegal character: \64
      [javac] @Local
      [javac] ^
      [javac] E:\j2ee\jboss-EJB-3.0_Preview_2\docs\tutorial\stateless\src\org\jbos
      s\tutorial\stateless\bean\CalculatorRemote.java:11: illegal character: \64
      [javac] @Remote
      [javac] ^
      [javac] E:\j2ee\jboss-EJB-3.0_Preview_2\docs\tutorial\stateless\src\org\jbos
      s\tutorial\stateless\bean\CalculatorBean.java:9: cannot access javax.ejb.Statele
      ss
      [javac] bad class file: E:\j2ee\jboss-4.0.1\server\all\deploy\ejb3.deployer\
      jboss-ejb3x.jar(javax/ejb/Stateless.class)
      [javac] class file has wrong version 49.0, should be 47.0
      [javac] Please remove or make sure it appears in the correct subdirectory of
      the classpath.
      [javac] import javax.ejb.Stateless;
      [javac] ^
      [javac] 4 errors

      BUILD FAILED
      E:\j2ee\jboss-EJB-3.0_Preview_2\docs\tutorial\stateless\build.xml:53: Compile fa
      iled; see the compiler error output for details.

      Total time: 5 seconds