title: Method was not found, Coldfusion 11, CreateObject
body: <p>I have a <code>.cfm</code> file with the following code:</p>
  
  <pre><code>&lt;cfset myObj=CreateObject( "java", "Test" )/&gt;
  &lt;cfset a = myObj.init() &gt;
  &lt;cfoutput&gt;
      #a.hello()#
  &lt;/cfoutput&gt;
  &lt;cfset b = a.testJava() &gt;
  
  &lt;cfoutput&gt;
      #testJava()#
  &lt;/cfoutput&gt;
  </code></pre>
  
  <p>This references a <code>Java</code> class file:</p>
  
  <pre><code>public class Test
  {
      private int x = 0;
      public Test(int x) {
              this.x = x;
      }
      public String testJava() {
              return "Hello Java!!";
      }
      public int hello() {
              return 5;
      }
  }
  </code></pre>
  
  <p>I get the error:</p>
  
  <pre><code>The hello method was not found.
  
  Either there are no methods with the specified method name and argument types or the hello method is overloaded with argument types that ColdFusion cannot decipher reliably.
  ColdFusion found 0 methods that match the provided arguments. If this is a Java object and you verified that the method exists, use the javacast function to reduce ambiguity.
  </code></pre>
  
  <p>I have tried many different ways and have followed the documentation exactly, <a href="http://help.adobe.com/en_US/ColdFusion/9.0/Developing/WSc3ff6d0ea77859461172e0811cbec14231-7fcc.html#WSD10AD02C-A42F-46d9-9E82-0FFD6BD490F1" rel="nofollow">here</a>. The <code>.class</code> file <strong>is</strong> in the correct location because I FNF error is thrown if the file is removed.</p>
  
  <p>I have also attempted using a <code>cfobject</code> tag in a similar manner with no luck. None of the methods are found. Any ideas?</p>
  
  <p><em>Coldfusion 11, Hotfix 7</em></p>