ColdFusion using Javaloader error

645 Views Asked by At

I have a question regarding calling java class from ColdFusion using Javaloader 1.1.

I attempted to access java class from ColdFusion in a local server, and there was no problem. But when I tried the same thing in office server, I got an error:

"the specified directory mypath\Javaloader/tmp/AEFACE9B-1C6F-6569-2329 could not be created. The most Likely cause of this error that mypath \ / tmp/AEFACE9B-1C6F-6569-2329 already exists on your file system."

And another message

"The error occured in Javaloader.cfc line 269". Javaloader.cfc line 269 is < cfdirectory action="create" directory="#path#" >

what do those error messages mean?

this is my code:

//calling java from coldfusion
<cfscript>
sourcePaths = [expandPath("./src")];

loader = createObject("component", "javaloader.JavaLoader").init(sourceDirectories=sourcePaths);

obj = loader.create("myClass").init();
</cfscript>

I really have no idea. Any solution will be much appreciated. Thank you in advance...

0

There are 0 best solutions below