« Return to Thread: Java and CF

RE: Java and CF

by Maxim Porges :: Rate this Message:

Reply to Author | View in Thread

Andrew,

You *do* need to specify an absolute file path. I got this to work fine on
CF 6.1 running in Tomcat. In this example, the file
"/Users/porgesm/Desktop/C53UCNA.tar" is an absolute path.

<cfset fileReader = CreateObject("Java", "java.io.FileReader").init("/Users/porgesm/Desktop/C53UCNA.tar")>
<cfdump var="#fileReader#">

I was able to accurately reproduce your initial error message by
substituting the first line of my example with the following line:

<cfset fileReader = CreateObject("Java", "java.io.FileReader").init("C53UCNA.tar")>

Best regards,

Maxim Porges

---
You are currently subscribed to cfaussie as: lists@...
To unsubscribe send a blank email to leave-cfaussie-23165F@...
Aussie Macromedia Developers: http://lists.daemon.com.au/

 « Return to Thread: Java and CF