You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-user@portals.apache.org by Mus <m....@man.ac.uk> on 2001/11/22 16:57:51 UTC
compiling a portlet
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:
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.
Jacac HelloWorldPortlet
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
Please help as I do not know why I am getting these errors.
Thanks a million
Mus
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: differences between Reptile & Jetspeed
Posted by Frans Thamura <ft...@yahoo.com>.
Same founder, Kevin,
and if you see the script, several of the script behavior is smiliar.
sad become different project, it must be an integration between them,
and Reptile is still got problem in Windows...
;)
----- Original Message -----
From: "Mehmet Necati AYSAN" <ne...@hotmail.com>
To: "Jetspeed Users List" <je...@jakarta.apache.org>
Sent: Thursday, November 22, 2001 7:14 PM
Subject: differences between Reptile & Jetspeed
> I was studying Jetspeed and I came up with Reptile
>
> I wonder if anyone knows What if anything is relation between
> http://reptile.openprivacy.org
> and Jetspeed
>
> I see they have similarities in technologies used
>
> Anything else?
>
> Thank you
>
> Necati
>
> --
> To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
> For additional commands, e-mail:
<ma...@jakarta.apache.org>
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
differences between Reptile & Jetspeed
Posted by Mehmet Necati AYSAN <ne...@hotmail.com>.
I was studying Jetspeed and I came up with Reptile
I wonder if anyone knows What if anything is relation between
http://reptile.openprivacy.org
and Jetspeed
I see they have similarities in technologies used
Anything else?
Thank you
Necati
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: compiling a portlet
Posted by Chris Kimpton <ki...@yahoo.com>.
Hi,
--- Mus <m....@man.ac.uk> 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: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>