java - Jogl Applet with JNLP runs in eclipse but not in the browser -


i developing applet opengl es stuff using jogl. in eclipse can start applet in browser have trouble because java console prints nosuchmethoderror in line create instance of glcanvas.

glprofile glp = glprofile.get(glprofile.gl2es2);  glcapabilities caps = new glcapabilities(glp); caps.setsamplebuffers(true); caps.setnumsamples(8);  glcanvas = new glcanvas(caps); // throws nosuchmethoderror 

the exception:

exception in thread "thread applet-de.beuthhochschule.bachelor.martin.benchmark-1" java.lang.nosuchmethoderror: javax.media.opengl.awt.glcanvas.<init>(ljavax/media/opengl/glcapabilities;)v  @ de.beuthhochschule.bachelor.martin.benchmark.initcomponents(benchmark.java:60)  @ de.beuthhochschule.bachelor.martin.benchmark.init(benchmark.java:42)  @ sun.plugin2.applet.plugin2manager$appletexecutionrunnable.run(plugin2manager.java:1620)  @ java.lang.thread.run(thread.java:662) 

i created jar , without jogl libs (jogl, gluegen, nativewindow , newt) didn't work. have idea?

my jnlp:

<?xml version="1.0" encoding="utf-8"?> <jnlp href="applet-benchmark.jnlp" codebase=".">   <information>     <title>webgl-benchmark</title>     <vendor>martin breuer</vendor>     <homepage href="http://localhost/"/>     <description>native reference implementation</description>     <description kind="short">reference implementation of webgl benchmark</description>     <offline-allowed/>   </information>      <resources>       <j2se href="http://java.sun.com/products/autodl/j2se" version="1.6+"/>       <property name="sun.java2d.noddraw" value="true"/>       <jar href="http://localhost/benchmark.jar" main="true"/>       <extension name="newt-all-awt" href="http://jogamp.org/deployment/webstart/newt-all-awt.jnlp" />     </resources>    <applet-desc        name="webgl-benchmark"       main-class="de.beuthhochschule.bachelor.martin.benchmark"       width="660"        height="500">   </applet-desc> </jnlp> 

my applet tag:

<applet codebase="." code="org.jdesktop.applet.util.jnlpappletlauncher" width=600 height=400   archive="http://jogamp.org/deployment/util/applet-launcher.jar,            http://jogamp.org/deployment/webstart/nativewindow.all.jar,            http://jogamp.org/deployment/webstart/jogl.all.jar,            http://jogamp.org/deployment/webstart/gluegen-rt.jar,            http://jogamp.org/deployment/webstart/newt.all.jar">     <param name="codebase_lookup" value="true">     <param name="subapplet.classname" value="de.beuthhochschule.bachelor.martin.benchmark">     <param name="subapplet.displayname" value="webgl-benchmark">     <param name="noddraw.check" value="true">     <param name="progressbar" value="true">     <param name="jnlpnumextensions" value="1">     <param name="jnlpextension1" value="http://jogamp.org/deployment/webstart/jogl-core.jnlp">     <param name="java_arguments" value="-dsun.java2d.noddraw=true -dsun.java2d.opengl=false">     <param name="jnlp_href" value="http://localhost/applet-benchmark.jnlp"> </applet> 

the complete console log: http://pastebin.com/xjk84ptv (the log partly translated german, not sure how can change that...)

update

providing basic jogl libraries myself doesn't change anything...

<resources>     <j2se href="http://java.sun.com/products/autodl/j2se" version="1.6+"/>     <property name="sun.java2d.noddraw" value="true"/>     <jar href="http://192.168.0.39/jogl.all.jar" />       <jar href="http://192.168.0.39/newt.all.jar" />     <jar href="http://192.168.0.39/nativewindow.all.jar" />     <jar href="http://192.168.0.39/gluegen-rt.jar" />     <jar href="http://192.168.0.39/benchmark.jar" main="true"/>     <extension name="newt-all-awt" href="http://jogamp.org/deployment/webstart/newt-all-awt.jnlp" /> </resources> 

i tried loading applet way nothing changed...

<script src="http://www.java.com/js/deployjava.js"></script> <script type="text/javascript">     var attributes = {         code:'de.beuthhochschule.bachelor.martin.benchmark',         width:660, height:500     };     var parameters = {jnlp_href: "applet-benchmark.jnlp"};     var version = "1.6"; </script> <script type="text/javascript">     deployjava.runapplet(attributes, parameters, version); </script> 

quick thing check, version of jre you're using in eclipse same version of jre running in browser?


Comments

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

windows - Python Service Installation - "Could not find PythonClass entry" -

Determine if a XmlNode is empty or null in C#? -