Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Calling a .jar from ColdFusion

I have a .jar file that i've placed in my D:\Coldfusion8\wwwroot\web-inf\lib\ directory. The file is abcdef.jar

This is my first time doing this, not sure what the path should be in my createObject().

<cfset abcObj = createObject("java","com.abcdef") />
<cfset result = acbObj.doStuff("123456") />

But when I run it, I get

Object Instantiation Exception.
Class not found: com.vp4jo_b 

What am I missing in the path?

like image 274
Gene R Avatar asked Nov 17 '08 15:11

Gene R


1 Answers

Have you considered using JavaLoader?

like image 61
Adam Tuttle Avatar answered Sep 24 '22 02:09

Adam Tuttle