Graham,
You need to have the jetspeed.jar in your classpath for javac while compiling.
for example:

set CLASSPATH=<your path here>/jetspeed.jar
javac HelloWorldPortlet.java

----- Original Message -----
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, August 01, 2001 2:50 PM
Subject: portlet how to


> I am following the how to on bluesunrise. I wrote the sample portlet , at
> D:\Apache\tomcat\webapps\jetspeed\apidocs\org\apache\jetspeed\portal\portlet
> s
> Then added this to jetspeed-config.jcfg:
> <portlet-entry type="instance"name="HelloWorldPortlet"hidden="true">
> <classname>org.apache.jetspeed.portal.portlets.HelloWorldPortlet</classname>
> </portlet-entry>
> Then I compiled HelloWorldPortlet.javac and got these errors on
> compile,could this be because I dont have external internet access?
> The ecs.jar file resides in WEB-INF/lib folder with the 10 other required
> .jar files. Any help is greatly appreciated as I am a newbie,(as if this
> question doesnt make that obvious)
> THANKS PAUL SPENCER for your previous answer to my question.
> Graham
>
> javac HelloWorldPortlet.java
> HelloWorldPortlet.java:1: cannot resolve symbol
> symbol  : class AbstractPortlet
> location: package portlets
> import org.apache.jetspeed.portal.portlets.AbstractPortlet;
>                                            ^
> HelloWorldPortlet.java:2: cannot resolve symbol
> symbol  : class RunData
> location: package util
> import org.apache.turbine.util.RunData;
>                                ^
> HelloWorldPortlet.java:3: package org.apache.ecs does not exist
> import org.apache.ecs.*;
> ^
> HelloWorldPortlet.java:5: cannot resolve symbol
> symbol  : class AbstractPortlet
> location: class HelloWorldPortlet
> public class HelloWorldPortlet extends AbstractPortlet
>                                        ^
> HelloWorldPortlet.java:7: cannot resolve symbol
> symbol  : class RunData
> location: class HelloWorldPortlet
>                 public ConcreteElement getContent (RunData aRunData)
>                                                    ^
> HelloWorldPortlet.java:7: cannot resolve symbol
> symbol  : class ConcreteElement
> location: class HelloWorldPortlet
>                 public ConcreteElement getContent (RunData aRunData)
>                        ^
> HelloWorldPortlet.java:9: cannot resolve symbol
> symbol  : class StringElement
> location: class HelloWorldPortlet
>                                 return  (new StringElement ("Hello World"));
>                                              ^
> 7 errors
>
> D:\Apache\tomcat\webapps\jetspeed\apidocs\org\apache\jetspeed\portal\portlet
> s>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to