Hi, --- Mus <[EMAIL PROTECTED]> wrote: > > Thanks all for your help. > However I am not getting far. I want to know if I am doing the > right > things. > > I put all the .jar into the classpath, this is one example:
Use Ant to build your code too - it does all the the classpath stuff for you... > > CLASSPATH=/home/zzpsiadm/portal/jakarta/jakarta-tomcat-4.0.1/webapps/jetspee > d/WEB-INF/turbine-2.2-dev-20010912.jar ; export CLASSPATH > . > . > I put my HellWorldPortlet into /webapps/jetspeed/WEB-INF/classes > and compile > it. > Put your portlet source into /src/java - eg /src/java/HelloWorldPortlet.java > Jacac HelloWorldPortlet > The from the build directory type: ./build.sh war [this calls ant to compile your code and build a web archive based on jetspeed and your portlet] This should give you a war that can be dropped into tomcat/webapps which includes your portlet... ...but you will need to change local-portlets.xreg to include your portlet too... > I am getiing these errors: > > HelloWorldPortlet.java:1: Class > org.apache.jetspeed.portal.portlets.AbstractPortlet not found in > import. > import org.apache.jetspeed.portal.portlets.AbstractPortlet; > ^ > HelloWorldPortlet.java:2: Class org.apache.turbine.util.RunData not > found in > import. > import org.apache.turbine.util.RunData; > ^ > HelloWorldPortlet.java:3: Package org.apache.ecs not found in > import. > import org.apache.ecs.*; > ^ > HelloWorldPortlet.java:4: Superclass > org.apache.jetspeed.portal.portlets.AbstractPortlet of class > HelloWorldPortlet not found. > public class HelloWorldPortlet extends AbstractPortlet > ^ > 4 errors > These are saying that your classpath is not correct... just use ant and it will handle this for you. HTH, Chris ===== Need somewhere to Live in London? - Then go to http://freeflats.com __________________________________________________ Do You Yahoo!? Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month. http://geocities.yahoo.com/ps/info1 -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
