Sounds like it can't find the 'javax.swing.ImageIcon' class.
What are you Java and JVM setting on the server?
Mark
------------------------------------------------------------------
[EMAIL PROTECTED]
ICQ: 3094740
Safe From Bees
[ www.safefrombees.com ]
Quoting Brad Apps <[EMAIL PROTECTED]>:
> Yea Sorry Guys,
>
> It is not my coding unfortunately, I am trying to follow up a job. The
> only unusual thing is this:
>
> <cfscript>
> function getImageDimensions(sFile) {
> var strRtn = structNew();
> var oImage = createObject("java","javax.swing.ImageIcon").init(sFile);
> strRtn.width = oImage.getIconWidth();
> strRtn.height = oImage.getIconHeight();
> return strRtn;
> }
> </cfscript>
>
> It works on windows but we are doing testing on a red hat server with
> apache 2.0 and CFMX 6.1. Thanks.
>
> ---
> You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
> To unsubscribe send a blank email to [EMAIL PROTECTED]
>
> MXDU2004 + Macromedia DevCon AsiaPac + Sydney, Australia
> http://www.mxdu.com/ + 24-25 February, 2004
>
>
>
---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]
MXDU2004 + Macromedia DevCon AsiaPac + Sydney, Australia
http://www.mxdu.com/ + 24-25 February, 2004