Haven't played with jars & CFMX yet so I'm kind of guessing here but...
If you are having troubles with loading the classes initially with <cfobject class="com.lowagie.text.pdf.PdfWriter" name="iTDoc" type="java" action="create"> which is what seems to be happening, by the looks of the error, then the following will also fail. ------- import com.lowagie.text.*; import com.lowagie.text.pdf.PdfWriter; ------- > There is no CLASSPATH variable defined when I type a SET in the > command prompt. > ColdFusion MX is supposed to dynamically load any jar files that > you put in its wwwroot\WEB-INF\lib directory. There is supposed > to be a small performance hit by doing it this way (it checks the > date/time stamps every time it uses it), which is what I meant > when I said that I knew this wasn't the best place for it, but > that it should work. > Are there issues with dynamically loading class files? i.e. that > they just don't work at all? I know nothing about the wwwroot\... directory, but even if CF can find the classes you are still in trouble because they are referencing each other internally (in the JVM). I'm really getting out of my depth here and I don't have time to play around with it just at the moment, but from everything I know about java it looks up paths like com.lowagie.text.pdf.PdfWriter according to what is specified in the class path environment variable. Maybe wwwroot\WEB-INF\lib is automatically set in the class path with your CF install? There is also a class path option in the administrator - maybe that has something to do with it. Maybe you need the Java SDK for this but you can test paths by going to the cmd prompt and running C:\java com.lowagie.text.pdf.PdfWriter If that returns similar errors "Class not found" then you have class path issues. It may be worth installing the Java SDK & Eclipse (probably not on your production machine and testing this lowagie stuff before messing with it in CF. I'm pretty vague on how CFMX works with Java at the moment - maybe someone else can fill in some gaps? Cheers Mark ______________ Mark Stanton Web Production Gruden Pty Ltd Tel: 9956 6388 Mob: 0410 458 201 Fax: 9956 8433 http://www.gruden.com --- You are currently subscribed to cfaussie as: [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] MX Downunder AsiaPac DevCon - http://mxdu.com/
