How to include jar / java files in my coldfusion project. I am currently using this line in me <cfscript>
Catalog
Me looks like this:
website_name |__ Login |__ connection |__ display.cfm |__ twitter |__ com |__ ConfigurationBuilder.java
in my display.cfm file, I call obj in a script like this
<cfscript> configBuilder = createObject("java", "twitter.com.ConfigurationBuilder"); </cfscript>
but it gives me an error in this line when I run display.com , and an error in this
An exception occurred while instantiating a Java object. The class must not be an interface or an abstract class. Error: ''. The error occurred in website_name/login/azam/connection/display.cfm: line 57 57 : configBuilder = createObject("java", "twitter.com.ConfigurationBuilder");
How can I call my java class and how to call its function so that I can call my Twitter function.
user2166307
source share