Re: CFFUNCTION - Any thoughts??
I got the thumbnailing working on Linux!!I made the jvm.config file changes as laid out on the MM site and on the Rat-web blogthe one thing I didn't do was reboot the serverDOH!!! (welcome to Linux...hehe). Anyways...works likea champ now...thanks to all you helped out Cheers Bryan Stevenson B.Comm. VP Director of E-Commerce Development Electric Edge Systems Group Inc. t. 250.920.8830 e. [EMAIL PROTECTED] - Macromedia Associate Partner www.macromedia.com - Vancouver Island ColdFusion Users Group Founder Director www.cfug-vancouverisland.com - Original Message - From: Ubqtous To: CF-Talk Sent: Tuesday, December 02, 2003 4:19 PM Subject: Re: CFFUNCTION - Any thoughts?? Bryan, On 12/2/2003 at 16:38, you wrote: BS Somebody must have had to do thumbnails on the fly on Linux with BS CFMX 6.1??HELP!!! ;-) I'm still trying to read image height and width on the fly! When searching groups specifically for Linux/MX help I get lots of hits for things totally unrelated to MX coding/administration. I realize the image reading issue is more a Java/OS issue (what libraries/packages are installed, etc), but it has been frustrating nonetheless! The hits I get for Windows/MX are often of no use because CFX/DLLs are the common solution--not as many people bother recreating this functionality using common Java libraries because there's already a Windows DLL written. Massimo's CFC will be great once I figure out what my Linux/MX6.1 installation is missing that his and yours already have. It seems like I need to have X installed even though I never intend to use a GUI to administer my server; I am hoping I can just install libXp.so.6 and whatever it requires without installing X proper. And once I have X or whatever installed, I need to see how to go about making sure MX and its JRE know it's there. HELP!!! indeed :) ~ Ubqtous ~ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: CFFUNCTION - Any thoughts??
nope...that doesn't do it either...aggghh!! Somebody must have had to do thumbnails on the fly on Linux with CFMX 6.1??HELP!!! ;-) TIA Cheers Bryan Stevenson B.Comm. VP Director of E-Commerce Development Electric Edge Systems Group Inc. t. 250.920.8830 e. [EMAIL PROTECTED] - Macromedia Associate Partner www.macromedia.com - Vancouver Island ColdFusion Users Group Founder Director www.cfug-vancouverisland.com - Original Message - From: Massimo, Tiziana e Federica To: CF-Talk Sent: Monday, December 01, 2003 7:50 PM Subject: Re: CFFUNCTION - Any thoughts?? Maybe this is what is discussed in the link Massimo posted earlier: Need X11 for dynamically generated graphics? http://devilm.com/archives/50.html Check also Todd's blog: http://blog.web-rat.com/archives/000171.cfm Massimo Foti Certified Dreamweaver MX Developer Certified Advanced ColdFusion MX Developer http://www.massimocorner.com/ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: CFFUNCTION - Any thoughts??
Bryan, On 12/2/2003 at 16:38, you wrote: BS Somebody must have had to do thumbnails on the fly on Linux with BS CFMX 6.1??HELP!!! ;-) I'm still trying to read image height and width on the fly! When searching groups specifically for Linux/MX help I get lots of hits for things totally unrelated to MX coding/administration. I realize the image reading issue is more a Java/OS issue (what libraries/packages are installed, etc), but it has been frustrating nonetheless! The hits I get for Windows/MX are often of no use because CFX/DLLs are the common solution--not as many people bother recreating this functionality using common Java libraries because there's already a Windows DLL written. Massimo's CFC will be great once I figure out what my Linux/MX6.1 installation is missing that his and yours already have. It seems like I need to have X installed even though I never intend to use a GUI to administer my server; I am hoping I can just install libXp.so.6 and whatever it requires without installing X proper. And once I have X or whatever installed, I need to see how to go about making sure MX and its JRE know it's there. HELP!!! indeed :) ~ Ubqtous ~ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: CFFUNCTION - Any thoughts??
Bryan, I tried this on windows and just get -1 for height and width. (CF 6.1 Ent.) Any ideas? cffunction name=ImageSize returnType=struct access=public cfargument name=FileLoc type=string required=Yes cfset ImageInfo = StructNew() cfset ImageObject = CreateObject(java,javax.swing.ImageIcon).init(ARGUMENTS.FileLoc) cfset ImageInfo.ImgWidth = ImageObject.getIconWidth() cfset ImageInfo.ImgHeight = ImageObject.getIconHeight() cfreturn ImageInfo /cffunction cfset x = ImageSize('clock150.jpg') cfoutput ImageInfo.ImgWidth #ImageInfo.ImgWidth#br ImageInfo.ImgHeight #ImageInfo.ImgHeight#br /cfoutput From: Bryan Stevenson [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Subject: CFFUNCTION - Any thoughts?? Date: Fri, 28 Nov 2003 16:20:46 -0800 Hey All, Below is a CFFUNCTION to check an image's size: cffunction name=ImageSize returnType=struct access=public cfargument name=FileLoc type=string required=Yes cfset ImageInfo = StructNew() cfset ImageObject = CreateObject(java,javax.swing.ImageIcon).init(#ARGUMENTS.FileLoc#) cfset ImageInfo.ImgWidth = ImageObject.getIconWidth() cfset ImageInfo.ImgHeight = ImageObject.getIconHeight() cfreturn ImageInfo /cffunction It works fine on Windows but bails on Linux RedHat 9.0 with CFMX 6.1 Enterprise installed.There error is below.It appears to be having an issue instantiating the object abovebut I'm unsure as to whyany thoughts?? ERROR DETAILS: struct Detail An exception occurred when instantiating a java object. The cause of this exception was that: . Message Object Instantiation Exception. RootCause struct Cause struct Message [empty string] StackTrace java.lang.NoClassDefFoundError at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:141) at java.awt.Toolkit$2.run(Toolkit.java:748) at java.security.AccessController.doPrivileged(Native Method) at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:739) at javax.swing.ImageIcon.init(ImageIcon.java:81) at javax.swing.ImageIcon.init(ImageIcon.java:107) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAcces sorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstruc torAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:274) at coldfusion.runtime.java.JavaProxy.CreateObject(JavaProxy.java:128) at coldfusion.runtime.java.JavaProxy.invoke(JavaProxy.java:56) at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:1622) at cfutility2ecfc1211421247$funcIMAGESIZE.runFunction(/var/www/pmcfcs/utility.c fc:53) at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:338) at coldfusion.runtime.UDFMethod$ReturnTypeFilter.invoke(UDFMethod.java:286) at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java: 250) at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:53) at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:203) at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:359) at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:196) at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:139) at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:1582) at coldfusion.tagext.lang.InvokeTag.doEndTag(InvokeTag.java:327) at coldfusion.runtime.CfJspPage._emptyTag(CfJspPage.java:1872) at cfleg_photo_maint2ecfm1369148617.runPage(/var/www/html/secure/includes/leg_p hoto_maint.cfm:62) at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:147) at coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:357) at coldfusion.runtime.CfJspPage._emptyTag(CfJspPage.java:1871) at cfindex2ecfm1722994938.runPage(/var/www/html/secure/index.cfm:48) at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:147) at coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:357) at coldfusion.filter.CfincludeFilter.invoke(CfincludeFilter.java:62) at coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:107) at coldfusion.filter.RequestMonitorFilter.invoke(RequestMonitorFilter.java:43) at coldfusion.filter.PathFilter.invoke(PathFilter.java:80) at coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:47) at coldfusion.filter.BrowserDebugFilter.invoke(BrowserDebugFilter.java:52) at coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistence Filter.java:28) at coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:35) at coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:43) at coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22) at coldfusion.CfmServlet.service(CfmServlet.java:105) at coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:89) at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:91) at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42) at jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:252) at
Re: CFFUNCTION - Any thoughts??
Bryan, On 12/1/2003 at 08:37, you wrote: It works fine on Windows but bails on Linux RedHat 9.0 with CFMX 6.1 Enterprise installed.There error is below.It appears to be having an issue instantiating the object abovebut I'm unsure as to whyany thoughts?? Side question: I also have a RH9/MX6.1 installation, but it doesn't look like 'javax' is installed by default. How do you get the necessary Java libraries for reading image properties? By installing a Java SDK? If it's in the SDK, will its installation have a negative effect on MX's Java installation, or will they coexist harmoniously? TIA ~ Ubqtous ~ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: CFFUNCTION - Any thoughts??
You got mebut it looks like you may have explained my issue (i.e. the javax library not being installed) ;-) Bryan Stevenson B.Comm. VP Director of E-Commerce Development Electric Edge Systems Group Inc. t. 250.920.8830 e. [EMAIL PROTECTED] - Macromedia Associate Partner www.macromedia.com - Vancouver Island ColdFusion Users Group Founder Director www.cfug-vancouverisland.com - Original Message - From: Ubqtous To: CF-Talk Sent: Monday, December 01, 2003 7:10 AM Subject: Re: CFFUNCTION - Any thoughts?? Bryan, On 12/1/2003 at 08:37, you wrote: It works fine on Windows but bails on Linux RedHat 9.0 with CFMX 6.1 Enterprise installed.There error is below.It appears to be having an issue instantiating the object abovebut I'm unsure as to whyany thoughts?? Side question: I also have a RH9/MX6.1 installation, but it doesn't look like 'javax' is installed by default. How do you get the necessary Java libraries for reading image properties? By installing a Java SDK? If it's in the SDK, will its installation have a negative effect on MX's Java installation, or will they coexist harmoniously? TIA ~ Ubqtous ~ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: CFFUNCTION - Any thoughts??
Massimo you are da man!! Great CFC BTWI cannibalized it for the bits I needed and it works great on Windows and Linux (at least for grabbing image dimensions).I'll try out your thumbnailing code soon as well. Thanks alot because I was starting to wonder if I could pull this off ;-) Cheers Bryan Stevenson B.Comm. VP Director of E-Commerce Development Electric Edge Systems Group Inc. t. 250.920.8830 e. [EMAIL PROTECTED] - Macromedia Associate Partner www.macromedia.com - Vancouver Island ColdFusion Users Group Founder Director www.cfug-vancouverisland.com - Original Message - From: Massimo, Tiziana e Federica To: CF-Talk Sent: Saturday, November 29, 2003 12:19 AM Subject: Re: CFFUNCTION - Any thoughts?? Try this CFC: http://www.cfmentor.com/code/index.cfm?action=""> I never tested it on Linux, but it use the javax.imageio.ImageIO classes instead of Swing. I guess your problem are related to this: http://devilm.com/archives/50.html Massimo Foti Certified Dreamweaver MX Developer Certified Advanced ColdFusion MX Developer http://www.massimocorner.com/ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: CFFUNCTION - Any thoughts??
Glad to hear it helps, and thanks for testing under Linux :-) I am not 100% happy about the image's quality of the thumbnails it produce, I have to dig and see if I find a better solution. Unfortunately I am not a Java expert and many APIs that cover image manipulation are hidden into areas of the JDK I never explored... The good thing about this CFC is that it provides a simple solution that works out of the box on JRE 1.4, without the need to install additional Java stuff Massimo Foti Certified Dreamweaver MX Developer Certified Advanced ColdFusion MX Developer http://www.massimocorner.com/ - Original Message - From: Bryan Stevenson Newsgroups: cf-talk Sent: Monday, December 01, 2003 8:18 PM Subject: Re: CFFUNCTION - Any thoughts?? Massimo you are da man!! Great CFC BTWI cannibalized it for the bits I needed and it works great on Windows and Linux (at least for grabbing image dimensions).I'll try out your thumbnailing code soon as well. Thanks alot because I was starting to wonder if I could pull this off ;-) Cheers Bryan Stevenson B.Comm. [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: CFFUNCTION - Any thoughts??
Bryan, On 12/1/2003 at 14:18, you wrote: BS Great CFC BTWI cannibalized it for the bits I needed and it BS works great on Windows and Linux (at least for grabbing image BS dimensions). Did this CFC require you to install anything extra (i.e. Java SDK or JRE) on your RH9 machine? I had tried this particular CFC before, which is when I discovered I was missing the javax library altogether. ~ Ubqtous ~ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: CFFUNCTION - Any thoughts??
Tiziana, On 12/1/2003 at 15:06, you wrote: MTeF The good thing about this CFC is that it provides a simple MTeF solution that works out of the box on JRE 1.4, without the need MTeF to install additional Java stuff I am very new to Java, but I am pretty sure I don't have JRE 1.4 on my RH9/MX6.1 server. Is this what needs to be installed: http://java.sun.com/j2se/1.4.2/download.html Download J2SE v 1.4.2_02 Linux RPM (or bin) JRE And is there anything I need to do to make sure the JRE doesn't interfere with CF's Java components? TIA ~ Ubqtous ~ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: CFFUNCTION - Any thoughts??
CFMX 6.1 comes with 1.4.1_01 I believe.It's definitely a 1.4, so you should be set already.Of course, it doesn't have the SDK, but it has all the class libraries you'll need for 1.4 compatibility.With CFMX (which came with 1.3), I immediately upgraded all my boxes to 1.4.1_01 (current at the time), but with 6.1, I've left them alone.Never had any problems with the upgrades, but didn't think it was worth it on 6.1. Cheers, barneyb -Original Message- From: Ubqtous [mailto:[EMAIL PROTECTED] Sent: Monday, December 01, 2003 12:33 PM To: CF-Talk Subject: Re: CFFUNCTION - Any thoughts?? Tiziana, On 12/1/2003 at 15:06, you wrote: MTeF The good thing about this CFC is that it provides a simple MTeF solution that works out of the box on JRE 1.4, without the need MTeF to install additional Java stuff I am very new to Java, but I am pretty sure I don't have JRE 1.4 on my RH9/MX6.1 server. Is this what needs to be installed: http://java.sun.com/j2se/1.4.2/download.html Download J2SE v 1.4.2_02 Linux RPM (or bin) JRE And is there anything I need to do to make sure the JRE doesn't interfere with CF's Java components? TIA ~ Ubqtous ~ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: CFFUNCTION - Any thoughts??
NopeI didn't have to install anything extrathat said I didn't setup this server, but am pretty sure it was a straight Linux RedHat 9.0 install. Bryan Stevenson B.Comm. VP Director of E-Commerce Development Electric Edge Systems Group Inc. t. 250.920.8830 e. [EMAIL PROTECTED] - Macromedia Associate Partner www.macromedia.com - Vancouver Island ColdFusion Users Group Founder Director www.cfug-vancouverisland.com - Original Message - From: Ubqtous To: CF-Talk Sent: Monday, December 01, 2003 12:16 PM Subject: Re: CFFUNCTION - Any thoughts?? Bryan, On 12/1/2003 at 14:18, you wrote: BS Great CFC BTWI cannibalized it for the bits I needed and it BS works great on Windows and Linux (at least for grabbing image BS dimensions). Did this CFC require you to install anything extra (i.e. Java SDK or JRE) on your RH9 machine? I had tried this particular CFC before, which is when I discovered I was missing the javax library altogether. ~ Ubqtous ~ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: CFFUNCTION - Any thoughts??
I am very new to Java, but I am pretty sure I don't have JRE 1.4 on my RH9/MX6.1 server. Is this what needs to be installed: If you are running CF 6.1 you are set, no need to install anything else Massimo Foti Certified Dreamweaver MX Developer Certified Advanced ColdFusion MX Developer http://www.massimocorner.com/ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: CFFUNCTION - Any thoughts??
Did this CFC require you to install anything extra (i.e. Java SDK or JRE) on your RH9 machine? I had tried this particular CFC before, which is when I discovered I was missing the javax library altogether. Earlier version (1.2) were designed to work on top of CF 6.0 and JRE 1.3, starting from 1.6 it uses a different set of Java APIs, taking advantage of JRE 1.4 installed alongside CF 6.1. I never tested it on a Unix box, so I have no idea if it may work on your enviroiment or not... All you can do is to give it a try Massimo Foti Certified Dreamweaver MX Developer Certified Advanced ColdFusion MX Developer http://www.massimocorner.com/ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: CFFUNCTION - Any thoughts??
Barney, On 12/1/2003 at 15:40, you wrote: BB CFMX 6.1 comes with 1.4.1_01 I believe.It's definitely a 1.4, so BB you should be set already.Of course, it doesn't have the SDK, BB but it has all the class libraries you'll need for 1.4 BB compatibility.With CFMX (which came with 1.3), I immediately BB upgraded all my boxes to 1.4.1_01 (current at the time), but with BB 6.1, I've left them alone.Never had any problems with the BB upgrades, but didn't think it was worth it on 6.1. If my installation has JRE 1.4.x, shouldn't I be able to 'locate javax' from the command line/terminal? Perhaps the CFMX edition makes a difference--I am running Standard, not Enterprise. ~ Ubqtous ~ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: CFFUNCTION - Any thoughts??
As I understand itthe version won't matter Bryan Stevenson B.Comm. VP Director of E-Commerce Development Electric Edge Systems Group Inc. t. 250.920.8830 e. [EMAIL PROTECTED] - Macromedia Associate Partner www.macromedia.com - Vancouver Island ColdFusion Users Group Founder Director www.cfug-vancouverisland.com - Original Message - From: Ubqtous To: CF-Talk Sent: Monday, December 01, 2003 1:04 PM Subject: Re: CFFUNCTION - Any thoughts?? Barney, On 12/1/2003 at 15:40, you wrote: BB CFMX 6.1 comes with 1.4.1_01 I believe.It's definitely a 1.4, so BB you should be set already.Of course, it doesn't have the SDK, BB but it has all the class libraries you'll need for 1.4 BB compatibility.With CFMX (which came with 1.3), I immediately BB upgraded all my boxes to 1.4.1_01 (current at the time), but with BB 6.1, I've left them alone.Never had any problems with the BB upgrades, but didn't think it was worth it on 6.1. If my installation has JRE 1.4.x, shouldn't I be able to 'locate javax' from the command line/terminal? Perhaps the CFMX edition makes a difference--I am running Standard, not Enterprise. ~ Ubqtous ~ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: CFFUNCTION - Any thoughts??
CFMX doesn't include an SDK, only a JRE.It has all the libraries it needs, but they are set up to use as part of CF, not from external sources.If you really need it, there is a `java` executable, and a compiler (jikes) in the /runtime directory of your install, but if you're going to be doing stuff outside CF, you're probably better off downloading an SDK from java.sun.com of the appropriate version. I'm not sure what the `locate` command is (something like `which`?), but I doubt you'll find 'javax' anywhere.It's nothing more than a directory inside some JAR file (rt.jar, actually), not anything on the filesystem. Cheers, barneyb -Original Message- From: Ubqtous [mailto:[EMAIL PROTECTED] Sent: Monday, December 01, 2003 1:05 PM To: CF-Talk Subject: Re: CFFUNCTION - Any thoughts?? Barney, On 12/1/2003 at 15:40, you wrote: BB CFMX 6.1 comes with 1.4.1_01 I believe.It's definitely a 1.4, so BB you should be set already.Of course, it doesn't have the SDK, BB but it has all the class libraries you'll need for 1.4 BB compatibility.With CFMX (which came with 1.3), I immediately BB upgraded all my boxes to 1.4.1_01 (current at the time), but with BB 6.1, I've left them alone.Never had any problems with the BB upgrades, but didn't think it was worth it on 6.1. If my installation has JRE 1.4.x, shouldn't I be able to 'locate javax' from the command line/terminal? Perhaps the CFMX edition makes a difference--I am running Standard, not Enterprise. ~ Ubqtous ~ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: CFFUNCTION - Any thoughts??
Massimo, Would you be able to share the older version for those of us stuck on 6.0? Greg From: Massimo, Tiziana e Federica [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Subject: Re: CFFUNCTION - Any thoughts?? Date: Mon, 1 Dec 2003 21:57:55 +0100 Did this CFC require you to install anything extra (i.e. Java SDK or JRE) on your RH9 machine? I had tried this particular CFC before, which is when I discovered I was missing the javax library altogether. Earlier version (1.2) were designed to work on top of CF 6.0 and JRE 1.3, starting from 1.6 it uses a different set of Java APIs, taking advantage of JRE 1.4 installed alongside CF 6.1. I never tested it on a Unix box, so I have no idea if it may work on your enviroiment or not... All you can do is to give it a try Massimo Foti Certified Dreamweaver MX Developer Certified Advanced ColdFusion MX Developer http://www.massimocorner.com/ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: CFFUNCTION - Any thoughts??
Bryan, On 12/1/2003 at 16:15, you wrote: BS As I understand itthe version won't matter I do have a /opt/coldfusionmx/runtime/jre/ directory, complete with a README: JAVATM 2 RUNTIME ENVIRONMENT (J2RE), STANDARD EDITION, VERSION 1.4.2_X Perhaps it's just a matter of making sure Massimo's CFC is 'seeing' the JRE... though it doesn't sound like you had to change anything in the CFC to get it to work on your RH9/MX server. Hmmm ~ Ubqtous ~ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: CFFUNCTION - Any thoughts??
Barney, On 12/1/2003 at 16:16, you wrote: BB CFMX doesn't include an SDK, only a JRE.It has all the libraries BB it needs, but they are set up to use as part of CF, not from BB external sources.If you really need it, there is a `java` BB executable, and a compiler (jikes) in the /runtime directory of BB your install, but if you're going to be doing stuff outside CF, BB you're probably better off downloading an SDK from java.sun.com of BB the appropriate version. I am only looking to determine the width, height, and file size of images uploaded through a CF application on my server, so it would be preferable to use the existing JRE instead of installing another, external JRE. Bryan was able to get Massimo's CFC to work with a RH9/MX6.1 installation (like mine), so it must be a problem with my code. BB I'm not sure what the `locate` command is (something like BB `which`?), but I doubt you'll find 'javax' anywhere.It's nothing BB more than a directory inside some JAR file (rt.jar, actually), not BB anything on the filesystem. 'locate' finds directories and files by searching an index (which is maintained with 'updatedb'). I think you're right... I have been running on comments I received the last time I was investigating this that said I should have a file system directory or file named 'javax'. ~ Ubqtous ~ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: CFFUNCTION - Any thoughts??
Massimo, I found the version 1.2 on your site (Wish I could read italian, looks like a great site) and it doesn't seem to work on my 6.0/linux. Works on 6.1/Windows though. Any ideas? Greg From: Massimo, Tiziana e Federica [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Subject: Re: CFFUNCTION - Any thoughts?? Date: Mon, 1 Dec 2003 21:57:55 +0100 Did this CFC require you to install anything extra (i.e. Java SDK or JRE) on your RH9 machine? I had tried this particular CFC before, which is when I discovered I was missing the javax library altogether. Earlier version (1.2) were designed to work on top of CF 6.0 and JRE 1.3, starting from 1.6 it uses a different set of Java APIs, taking advantage of JRE 1.4 installed alongside CF 6.1. I never tested it on a Unix box, so I have no idea if it may work on your enviroiment or not... All you can do is to give it a try Massimo Foti Certified Dreamweaver MX Developer Certified Advanced ColdFusion MX Developer http://www.massimocorner.com/ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: CFFUNCTION - Any thoughts??
Massimo, Would you be able to share the older version for those of us stuck on 6.0? It's on the same server, I keep it there for those pure souls still using 6.0: http://www.cfmentor.com/code/index.cfm?action=""> Be advised version 1.2 require CF Enterprise since it use a JSP file as an hack to pass a NULL to the Java API... Not the most elegant solution and another reason to upgrade to 6.1 asap :-) Hope it will help Massimo Foti Certified Dreamweaver MX Developer Certified Advanced ColdFusion MX Developer http://www.massimocorner.com/ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: CFFUNCTION - Any thoughts??
I'm a total Java neophyte...it works...I'm happy ;-) I'll sort out the details later...hehe Bryan Stevenson B.Comm. VP Director of E-Commerce Development Electric Edge Systems Group Inc. t. 250.920.8830 e. [EMAIL PROTECTED] - Macromedia Associate Partner www.macromedia.com - Vancouver Island ColdFusion Users Group Founder Director www.cfug-vancouverisland.com - Original Message - From: Ubqtous To: CF-Talk Sent: Monday, December 01, 2003 1:31 PM Subject: Re: CFFUNCTION - Any thoughts?? Bryan, On 12/1/2003 at 16:15, you wrote: BS As I understand itthe version won't matter I do have a /opt/coldfusionmx/runtime/jre/ directory, complete with a README: JAVATM 2 RUNTIME ENVIRONMENT (J2RE), STANDARD EDITION, VERSION 1.4.2_X Perhaps it's just a matter of making sure Massimo's CFC is 'seeing' the JRE... though it doesn't sound like you had to change anything in the CFC to get it to work on your RH9/MX server. Hmmm ~ Ubqtous ~ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: CFFUNCTION - Any thoughts??
Bryan was able to get Massimo's CFC to work with a RH9/MX6.1 installation (like mine), so it must be a problem with my code. Have you tried version 1.8 of the CFC? http://www.cfmentor.com/code/index.cfm?action=""> I have the strong feeling you are still referring to an older version (1.2). Please try the latest one and, in case the issue persist, let us know what kind of errors are you getting Massimo Foti Certified Dreamweaver MX Developer Certified Advanced ColdFusion MX Developer http://www.massimocorner.com/ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: CFFUNCTION - Any thoughts??
Bryan, On 12/1/2003 at 16:50, you wrote: BS I'm a total Java neophyte...it works...I'm happy ;-) :) Would you mind posting the code you use to call the CFC? You're the first person I've talked to who has successfully run this CFC on a server configuration similar to my own; I'm pretty sure my code is at fault. ~ Ubqtous ~ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: CFFUNCTION - Any thoughts??
Here's the function I made out of Massimo's CFC: cffunction name=ImageSize returnType=struct access=public cfargument name=FileLoc type=string required=Yes cfset jFileIn =createObject(java,java.io.File).init(ARGUMENTS.FileLoc) cfset ImageInfo = StructNew() cfset ImageObject = createObject(java,javax.imageio.ImageIO).read(jFileIn) cfset ImageInfo.ImgWidth = ImageObject.getWidth() cfset ImageInfo.ImgHeight = ImageObject.getHeight() cfreturn ImageInfo /cffunction Here's how I call it: cfinvoke component=components.utility method=ImageSize FileLoc=#REQUEST.PhotoDir##cffile.serverFile# returnvariable=ImageInfo REQUEST.PhotoDir: An absolute path on the server to the file directory with a trailing slash (D:www\photos\). CFFILE.ServerFile: Name of file just uploaded (i.e. MyPhoto.jpg) Hope that gets ya goin ;-) Cheers Bryan Stevenson B.Comm. VP Director of E-Commerce Development Electric Edge Systems Group Inc. t. 250.920.8830 e. [EMAIL PROTECTED] - Macromedia Associate Partner www.macromedia.com - Vancouver Island ColdFusion Users Group Founder Director www.cfug-vancouverisland.com - Original Message - From: Ubqtous To: CF-Talk Sent: Monday, December 01, 2003 2:14 PM Subject: Re: CFFUNCTION - Any thoughts?? Bryan, On 12/1/2003 at 16:50, you wrote: BS I'm a total Java neophyte...it works...I'm happy ;-) :) Would you mind posting the code you use to call the CFC? You're the first person I've talked to who has successfully run this CFC on a server configuration similar to my own; I'm pretty sure my code is at fault. ~ Ubqtous ~ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: CFFUNCTION - Any thoughts??
Hey Massimo, I've stripped down your thumbnail code into my own function and I'm getting an error on the last line: cfset fileWritten = createObject(java,javax.imageio.ImageIO).write(outBufferedImg, jpg, jFileOut) The error is: The selected method write was not found. Either there are no methods with the specified method name and argument types, or the method write is overloaded with arguments types that ColdFusion can't decipher reliably. If this is a Java object and you verified that the method exists, you may need to use the javacast function to reduce ambiguity. Here's the function as it stands now: cffunction name=ThumbIt access=public cfargument name=FileLoc type=string required=Yes cfset jFileIn = createObject(java,java.io.File).init(ARGUMENTS.FileLoc) !--- build new file loc and name --- cfset DirPath = GetDirectoryFromPath(ARGUMENTS.FileLoc) cfset FileName = GetFileFromPath(ARGUMENTS.FileLoc) cfset jFileOut = DirPath thumb_ FileName !--- set dimiensions --- cfset inBufferedImg = createObject(java,javax.imageio.ImageIO).read(jFileIn) cfset ImgWidth = inBufferedImg.getWidth() cfset ImgHeight = inBufferedImg.getHeight() !--- calculate scale --- cfset Scale = 80 / ImgWidth !--- define thumbnail dimensions --- cfset ScaledWidth = (Scale * ImgWidth) cfset ScaledHeight = (Scale * ImgHeight) !--- create image output --- cfset outBufferedImg = createObject(java,java.awt.image.BufferedImage).init(JavaCast(int, ScaledWidth), JavaCast(int, ScaledHeight), JavaCast(int, 1)) !--- create the AffineTransform --- cfset jTransform = createObject(java,java.awt.geom.AffineTransform).init() cfset temp = jTransform.Scale(Scale, Scale) !--- initialize a Graphics2D object --- cfset jGraphics2D = outBufferedImg.createGraphics() !--- draw the thumbnail --- cfset temp = jGraphics2D.drawRenderedImage(inBufferedImg, jTransform) cfset temp = jGraphics2D.dispose() !--- write the thumbnail image to disk --- cfset fileWritten = createObject(java,javax.imageio.ImageIO).write(outBufferedImg, jpg, jFileOut) /cffunction ARGUMENTS.FileLoc = D:\www\images\photos\my_image.jpg I've put in breaks using cfdump/cfabort and everything seems to work just fine until writing the file?? Thanks in advance for any insight Cheers Bryan Stevenson B.Comm. VP Director of E-Commerce Development Electric Edge Systems Group Inc. t. 250.920.8830 e. [EMAIL PROTECTED] - Macromedia Associate Partner www.macromedia.com - Vancouver Island ColdFusion Users Group Founder Director www.cfug-vancouverisland.com - Original Message - From: Massimo, Tiziana e Federica To: CF-Talk Sent: Saturday, November 29, 2003 12:19 AM Subject: Re: CFFUNCTION - Any thoughts?? Try this CFC: http://www.cfmentor.com/code/index.cfm?action=""> I never tested it on Linux, but it use the javax.imageio.ImageIO classes instead of Swing. I guess your problem are related to this: http://devilm.com/archives/50.html Massimo Foti Certified Dreamweaver MX Developer Certified Advanced ColdFusion MX Developer http://www.massimocorner.com/ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: CFFUNCTION - Any thoughts??
Tiziana, On 12/1/2003 at 16:54, you wrote: MTeF Have you tried version 1.8 of the CFC? MTeF http://www.cfmentor.com/code/index.cfm?action=""> MTeF I have the strong feeling you are still referring to an older MTeF version (1.2). Please try the latest one and, in case the issue MTeF persist, let us know what kind of errors are you getting I was using the old version. Though I still get the following error with v1.8: /opt/coldfusionmx/runtime/jre/lib/i386/libawt.so: libXp.so.6: cannot open shared object file: No such file or directory null brThe error occurred on line 224. Code: (The image and CFC are in the same directory as the calling code) cfscript objImageInfo=createObject(component,tmt_java_img); thisImage=MJK.gif; stImageInfo=objImageInfo.getDimensions(thisImage); /cfscript cfdump var=#stImageInfo# ~ Ubqtous ~ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
SOLVED Re: CFFUNCTION - Any thoughts??
Nevermind Massimo...I sorted it out ;-) I had the wrong value being set for imgFileOut...works great!! Bryan Stevenson B.Comm. VP Director of E-Commerce Development Electric Edge Systems Group Inc. t. 250.920.8830 e. [EMAIL PROTECTED] - Macromedia Associate Partner www.macromedia.com - Vancouver Island ColdFusion Users Group Founder Director www.cfug-vancouverisland.com - Original Message - From: Bryan Stevenson To: CF-Talk Sent: Monday, December 01, 2003 2:32 PM Subject: Re: CFFUNCTION - Any thoughts?? Hey Massimo, I've stripped down your thumbnail code into my own function and I'm getting an error on the last line: cfset fileWritten = createObject(java,javax.imageio.ImageIO).write(outBufferedImg, jpg, jFileOut) The error is: The selected method write was not found. Either there are no methods with the specified method name and argument types, or the method write is overloaded with arguments types that ColdFusion can't decipher reliably. If this is a Java object and you verified that the method exists, you may need to use the javacast function to reduce ambiguity. Here's the function as it stands now: cffunction name=ThumbIt access=public cfargument name=FileLoc type=string required=Yes cfset jFileIn = createObject(java,java.io.File).init(ARGUMENTS.FileLoc) !--- build new file loc and name --- cfset DirPath = GetDirectoryFromPath(ARGUMENTS.FileLoc) cfset FileName = GetFileFromPath(ARGUMENTS.FileLoc) cfset jFileOut = DirPath thumb_ FileName !--- set dimiensions --- cfset inBufferedImg = createObject(java,javax.imageio.ImageIO).read(jFileIn) cfset ImgWidth = inBufferedImg.getWidth() cfset ImgHeight = inBufferedImg.getHeight() !--- calculate scale --- cfset Scale = 80 / ImgWidth !--- define thumbnail dimensions --- cfset ScaledWidth = (Scale * ImgWidth) cfset ScaledHeight = (Scale * ImgHeight) !--- create image output --- cfset outBufferedImg = createObject(java,java.awt.image.BufferedImage).init(JavaCast(int, ScaledWidth), JavaCast(int, ScaledHeight), JavaCast(int, 1)) !--- create the AffineTransform --- cfset jTransform = createObject(java,java.awt.geom.AffineTransform).init() cfset temp = jTransform.Scale(Scale, Scale) !--- initialize a Graphics2D object --- cfset jGraphics2D = outBufferedImg.createGraphics() !--- draw the thumbnail --- cfset temp = jGraphics2D.drawRenderedImage(inBufferedImg, jTransform) cfset temp = jGraphics2D.dispose() !--- write the thumbnail image to disk --- cfset fileWritten = createObject(java,javax.imageio.ImageIO).write(outBufferedImg, jpg, jFileOut) /cffunction ARGUMENTS.FileLoc = D:\www\images\photos\my_image.jpg I've put in breaks using cfdump/cfabort and everything seems to work just fine until writing the file?? Thanks in advance for any insight Cheers Bryan Stevenson B.Comm. VP Director of E-Commerce Development Electric Edge Systems Group Inc. t. 250.920.8830 e. [EMAIL PROTECTED] - Macromedia Associate Partner www.macromedia.com - Vancouver Island ColdFusion Users Group Founder Director www.cfug-vancouverisland.com - Original Message - From: Massimo, Tiziana e Federica To: CF-Talk Sent: Saturday, November 29, 2003 12:19 AM Subject: Re: CFFUNCTION - Any thoughts?? Try this CFC: http://www.cfmentor.com/code/index.cfm?action=""> I never tested it on Linux, but it use the javax.imageio.ImageIO classes instead of Swing. I guess your problem are related to this: http://devilm.com/archives/50.html Massimo Foti Certified Dreamweaver MX Developer Certified Advanced ColdFusion MX Developer http://www.massimocorner.com/ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: CFFUNCTION - Any thoughts??
grrbut it doesn't work on Linux!! Here's the error while thumbnailing: This graphics environment can be used only in the software emulation mode. The error occurred in /var/www/pmcfcs/utility.cfc: line 100 98 : cfset temp = jTransform.Scale(Scale, Scale) 99 : !--- initialize a Graphics2D object --- 100 : cfset jGraphics2D = outBufferedImg.createGraphics() 101 : !--- draw the thumbnail --- 102 : cfset temp = jGraphics2D.drawRenderedImage(inBufferedImg, jTransform)I'm not entirely sure what's wrong hereanybody have any ideas what is needed to get into software emulation mode??ThanksPSfunction below:cffunction name=ThumbIt access=publiccfargument name=FileLoc type=string required=Yescfset jFileIn = createObject(java,java.io.File).init(ARGUMENTS.FileLoc)!--- build new file loc and name ---cfset DirPath = GetDirectoryFromPath(ARGUMENTS.FileLoc)cfset FileName = GetFileFromPath(ARGUMENTS.FileLoc)cfset ThumbFileLoc = DirPath thumb_ FileName cfset jFileOut = createObject(java,java.io.File).init(ThumbFileLoc) !--- set dimiensions --- cfset inBufferedImg = createObject(java,javax.imageio.ImageIO).read(jFileIn)cfset ImgWidth = inBufferedImg.getWidth() cfset ImgHeight = inBufferedImg.getHeight()!--- calculate scale ---cfset Scale = 420 / ImgWidth!--- define thumbnail dimensions ---cfset ScaledWidth = (Scale * ImgWidth) cfset ScaledHeight = (Scale * ImgHeight)!--- create image output ---cfset outBufferedImg = createObject(java,java.awt.image.BufferedImage).init(JavaCast(int, ScaledWidth), JavaCast(int, ScaledHeight), JavaCast(int, 1))!--- create the AffineTransform ---cfset jTransform = createObject(java,java.awt.geom.AffineTransform).init()cfset temp = jTransform.Scale(Scale, Scale) !--- initialize a Graphics2D object ---cfset jGraphics2D = outBufferedImg.createGraphics()!--- draw the thumbnail ---cfset temp = jGraphics2D.drawRenderedImage(inBufferedImg, jTransform)cfset temp = jGraphics2D.dispose()!--- write the thumbnail image to disk ---cfset fileWritten = createObject(java,javax.imageio.ImageIO).write(outBufferedImg, jpg, jFileOut)/cffunction Bryan Stevenson B.Comm. VP Director of E-Commerce Development Electric Edge Systems Group Inc. t. 250.920.8830 e. [EMAIL PROTECTED] - Macromedia Associate Partner www.macromedia.com - Vancouver Island ColdFusion Users Group Founder Director www.cfug-vancouverisland.com - Original Message - From: Bryan Stevenson To: CF-Talk Sent: Monday, December 01, 2003 2:32 PM Subject: Re: CFFUNCTION - Any thoughts?? Hey Massimo, I've stripped down your thumbnail code into my own function and I'm getting an error on the last line: cfset fileWritten = createObject(java,javax.imageio.ImageIO).write(outBufferedImg, jpg, jFileOut) The error is: The selected method write was not found. Either there are no methods with the specified method name and argument types, or the method write is overloaded with arguments types that ColdFusion can't decipher reliably. If this is a Java object and you verified that the method exists, you may need to use the javacast function to reduce ambiguity. Here's the function as it stands now: cffunction name=ThumbIt access=public cfargument name=FileLoc type=string required=Yes cfset jFileIn = createObject(java,java.io.File).init(ARGUMENTS.FileLoc) !--- build new file loc and name --- cfset DirPath = GetDirectoryFromPath(ARGUMENTS.FileLoc) cfset FileName = GetFileFromPath(ARGUMENTS.FileLoc) cfset jFileOut = DirPath thumb_ FileName !--- set dimiensions --- cfset inBufferedImg = createObject(java,javax.imageio.ImageIO).read(jFileIn) cfset ImgWidth = inBufferedImg.getWidth() cfset ImgHeight = inBufferedImg.getHeight() !--- calculate scale --- cfset Scale = 80 / ImgWidth !--- define thumbnail dimensions --- cfset ScaledWidth = (Scale * ImgWidth) cfset ScaledHeight = (Scale * ImgHeight) !--- create image output --- cfset outBufferedImg = createObject(java,java.awt.image.BufferedImage).init(JavaCast(int, ScaledWidth), JavaCast(int, ScaledHeight), JavaCast(int, 1)) !--- create the AffineTransform --- cfset jTransform = createObject(java,java.awt.geom.AffineTransform).init() cfset temp = jTransform.Scale(Scale, Scale) !--- initialize a Graphics2D object --- cfset jGraphics2D = outBufferedImg.createGraphics() !--- draw the thumbnail --- cfset temp = jGraphics2D.drawRenderedImage(inBufferedImg, jTransform) cfset temp = jGraphics2D.dispose() !--- write the thumbnail image to disk --- cfset fileWritten = createObject(java,javax.imageio.ImageIO).write(outBufferedImg, jpg, jFileOut) /cffunction ARGUMENTS.FileLoc = D:\www\images\photos\my_image.jpg I've put in breaks using cfdump/cfabort and everything seems to work just fine until writing the file?? Thanks in advance for any insight Cheers Bryan Stevenson B.Comm. VP Director of E-Commerce Development Electric Edge Systems Group
Re: CFFUNCTION - Any thoughts??
Bryan, On 12/1/2003 at 18:11, you wrote: BS grrbut it doesn't work on Linux!! BS Here's the error while thumbnailing: BS This graphics environment can be used only in the software BS emulation mode. Maybe this is what is discussed in the link Massimo posted earlier: Need X11 for dynamically generated graphics? http://devilm.com/archives/50.html ~ Ubqtous ~ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: CFFUNCTION - Any thoughts??
Tiziana, On 12/1/2003 at 16:54, you wrote: MTeF I have the strong feeling you are still referring to an older version (1.2). MTeF Please try the latest one and, in case the issue persist, let us know what MTeF kind of errors are you getting There is very little to go on for this error, but I did find something* that seems to indicate that X needs to be installed in order to access libXp.so, which is referenced in the error message I got: /opt/coldfusionmx/runtime/jre/lib/i386/libawt.so: libXp.so.6: cannot open shared object file: No such file or directory null brThe error occurred on line 224. I was reading the error message the wrong way. libawt.so isn't the file not being found--libawt.so is trying to find libXp.so and cannot. While I can 'locate' libawt.so, libXp.so is not on my server. Anyone have know if I need to install X in full, or if I can just install libXp.so by itself**? (*) http://groups.google.com/groups?hl=enlr=ie=UTF-8oe=utf-8threadm=887t6q%24k20%241%40news.software.ibm.comrnum=15prev=/groups%3Fq%3Dlibawt.so%26hl%3Den%26lr%3D%26ie%3DUTF-8%26oe%3Dutf-8%26start%3D10%26sa%3DN (**) http://at.rpmfind.net/opsys/linux/RPM/libXp.so.6.html ~ Ubqtous ~ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: CFFUNCTION - Any thoughts??
Massimo, I found the version 1.2 on your site (Wish I could read italian, looks like a great site) and it doesn't seem to work on my 6.0/linux. Works on 6.1/Windows though. Any ideas? No idea, sorry. The website belong to the italian CFUG, it's a pretty good one in my opinion. The CFC instead in written in english, including all the comments. Massimo Foti Certified Dreamweaver MX Developer Certified Advanced ColdFusion MX Developer http://www.massimocorner.com/ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: CFFUNCTION - Any thoughts??
Maybe this is what is discussed in the link Massimo posted earlier: Need X11 for dynamically generated graphics? http://devilm.com/archives/50.html Check also Todd's blog: http://blog.web-rat.com/archives/000171.cfm Massimo Foti Certified Dreamweaver MX Developer Certified Advanced ColdFusion MX Developer http://www.massimocorner.com/ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: CFFUNCTION - Any thoughts??
Try this CFC: http://www.cfmentor.com/code/index.cfm?action=""> I never tested it on Linux, but it use the javax.imageio.ImageIO classes instead of Swing. I guess your problem are related to this: http://devilm.com/archives/50.html Massimo Foti Certified Dreamweaver MX Developer Certified Advanced ColdFusion MX Developer http://www.massimocorner.com/ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: CFFUNCTION - Any thoughts??
I've been unable to get this bit of code working on Linux myself. I'd like to see a solution as well. Also, not that it helps your problem, but no #s necessary here: CreateObject(java,javax.swing.ImageIcon).init(ARGUMENTS.FileLoc) chris From: Bryan Stevenson [mailto:[EMAIL PROTECTED] Sent: Friday, November 28, 2003 4:21 PM To: CF-Talk Subject: CFFUNCTION - Any thoughts?? Hey All, Below is a CFFUNCTION to check an image's size: cffunction name=ImageSize returnType=struct access=public cfargument name=FileLoc type=string required=Yes cfset ImageInfo = StructNew() cfset ImageObject = CreateObject(java,javax.swing.ImageIcon).init(#ARGUMENTS.FileLoc#) cfset ImageInfo.ImgWidth = ImageObject.getIconWidth() cfset ImageInfo.ImgHeight = ImageObject.getIconHeight() cfreturn ImageInfo /cffunction It works fine on Windows but bails on Linux RedHat 9.0 with CFMX 6.1 Enterprise installed. There error is below. It appears to be having an issue instantiating the object abovebut I'm unsure as to whyany thoughts?? ERROR DETAILS: struct Detail An exception occurred when instantiating a java object. The cause of this exception was that: . Message Object Instantiation Exception. RootCause struct Cause struct Message [empty string] StackTrace java.lang.NoClassDefFoundError at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:141) at java.awt.Toolkit$2.run(Toolkit.java:748) at java.security.AccessController.doPrivileged(Native Method) at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:739) at javax.swing.ImageIcon.init(ImageIcon.java:81) at javax.swing.ImageIcon.init(ImageIcon.java:107) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAcces sorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstruc torAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:274) at coldfusion.runtime.java.JavaProxy.CreateObject(JavaProxy.java:128) at coldfusion.runtime.java.JavaProxy.invoke(JavaProxy.java:56) at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:1622) at cfutility2ecfc1211421247$funcIMAGESIZE.runFunction(/var/www/pmcfcs/utility.c fc:53) at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:338) at coldfusion.runtime.UDFMethod$ReturnTypeFilter.invoke(UDFMethod.java:286) at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java: 250) at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:53) at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:203) at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:359) at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:196) at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:139) at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:1582) at coldfusion.tagext.lang.InvokeTag.doEndTag(InvokeTag.java:327) at coldfusion.runtime.CfJspPage._emptyTag(CfJspPage.java:1872) at cfleg_photo_maint2ecfm1369148617.runPage(/var/www/html/secure/includes/leg_p hoto_maint.cfm:62) at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:147) at coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:357) at coldfusion.runtime.CfJspPage._emptyTag(CfJspPage.java:1871) at cfindex2ecfm1722994938.runPage(/var/www/html/secure/index.cfm:48) at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:147) at coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:357) at coldfusion.filter.CfincludeFilter.invoke(CfincludeFilter.java:62) at coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:107) at coldfusion.filter.RequestMonitorFilter.invoke(RequestMonitorFilter.java:43) at coldfusion.filter.PathFilter.invoke(PathFilter.java:80) at coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:47) at coldfusion.filter.BrowserDebugFilter.invoke(BrowserDebugFilter.java:52) at coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistence Filter.java:28) at coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:35) at coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:43) at coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22) at coldfusion.CfmServlet.service(CfmServlet.java:105) at coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:89) at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:91) at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42) at jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:252) at jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:527) at jrun.servlet.jrpp.JRunProxyService.invokeRunnable(JRunProxyService.java:192) at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:451 ) at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)