RE: Java/CF Question

2006-09-13 Thread Eric Roberts
Make sure you restart CF server after adding class paths and I would assume adding classes to existing paths... Eric -Original Message- From: loathe [mailto:[EMAIL PROTECTED] Sent: Monday, 11 September 2006 16:50 To: CF-Talk Subject: RE: Java/CF Question Helps a bunch thanks. Now I

Re: Java/CF Question

2006-09-11 Thread Rob Wilkerson
You can put the class file anywhere in your classpath. Your classpath is defined in your jvm.config file in the java.classpath setting. Within a createObject() call, you'd reference the path to the class file from your base path. For example, your classpath points to : e:\path\to\my\classes,

RE: Java/CF Question

2006-09-11 Thread loathe
? -Original Message- From: Rob Wilkerson [mailto:[EMAIL PROTECTED] Sent: Monday, September 11, 2006 5:40 PM To: CF-Talk Subject: Re: Java/CF Question You can put the class file anywhere in your classpath. Your classpath is defined in your jvm.config file

Re: Java/CF Question

2006-09-11 Thread Rob Wilkerson
, 2006 5:40 PM To: CF-Talk Subject: Re: Java/CF Question You can put the class file anywhere in your classpath. Your classpath is defined in your jvm.config file in the java.classpath setting. Within a createObject() call, you'd reference the path to the class file from your base path

Re: Java/CF Question

2006-09-11 Thread Dan Plesse
Wilkerson [mailto:[EMAIL PROTECTED] Sent: Monday, September 11, 2006 5:40 PM To: CF-Talk Subject: Re: Java/CF Question You can put the class file anywhere in your classpath. Your classpath is defined in your jvm.config file in the java.classpath setting. Within a createObject

Re: Java/CF Question

2006-08-16 Thread Mullai Subbiah
I created a Java Class within a package. I included the location in the classpath upto classes directory using CF Admin C: - Java - classes - XPA - bin - dateRange - abc.class In CF I created an object createObject(java, XPA.bin.dateRange.abc); No class found was thrown. I stripped the package

Re: Java/CF Question

2006-08-16 Thread Denny Valliant
On 8/15/06, loathe [EMAIL PROTECTED] wrote: Great ideas. I figure I will end up going with the inline example that was shown in another response. I know one of the guys that worked on the Poi project, I'll try and hook you guys up if you're interested. Thanks for the offer! I think POI

Re: Java/CF Question

2006-08-15 Thread Denny Valliant
Yo Loathe, nice addy. :-) If you're wanting to get into Java with CF, and wanting to use java classes you roll yourself, I'd say have a look at JDT and class loaders. That way you can compile your .java file right from a .cfm, editing both at the same time. I like that better than compiling the

RE: Java/CF Question

2006-08-15 Thread loathe
Excellent, thanks. -Original Message- From: Mark Mandel [mailto:[EMAIL PROTECTED] Sent: Monday, August 14, 2006 7:42 PM To: CF-Talk Subject: Re: Java/CF Question Just for some reading, here is a post on using a BufferedReader (so you can read line by line) http

RE: Java/CF Question

2006-08-15 Thread loathe
I like that, it's all inline, no external classes to worry about. I might have to go with that. -Original Message- From: Dan Plesse [mailto:[EMAIL PROTECTED] Sent: Monday, August 14, 2006 10:27 PM To: CF-Talk Subject: Re: Java/CF Question For my biotech stock searching program

RE: Java/CF Question

2006-08-15 Thread loathe
: Tuesday, August 15, 2006 4:17 AM To: CF-Talk Subject: Re: Java/CF Question Yo Loathe, nice addy. :-) If you're wanting to get into Java with CF, and wanting to use java classes you roll yourself, I'd say have a look at JDT and class loaders. That way you can compile your .java file right

RE: Java/CF Question

2006-08-15 Thread loathe
on to the real fun, talking to the mainframe on the other side :) -Original Message- From: loathe [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 15, 2006 10:40 AM To: CF-Talk Subject: RE: Java/CF Question I like that, it's all inline, no external classes to worry about. I might

Re: Java/CF Question

2006-08-15 Thread Dan Plesse
, August 15, 2006 10:40 AM To: CF-Talk Subject: RE: Java/CF Question I like that, it's all inline, no external classes to worry about. I might have to go with that. -Original Message- From: Dan Plesse [mailto:[EMAIL PROTECTED] Sent: Monday, August 14, 2006 10:27 PM To: CF

Re: Java/CF Question

2006-08-15 Thread Dan Plesse
Here is another example using while and cfscript. cfscript reader = createObject(java, java.io.BufferedReader).init(createObject(java, java.io.FileReader).init(C:\destroyChildAt.txt)); line = ; while(isDefined(line)){ writeOutput(line br /);

RE: Java/CF Question

2006-08-15 Thread Loathe
. I'm going to have to borrow that :) You should write up a comment on that blog. -Original Message- From: Dan Plesse [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 15, 2006 12:22 PM To: CF-Talk Subject: Re: Java/CF Question Thanks Loathe the isDefined() null test is better

Re: Java/CF Question

2006-08-15 Thread Dan Plesse
, 2006 12:22 PM To: CF-Talk Subject: Re: Java/CF Question Thanks Loathe the isDefined() null test is better then causing errors unnecessarily with EOF. They should update that blog. I like your new spin but cfscript does not have any advantages over CFML tags because it all

Re: Java/CF Question

2006-08-14 Thread Jerry Johnson
2200 lines? are they REALLY long? Or do you mean 22 million lines? If they are 2200 reasonably short lines (thousand chars per line), CF shouldn't even blip. (If you want to try this as a nice exercise, then never mind.) Of course, I typically do this work now in a DTS package in sql server, so

RE: Java/CF Question

2006-08-14 Thread loathe
Message- From: Jerry Johnson [mailto:[EMAIL PROTECTED] Sent: Monday, August 14, 2006 4:56 PM To: CF-Talk Subject: Re: Java/CF Question 2200 lines? are they REALLY long? Or do you mean 22 million lines? If they are 2200 reasonably short lines (thousand chars per line), CF shouldn't even

Re: Java/CF Question

2006-08-14 Thread Mark Mandel
Just for some reading, here is a post on using a BufferedReader (so you can read line by line) http://www.compoundtheory.com/?action=displayPostID=54 You'll need to wrap it around your fileReader, but that should work for you. HTH Mark On 8/15/06, loathe [EMAIL PROTECTED] wrote: Well, in

Re: Java/CF Question

2006-08-14 Thread Dan Plesse
For my biotech stock searching program which hunts the NASDAQ for winners I do a line by line reading using the above objects. here are some code stuff to play with cfset java_io_StringReader = CreateObject(java, java.io.StringReader ).init(cfhttp.filecontent) cfset java_io_BufferedReader =