2 Replies Latest reply on Feb 12, 2003 7:21 PM by Albert

    jboss-3.2.0RC1_tomcat-4.1.18

    Albert Newbie

      javax.ejb not existe !!

      I am trying to compile a very small Ejb (HelloWorld), I try every thing i can, no way..I have the same error : Javax.ejb package does not existe.

      I install j2ee,jdsk1.4.1, ant 1.5 and jboss-3.2.0RC1_tomcat-4.1.18..all work well
      Have in my path JAVA_HOME, ANT_Home, J2EE_HOME..

      Please what i'm missing?

      Please help !!

        • 1. Re: jboss-3.2.0RC1_tomcat-4.1.18
          Juha Lindfors Master

          Make sure jboss-j2ee.jar (it's in your JBoss installation client/ directory) is in your classpath when you compile. Get rid of J2EE RI.

          • 2. Re: jboss-3.2.0RC1_tomcat-4.1.18
            Albert Newbie

            Thank's Juha,
            Now I can compile with ANT or if i use
            javac -classpath .....giving JBoss/client/jboss-j2ee.jar
            here is my classpath.

            .;C:\j2sdk141\bin;C:\j2sdk141\lib\tools.jar;C:\JBoss\client\jboss-j2ee.jar;C:\JBoss\client\log4j.jar;C:\JBoss\client\jboss-common-client.jar;C:\JBoss\client\jboss-system-client.jar;C:\JBoss\client\jnp-client.jar;C:\JBoss\client\jboss-client.jar;C:\JBoss\client\jbosssx-client.jar;C:\Ant151\bin;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem

            javac -g Hello.java will throw no ejb package, if the file is not an ejb, then it compiles just fine. I am using windows 2000