Posted by
Kyle on
Jul 08, 2012; 12:31am
URL: https://forum.jogamp.org/Applet-demos-not-working-tp4025445p4025464.html
Let me tell you all a tale. A tale of blood, torture and murder...
I tried to get my own applet running and it turned out to be quit an ordeal. It took me the entire day of fumbling to prevail! I'm writing this just to vent.
I set up the JNLP file, and the web page and tried loading in appletviewer, from there only horror awaited. I kept getting "access denied" so I wrote a policy file and gave it to appletviewer. What could go wrong? Other than a couple easily fixed syntax errors, nothing. NOTHING AT ALL! But... oh my... That was locally on my computer.
I tried uploading my jar and jnlp to my website. It worked just FINE on my computer, what could go wrong here? I got an error, uh... many errors, I can't remember entirely but fumbling around it complained of a "NoClassDefFoundError" for "com.jogbamp.common.os.Platform" and "jogamp.common.os.PlatformPropsImpl" and other times complaining about not validating the certificate for native libs.
To this very moment I don't understand why I got the NoClassDefFoundError but I can explain the certificate issue. I was trying to use
http://jogamp.org/deployment/util/applet-launcher.jar rather than the one in the other areas, I guess that certificate is outdated or incompatible for some reason with the newer jars.
With time the NoClassDefFoundError went away strangely, but instead turned into an "Incompatible magic number 218774561." Wtf is this? I don't believe in magic, gtfo my universe. I did research and figured out what a magic number was or at least in this context. So I converted that number into ASCII. What did I get? I got this:
\r\n<!
Hm... Looks a lot like <!DOCTYPE... like the start of new line in a web page. Why is this? I'm just getting a jar off of my website!
Off of my website... hmm... *scratches head* Could my host's file manager be using some kind of wrapper web page for every file? I went out and quickly made an account on another free web hosting website, uploaded my documents and scrambled to get everything using that website. I launch appletviewer.
Loading....
Starting applet...
...
...
...
...!
OMGWTFBBQMAIGAWDROFLMAO
Oh heavens, oh my, did I do that? I did it! Success! Yes! Oh I can't wait to... Oh... I still need to test this in my browser. *scratches head* Well... I don't want to ruin the moment...
...
*makes a sandwich*
...
*takes a shower*
...
*plays Minecraft*
...
*cleans the kitchen*
...
Well... I guess it needs to get done some time. I slowly started uploading the jnlp and new html document. I mouse over the refresh button... I hover my finger over the mouse... Carefully.... CAREFULLY... *click*
Loading....
Starting applet...
...
...
...
...!
OMGWTFBBQMAIGAWDROFLMAO!!!!!111!1!!1one
It has been done! Oh god, I need to sleep.