I am launching an applet via JNLP and Java Web Start. My problem is that when the page is loaded, two JVMs will launch with two Java console popups and two "Do you want to run this application?" popups. Other than that, the applet ends up loading and even my native libraries are loaded properly. I'm not really sure what is causing the double launching.
EDIT: Also, the first loaded JVM automatically closes after about 30-45 seconds.
html
<script>
var attributes = { code:"com.osgi.swpc.applet.TrackerApplet.class", width:770, height:825};
var parameters = {jnlp_href: "tracker-applet.jnlp"};
deployJava.runApplet(attributes, parameters, "1.6");
</script>
jnlp
<?xml version="1.0" encoding="UTF-8"?>
<jnlp spec="1.0+" href="">
<information>
<title>Tracker</title>
<vendor>My Vendor</vendor>
</information>
<resources os="Windows">
<!-- Application Resources -->
<j2se version="1.6+" href="http://java.sun.com/products/autodl/j2se" />
<jar href="tracker_applet.jar" main="true" />
<nativelib href="applets/jacob.jar"/>
<nativelib href="applets/com4j.jar"/>
</resources>
<applet-desc
name="Tracker Applet"
main-class="com.osgi.swpc.applet.TrackerApplet"
width="770"
height="825">
</applet-desc>
<update check="background"/>
</jnlp>