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
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,
?
-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
, 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
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
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
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
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
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
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
: 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
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
, 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
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 /);
. 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
, 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
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
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
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
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 =
20 matches
Mail list logo