3 Replies Latest reply on Jun 5, 2009 1:14 PM by mike82

    NetBeans Seam Gen - adding library to project

    mike82

      hi,


        I keep trying to use Seam and Netbeans.. I got the plugin, generate new Seam project. Now I want to add some jars, where I have my librarian functions, also some EJBs that are shared in multiple projects. I go to project properties, add them to Java Sources Classpath - ok, IDE says all fine. Then I compile - everything outside is missing! And the only way is to manually modify build.xml.


      Am I right or is there easier way to add outside sources?


      Regards,
      Michal

        • 1. Re: NetBeans Seam Gen - adding library to project
          erisch

          Hi!


          I'm quite new to Seam and it seems that I'm facing the same problem as you describe at the moment :-) Could you find out what you have to do in order to add a library/JAR correctly?


          Thanks in advance!


          Marco

          • 2. Re: NetBeans Seam Gen - adding library to project
            david.salter

            If you're using NetBeans, I find it easier (and more productive) to use seam-gen to generate your projects.


            That way, everything is set up for you automatically and you get all of the features that seam-gen provides (build in testing, project skeleton, hot deploy etc.)

            • 3. Re: NetBeans Seam Gen - adding library to project
              mike82
              @Marco: No, I manually edited build.xml and added directory to list, where I put all neccessary files.

              <property name="my-libs.dir" value="d:/jboss4seam/server/default/deploy/my-libs" />
              <property name="ejb.dir" value="d:/jboss4seam/server/default/deploy" />

              @David: Well, tried that, but couldn't ever see hot deploy... only redeploy :(