[opencms-dev] Problems compiling the News Module

Gabriele Vanni Gabriele.Vanni at paconsulting.com
Wed Nov 13 11:36:39 CET 2002


Thanks very much. All compiles successfully.
 
Possibly to help other newbies in compiling this module, here's the batch
file I used to compile files individually.
There is probably a better way, but this one worked well enough for me.
Naturally, you will need to change the paths to suit your configuration.
 
To get the directory structure right, unzip the modules zip file which
creates a directory tree.
Download the source from the CVS (details at the bottom of this email) and
place in same directory as the matching .class files
(for MS windows users) place the following batch file into
...\system\classes and call it using> yourbatchfile.bat
com\opencms\modules\homepage\news\NewsTemplate.java
 
The batch file as I have used it.
javac -classpath
C:\jakarta-tomcat-4.1.12\webapps\opencms\WEB-INF\oclib\opencms.jar;C:\jakart
a-tomcat-4.1.12\webapps\opencms\WEB-INF\oclib\xerces-1_4_4.jar;C:\jakarta-to
mcat-4.1.12\common\lib\servlet.jar;"C:\Documents and Settings\LONGV\My
Documents\PA Specific\PA Website\modules\newsextract\system\classes" %1
 
Cheers
 
Gabe  8 )
 
-----Original Message-----
From: Nico Krause [mailto:Nico.Krause at nsc.eu.com]
Sent: 13 November 2002 10:25
To: 'opencms-dev at www.opencms.org'
Subject: RE: [opencms-dev] Problems compiling the News Module



Search it within the tomcat common/libs directory ... 
Servlet.jar I think. 



-----Original Message----- 
From: Gabriele Vanni [ mailto:Gabriele.Vanni at paconsulting.com
<mailto:Gabriele.Vanni at paconsulting.com> ] 
Sent: Mittwoch, 13. November 2002 11:18 
To: 'opencms-dev at www.opencms.org' 
Subject: RE: [opencms-dev] Problems compiling the News Module 

Hi, 

Thanks for that. It worked a tread.... I should have realised that one. 

Now it's only complaining about not being able to find 
"javax.servlet.http.*", I should be able to find it somewhere. 

Thanks again 

Gabe  8 ) 

-----Original Message----- 
From: Stephan Hartmann [ mailto:beffe at beffe.de <mailto:beffe at beffe.de> ] 
Sent: 12 November 2002 18:45 
To: opencms-dev at www.opencms.org 
Subject: Re: [opencms-dev] Problems compiling the News Module 


Hi, 

you also have to add the directory where your news module's source files 
are located in to the classpath, i.e. the one containig the com 
directory. 

Bye, 
Stephan 

Am Die, 2002-11-12 um 18.09 schrieb Gabriele Vanni: 
> Hi, I'm relatively new to OpenCMS and a bit rusty on Java. 
> 
> I've manually retrieved the source files for the news modules from the 
> online CVS, but find I can't compile them. 
> There seems to be a cross dependency between 
> NewsChannelContentDefinition.java and NewsContentDefinition.java. 
> When I try to compile one, it complains that it can't find the definition 
of 
> the other. 
> 
> I hope someone can help. 
> 
> Other useful bits... 
> o JDK 1.3.1_5 on Win2K 
> o 
> 
http://www.opencms.org/cgi-bin/cvsweb.cgi/opencms/modules/news/src/com/openc
<http://www.opencms.org/cgi-bin/cvsweb.cgi/opencms/modules/news/src/com/open
c>  
> ms/modules/homepage/news/ 
> o I'm trying to compile the files individually using this batch file: 
>    javac -classpath 
> 
C:\jakarta-tomcat-4.1.12\webapps\opencms\WEB-INF\oclib\opencms.jar;C:\jakart

> a-tomcat-4.1.12\webapps\opencms\WEB-INF\oclib\xerces-1_4_4.jar %1 
> o I can't seem to find a build.xml for the news module to use with ant 
> 
> Thanks in advance 
> 
> Gabe  8 ) 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20021113/0ee90c42/attachment.htm>


More information about the opencms-dev mailing list