recompile single class in package
<p>I am running into this problem when trying to recompile a single class inside a package.</p>

<p>Now this class uses global types and some of these global types reference it. So taking it out of the package really isn't an option.</p>

<p>So when I try to compile it with javac alone, I get invalid symbol errors and netbeans shows it is trying to compile things like classespackage.globaltype. Basically it is searching for the global classes inside of the package. Is there anyway to stop it from doing that?</p>

<p>Here is the code:</p>

<p><code>Global</code></p>

<pre><code>public class Global {
    example.Main main;
    public Global(example.Main m) {
        main = m;
    }
}
</code></pre>

<p><code>example.Main</code></p>

<pre><code>package example;

public class Main {
    public static void main(String[] args) {
        Global g = new Global(new Main()); // COMPILE ERROR
    }
}
</code></pre>
