title: Launch Java from JRuby script throws TypeError: no public constructors for Java
body: <p>I have a Java application that I am trying to launch from a JRuby script.  I've been googling/t-shooting/iterating through so many solutions - my "basic" script is:</p>
  
  <pre><code>include Java
  require 'c:/nm/bin/h4j.jar'
  module HOLTER
    include_package 'com.nemon.h4j.H4JFrame';
  end
  include_class Java::ComNemonH4j::H4JFrame
  H4JFrame.new
  </code></pre>
  
  <p>This throws the following error:</p>
  
  <pre><code>TypeError: no public constructors for Java::ComNemonH4j::H4JFrame
    (root) at h4j_initialTest.rb:7
  </code></pre>
  
  <p>And I've found that this also throws the same error:</p>
  
  <pre><code>$nm = HOLTER::H4JFrame.new
  </code></pre>
  
  <p>The main constructor for my application is:</p>
  
  <pre><code>public static void main(String argv[])
  {
    captureOutput();
    new H4JFrame(argv);
  }   
  </code></pre>
  
  <p>So what do I need to do to have my script simply launch my application?  Any/all advice and pointers would be GREATLY appreciated!!</p>