3 Replies Latest reply on Feb 1, 2003 10:33 AM by m1609

    EJB HelloWord Problem

    hkulaw

      Hi,

      I am very new to J2EE and JBOSS. I am now testing a helloworld example for EJB, but I can't compile my files. I got the following error.

      HelloWorld.java:6: package javax.ejb does not exist
      public interface HelloWorld extends javax.ejb.EJBObject

      How is the problem?

      Thanks in advance.
      Michael

        • 1. Re: EJB HelloWord Problem
          zaheerah

          Hi there!

          frist of all, just to make sure, have you installed your Java 2 SDK enterprise edition on your computer.

          If yes then it looks like ur j2ee installation directory is not in your classpath.

          If ,for example, you installed your j2ee sdk in c:\j2sdkee directory then you can compile your files using the following

          javac -classpath c:\j2sdkee\lib\j2ee.jar <<your class name>>
          you can replace c:\j2sdkee with your directory path and try compiling again.

          Hope it helps ...
          regards,

          Zaheer

          • 2. Re: EJB HelloWord Problem
            joelvogt

            you can also use the jboss/server/default/lib jar files in this case jboss-j2ee.jar.

            • 3. Re: EJB HelloWord Problem
              m1609

              Hi,

              the following tool might be useful for you. You could create EJBs and the neccessary JBoss deployment descriptors.

              http://www.j2eeguru.net/html/j2ee_component_wizard.html