<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.6000.16825" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=383591014-08052009><FONT face=Arial
color=#0000ff size=2>Hi Frank</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=383591014-08052009><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=383591014-08052009><FONT face=Arial
color=#0000ff size=2>You could just create a Java class library, and export
it as a .jar file using your IDE (Eclipse, from what I gather). If you
don't know how to do this, you'll find tutorials on the web,
just google a bit. </FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=383591014-08052009><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=383591014-08052009><FONT face=Arial
color=#0000ff size=2>If you then upload the .jar file to your
/system/modules/your.module.name/lib/ folder, you will have your classes
available and ready to use. E.g. if you want to use them in a .jsp
file, all you have to do is import them using the page import
directive: <%@ page
import="your.package.name.YourJavaClassName"%>.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=383591014-08052009><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=383591014-08052009><FONT face=Arial
color=#0000ff size=2>It's strictly speaking not even neccessary to create your
own module, you can just upload your .jar files to any
/system/modules/****/lib folder - though I recommend you add them
to your own modules.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=383591014-08052009><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=383591014-08052009><FONT face=Arial
color=#0000ff size=2>The "drawback" of using .jars is that you'll have to
restart Tomcat (and I assume you're using Tomcat) in order for your
system to be aware that the .jar has been added
or modified. (If you use .class files, I suppose you won't have to restart
after adding or modifying your files - but I can't tell you anything about this
approach, as I've only been using .jar files.)</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=383591014-08052009><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=383591014-08052009><FONT face=Arial
color=#0000ff size=2>Hope this helps.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=383591014-08052009><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=383591014-08052009><FONT face=Arial
color=#0000ff size=2>Cheers, </FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=383591014-08052009><FONT face=Arial
color=#0000ff size=2>Paul</FONT></SPAN></DIV><BR>
<BLOCKQUOTE dir=ltr
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> opencms-dev-bounces@opencms.org
[mailto:opencms-dev-bounces@opencms.org] <B>On Behalf Of </B>Frank
Pertack<BR><B>Sent:</B> 8. mai 2009 15:26<BR><B>To:</B> The OpenCms mailing
list<BR><B>Subject:</B> [opencms-dev] Compiling Java
Sub-Classes<BR></FONT><BR></DIV>
<DIV></DIV>
<P>Hello,<BR><BR>presently I am wasting a lot of time on trying to compile
Java-Classes for OpenCms templates (according to the packt-publishing book
"OpenCms 7 Development".<BR>Unfortunately they only explain, how a Subclass is
developed but there is not a word, how I can compile itand in which directory
I have to copy it in the VFS. I adapted the suppied java-source-file of the
Blog example since I changed the directory in which the index.html resides.
But I don't know how to compile the java class inside eclipse and where to
copy it. There are no ".class"-files in the
"/system/com.deepthoughts.templates"-directory.<BR>So please can anybody help
me to solve this problem?<BR><BR>Thank you in advance<BR><BR><BR>Frank
Pertack<BR><BR><BR>Vater Solution GmbH<BR>Liebigstraße 26<BR>24145
Kiel<BR><BR>Telefon: +49 431 20084-210<BR>Telefax: +49 431 20084-222<BR>Mobil:
+49 151 16353519<BR>mailto: fpertack@vater-gruppe.de<BR><A
href="http://www.vater-gruppe.de">http://www.vater-gruppe.de</A><BR><BR>Amtsgericht
Kiel, HRB 6403 <BR>Geschäftsführer:<BR>Klaus-Hinrich Vater<BR>Michael
Wiese<BR>-----<BR>Diese Email enthält ggfs. vertrauliche und/oder rechtlich
geschützte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese
Email irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und
vernichten Sie diese Email. Das unerlaubte Kopieren sowie die unbefugte
Weitergabe dieser Email sind nicht gestattet.<BR></P></BLOCKQUOTE></BODY></HTML>