JNI4NET Proxygen cannot load/find Java class in simple Java class library?
<p>I have managed to get the sample projects for the <a href="http://jni4net.com/" rel="nofollow noreferrer">JNI4NET tool</a> working by generating some Java proxy classes with the ProxyGen.exe program supplied with it. </p>

<p>I am now trying to translate this working sample into a small test. So far I have created a simple Java class and compiled it into a Java class library jar file. I have done this in Netbeans using Java 1.7 Platform. </p>

<p>The class is below</p>

<pre><code>public class Person 
{
    public String GetName()
    {
        return "Nobody";
    }
}
</code></pre>

<p>The output from ProxyGen simply states</p>

<blockquote>
  <p>Can't load class Person</p>
</blockquote>

<p>Judging by the output I have to assume that ProxyGen has read the jar and recognized the class <code>Person</code> is present but, as it says, "can't load it". Which I am not exactly sure what that means or how its failing.</p>

<p>I feel like I need to supply the <code>.class</code>/<code>.java</code> file to ProxyGen, though this is not done in the sample (which is working). So does this issue possibly have to do with how the jar is compiled? Which again doesn't make sense because as I understand it you can simply unzip jar files to view the source classes?..</p>

<p>Any ideas? </p>