3 Replies Latest reply on Mar 10, 2006 3:14 AM by sau

    How to compile a simple portlet

      Hi
      I want to compile a simple portlet from scratch. I have written a Porlet Java class, a JSP and I would like to compile the Java class,create the Jar file, write the portlet descriptors (or modify the descriptors available), set up the War file directory structure, package and deploy the portlet. I would like to know what Jars to include in the CLASSPATH, etc.

      Any assistance in this regard is welcomed. If this question is repeated in the forums I do apologize.

      I have a general idea of doing things. But I would like to know if there is a JBoss Portal specific way of doing this!!

      thanks to all
      ilango

        • 1. Re: How to compile a simple portlet
          sau

          Add JbossPortalHome/..../deploy/jboss-portal.sar/lib/portlet-api-lib.jar, portal-portlet-lib.jar, portal-core-lib.jar. in classpath.

          Everything is same except that you will have to write some jboss-specific descriptors.

          (The JARs I listed is how I do, may be there are some other JARs too).

          • 2. Re: How to compile a simple portlet

            I put all those jars in my classpath. I still can't compile

            Thanks for your help

            • 3. Re: How to compile a simple portlet
              sau

              Check the classpath again. portlet-api-lib contains classes for GenericPortlet, portal-core-lib contains classes for JbossPortlet. I've been using them fine here. Make sure you specify each JAR seperately with correct delimeters in classpath.