3 Replies Latest reply on Oct 25, 2004 9:49 AM by tomb_fish

    Compilation error while running

    Faisal Khwaja Newbie

      I have downloaded Jboss 4 and trying to compile/deploy dukes bank application. however, when i try to compile it gives me error:

      [javac] Compiling 3 source files to C:\khwaja\java\projects\j2eetutorial\exa
      [javac] C:\khwaja\java\projects\j2eetutorial\examples\bank\src\com\jboss\eba
      nk\TellerBean.java:15: package com.sun.ebank.ejb.account does not exist
      [javac] import com.sun.ebank.ejb.account.AccountController;
      [javac] ^
      [javac] C:\khwaja\java\projects\j2eetutorial\examples\bank\src\com\jboss\eba
      nk\TellerBean.java:16: package com.sun.ebank.ejb.account does not exist
      [javac] import com.sun.ebank.ejb.account.AccountControllerHome;
      [javac] ^.ejb.account.AccountControllerHome;

      seems like I am missing some jar files....can anyone help....

      thanks in advance

        • 1. Re: Compilation error while running
          Faisal Khwaja Newbie

          Please ignore as I got to compile...problem was the supplementry files from sun has to be in the same directory as jobss's bank application...


          • 2. Re: Compilation error while running
            Luciano Silva Newbie

            I have the same problem.
            What files did you move to the directory?


            • 3. Compilation error
              tomb_fish Newbie

              Hi, I am trying to deploy Duke's Bank app. I've followed the Getting Started with JBoss 4.0 guide, but when I try to compile using ant -f jboss-build.xml compile on WinXP
              I get following output:

              Buildfile: ..\..\j2eetutorial14\examples\bank\jboss-build.xml
               [javac] Compiling 56 source files to D:\ihk\game_design\j2eetutorial14\examples\bank\build
              BUILD FAILED
              D:\ihk\game_design\j2eetutorial14\examples\bank\jboss-build.xml:49: D:\ihk\game_design\j2eetutorial14\examples\bank${jboss.home}\client not found.

              I have also point jboss.home to my installation directory of JBoss in build.properties file:

              # Set the path to the JBoss directory containing the JBoss application server
              # (This is the one containing directories like "bin", "client" etc.)
              # Set the path to the JBoss server environment. For 3.2.x it is under JBoss Home
              # in the server directory either "default" or "all"
              # Set the path to the servlet archive

              What client should I point and where? Does anybody know?