AW: [opencms-dev] Template example: compiling control code
Manfred Pruntsch
manfred.pruntsch at ifcos.com
Tue Jan 29 16:18:34 CET 2002
Hello Andreas,
> Java requires *.jar files to go on the classpath directly, that
> is: by name (not just into the directory)
That was it.
But now I've got another error. The ...\Element.class not found.
---------------------
C:\Programme\tomcat4\jakarta-tomcat-4.0.1\webapps\opencms\WEB-INF\oclib>java
c Cm
sExample4.java
CmsExample4.java:13: cannot access org.w3c.dom.Element
file org\w3c\dom\Element.class not found
templateDocument.setData("greeting","from Java!");
---------------------
Where is this class located. In which package/jar file?
I'm very sorry for my stupid questions. I come from PHP and I'm not
especially familiar with java.
Manfred Pruntsch
----------------------------------------------
IFCOS Institut fur Zell- und Organsimulation GmbH
Friedrich-Barnewitz-Strasse 3
18119 Rostock
phone: +49 (0)381.5196-190
fax: +49 (0)381.5196-137
email: manfred.pruntsch at ifcos.com
> -----Ursprungliche Nachricht-----
> Von: owner-opencms-dev at www.opencms.com
> [mailto:owner-opencms-dev at www.opencms.com]Im Auftrag von Andreas Urra
> Gesendet: Dienstag, 29. Januar 2002 12:00
> An: opencms-dev at www.opencms.com
> Betreff: Re: [opencms-dev] Template example: compiling control code
>
>
> Hello Manfred,
>
> Java requires *.jar files to go on the classpath directly, that
> is: by name (not
> just into the directory)
>
> e.g.
> [...]\opencms\WEB-INF\oclib\opencms.jar
>
> Thats should be it.
>
> Greetings,
>
> Andreas
>
>
>
> Manfred Pruntsch wrote:
>
> > Hello,
> >
> > I'm experiencing with the examples in the template mechanism
> documentation.
> > When I try to compile the Java class that controls the output of the
> > template (page 12) I've got some error messages like this:
> >
> >
> C:\Programme\tomcat4\jakarta-tomcat-4.0.1\webapps\opencms\WEB-INF\
> oclib>%JAV
> > A_HOME%
> > /bin/javac CmsExample4.java
> > CmsExample4.java:1: package com.opencms.template does not exist
> > import com.opencms.template.*;
> > ^
> > CmsExample4.java:2: package com.opencms.file does not exist
> > import com.opencms.file.*;
> > ^
> >
> > It seems that the compiler doesn't find the packages.
> > My Classpath pointed to the ...\opencms\WEB-INF\oclib\
> directory. The file
> > 'opencms.jar' contains the
> > appropriate packages.
> > To avoid this problem I copied the 'opencms.jar' file in the jdk/lib
> > directory...with the same result.
> >
> > What goes wrong? Any advice is welcome.
> >
> > many thanks
> > Manfred
>
>
More information about the opencms-dev
mailing list