<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<TITLE>RE: [opencms-dev] Problems compiling the News Module</TITLE>
<META content="MSHTML 6.00.2712.300" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=428572710-13112002><FONT face=Arial color=#0000ff size=2>Thanks
very much. All compiles successfully.</FONT></SPAN></DIV>
<DIV><SPAN class=428572710-13112002><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=428572710-13112002><FONT face=Arial color=#0000ff
size=2>Possibly to help other newbies in compiling this module, here's the batch
file I used to compile files individually.</FONT></SPAN></DIV>
<DIV><SPAN class=428572710-13112002><FONT face=Arial color=#0000ff size=2>There
is probably a better way, but this one worked well enough for
me.</FONT></SPAN></DIV>
<DIV><SPAN class=428572710-13112002><FONT face=Arial color=#0000ff
size=2>Naturally, you will need to change the paths to suit your
configuration.</FONT></SPAN></DIV>
<DIV><SPAN class=428572710-13112002><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=428572710-13112002><FONT face=Arial color=#0000ff size=2>To get
the directory structure right, unzip the modules zip file which creates a
directory tree.</FONT></SPAN></DIV>
<DIV><SPAN class=428572710-13112002><FONT face=Arial color=#0000ff
size=2>Download the source from the CVS (details at the bottom of this email)
and place in same directory as the matching .class files</FONT></SPAN></DIV>
<DIV><SPAN class=428572710-13112002><FONT face=Arial color=#0000ff size=2>(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</FONT></SPAN></DIV>
<DIV><SPAN class=428572710-13112002><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=428572710-13112002><FONT face=Arial color=#0000ff size=2>The
batch file as I have used it.</FONT></SPAN></DIV>
<DIV><SPAN class=428572710-13112002><FONT face=Arial color=#0000ff size=2>javac
-classpath
C:\jakarta-tomcat-4.1.12\webapps\opencms\WEB-INF\oclib\opencms.jar;C:\jakarta-tomcat-4.1.12\webapps\opencms\WEB-INF\oclib\xerces-1_4_4.jar;C:\jakarta-tomcat-4.1.12\common\lib\servlet.jar;"C:\Documents
and Settings\LONGV\My Documents\PA Specific\PA
Website\modules\newsextract\system\classes" %1</FONT></SPAN></DIV>
<DIV><SPAN class=428572710-13112002><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=428572710-13112002><FONT face=Arial color=#0000ff
size=2>Cheers</FONT></SPAN></DIV>
<DIV><SPAN class=428572710-13112002><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=428572710-13112002><FONT face=Arial color=#0000ff
size=2>Gabe 8 )</FONT></SPAN></DIV>
<DIV><SPAN class=428572710-13112002><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma
size=2>-----Original Message-----<BR><B>From:</B> Nico Krause
[mailto:Nico.Krause@nsc.eu.com]<BR><B>Sent:</B> 13 November 2002
10:25<BR><B>To:</B> 'opencms-dev@www.opencms.org'<BR><B>Subject:</B> RE:
[opencms-dev] Problems compiling the News Module<BR><BR></FONT></DIV>
<P><FONT size=2>Search it within the tomcat common/libs directory ...</FONT>
<BR><FONT size=2>Servlet.jar I think.</FONT> </P><BR><BR>
<P><FONT size=2>-----Original Message-----</FONT> <BR><FONT size=2>From:
Gabriele Vanni [<A
href="mailto:Gabriele.Vanni@paconsulting.com">mailto:Gabriele.Vanni@paconsulting.com</A>]
</FONT><BR><FONT size=2>Sent: Mittwoch, 13. November 2002 11:18</FONT> <BR><FONT
size=2>To: 'opencms-dev@www.opencms.org'</FONT> <BR><FONT size=2>Subject: RE:
[opencms-dev] Problems compiling the News Module</FONT> </P>
<P><FONT size=2>Hi,</FONT> </P>
<P><FONT size=2>Thanks for that. It worked a tread.... I should have realised
that one.</FONT> </P>
<P><FONT size=2>Now it's only complaining about not being able to find</FONT>
<BR><FONT size=2>"javax.servlet.http.*", I should be able to find it
somewhere.</FONT> </P>
<P><FONT size=2>Thanks again</FONT> </P>
<P><FONT size=2>Gabe 8 )</FONT> </P>
<P><FONT size=2>-----Original Message-----</FONT> <BR><FONT size=2>From: Stephan
Hartmann [<A href="mailto:beffe@beffe.de">mailto:beffe@beffe.de</A>]</FONT>
<BR><FONT size=2>Sent: 12 November 2002 18:45</FONT> <BR><FONT size=2>To:
opencms-dev@www.opencms.org</FONT> <BR><FONT size=2>Subject: Re: [opencms-dev]
Problems compiling the News Module</FONT> </P><BR>
<P><FONT size=2>Hi,</FONT> </P>
<P><FONT size=2>you also have to add the directory where your news module's
source files</FONT> <BR><FONT size=2>are located in to the classpath, i.e. the
one containig the com</FONT> <BR><FONT size=2>directory.</FONT> </P>
<P><FONT size=2>Bye,</FONT> <BR><FONT size=2>Stephan</FONT> </P>
<P><FONT size=2>Am Die, 2002-11-12 um 18.09 schrieb Gabriele Vanni:</FONT>
<BR><FONT size=2>> Hi, I'm relatively new to OpenCMS and a bit rusty on
Java.</FONT> <BR><FONT size=2>> </FONT><BR><FONT size=2>> I've manually
retrieved the source files for the news modules from the</FONT> <BR><FONT
size=2>> online CVS, but find I can't compile them.</FONT> <BR><FONT
size=2>> There seems to be a cross dependency between</FONT> <BR><FONT
size=2>> NewsChannelContentDefinition.java and
NewsContentDefinition.java.</FONT> <BR><FONT size=2>> When I try to compile
one, it complains that it can't find the definition</FONT> <BR><FONT
size=2>of</FONT> <BR><FONT size=2>> the other.</FONT> <BR><FONT size=2>>
</FONT><BR><FONT size=2>> I hope someone can help.</FONT> <BR><FONT
size=2>> </FONT><BR><FONT size=2>> Other useful bits...</FONT> <BR><FONT
size=2>> o JDK 1.3.1_5 on Win2K</FONT> <BR><FONT size=2>> o</FONT>
<BR><FONT size=2>></FONT> <BR><FONT size=2><A
href="http://www.opencms.org/cgi-bin/cvsweb.cgi/opencms/modules/news/src/com/openc"
target=_blank>http://www.opencms.org/cgi-bin/cvsweb.cgi/opencms/modules/news/src/com/openc</A></FONT>
<BR><FONT size=2>> ms/modules/homepage/news/</FONT> <BR><FONT size=2>> o
I'm trying to compile the files individually using this batch file:</FONT>
<BR><FONT size=2>> javac -classpath</FONT> <BR><FONT
size=2>></FONT> <BR><FONT
size=2>C:\jakarta-tomcat-4.1.12\webapps\opencms\WEB-INF\oclib\opencms.jar;C:\jakart</FONT>
<BR><FONT size=2>>
a-tomcat-4.1.12\webapps\opencms\WEB-INF\oclib\xerces-1_4_4.jar %1</FONT>
<BR><FONT size=2>> o I can't seem to find a build.xml for the news module to
use with ant</FONT> <BR><FONT size=2>> </FONT><BR><FONT size=2>> Thanks in
advance</FONT> <BR><FONT size=2>> </FONT><BR><FONT size=2>> Gabe 8
)</FONT> </P></BODY></HTML>