Success!

Not sure if I did everything the best way, or even the right way, but I have a mailet working. Yay!

Here's what I had to do, for the sake of documenting...

- Download the source files for Java5 SDK and unpack them into my $JAVA_HOME directory.

- Download the GlassFish code repository to get the sources for JavaMail and JAF (.jars weren't working. not sure if they should). I ended up having to manually place a whole bunch of code folders into what I felt were the appropriate places in the JAVA_HOME folder (I took my hints from the javac output.

execute the following commands:
javac /si/james-2.3.2/apps/james/SAR-INF/classes/com/zebraspot/ mailets/VTBList.java -classpath /si/james-2.3.2/MailetSDK/src/java:/ usr/lib/jvm/java-1.5.0-sun -J-Xms256m -J-Xmx256m jar cf /si/james-2.3.2/apps/james/SAR-INF/lib/ com.zebraspot.mailet.jar /si/james-2.3.2/apps/james/SAR-INF/classes/ com/zebraspot/mailets/VTBList.class
/etc/init.d/james restart

You have to put a .class file (a compiled version of your VTBList.java
file in the jar and it has to be placed in the "com/zebraspot/ mailets/"
folder inside the jar.

If you don't want to create a jar you can even place the class file in: si/james-2.3.2/apps/james/SAR-INF/classes/com/zebraspot/mailets/ VTBList.class


Now onto trying to actually customize it...
Thanks for the help so far.

Simon

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to