title: Sending information from Java to Java script?
body: <p>I've been trying to send information from Java to Java script using the JSObject but i keep receiving a java.lang.ClassNotFoundException: com.sun.deploy.appcontext.AppContext exception i'm using netbeans 7.1.</p>
  
  <p>Here is the full stack trace</p>
  
  <pre><code>java.lang.NoClassDefFoundError: com/sun/deploy/appcontext/AppContext
      at MapTest.MapApplet.init(MapApplet.java:23)
      at sun.applet.AppletPanel.run(AppletPanel.java:434)
      at java.lang.Thread.run(Thread.java:722)
  Caused by: java.lang.ClassNotFoundException: com.sun.deploy.appcontext.AppContext
     at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
     at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
     at java.security.AccessController.doPrivileged(Native Method)
     at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
     at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
     at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
     at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
     ... 3 more
  </code></pre>
  
  <p>It is referring to this line of code</p>
  
  <pre><code>    win = JSObject.getWindow(this);
  </code></pre>
  
  <p>These are all my imports</p>
  
  <pre><code>import netscape.javascript.JSObject;
  import java.lang.*;
  import java.applet.*;
  import java.awt.Graphics;
  </code></pre>
  
  <p>I really need help with this can't seem to find solutions anywhere.</p>
  
  <p>Thanks.</p>