title: How to create Java object in CFSCRIPT?
body: <p>I am using ColdFusion 9.1.0</p>
  
  <p>I am trying to create a java object using CFSCRIPT and I just can't get the right combination of stuff to work.</p>
  
  <p>This works perfectly:</p>
  
  <pre><code>&lt;cfobject action="create" type="Java" class="CyberSource" name="auth"&gt;
  &lt;cfset VARIABLES.ResponseString = auth.runTransaction(LOCAL.PropsFile,LOCAL.MyXML)&gt;
  </code></pre>
  
  <p>When I do this, I get an error:</p>
  
  <pre><code>LOCAL.MyObject = createObject("java", "CyberSource.auth");
  LOCAL.ResponseString = auth.runTransaction(LOCAL.PropsFile,LOCAL.MyXML);
  </code></pre>
  
  <p>This is the error I get:</p>
  
  <pre><code>Object Instantiation Exception.
  Class not found: CyberSource.auth
  </code></pre>
  
  <p>The object is an external piece of code available to ColdFusion. I don't see what the problem is. Do you?</p>