Java Applet

XML, Perl, Python, and other languages can be discussed here, even if it isn't PHP (We might forgive you).

Moderator: General Moderators

Post Reply
User avatar
shiznatix
DevNet Master
Posts: 2745
Joined: Tue Dec 28, 2004 5:57 pm
Location: Tallinn, Estonia
Contact:

Java Applet

Post by shiznatix »

I have made this java applet and signed it and everything. Now I am trying to put it on my website but it cant find the class when I load it? It works fine when I put thet html file with the applet call in the same folder but when they are in different folders it does not work.

Code: Select all

<applet code="./Files/Applet/shiznatix/shiznatix.class" archive="./Files/Applet/shiznatix.jar" codebase="./Files/Applet/" width="500" height="500"></applet>
Those files exist, this I know for sure. I added the codebase thinking that might work but to no avail. The error console says it can not find the class shiznatix/shiznatix.class but when I put that html in a file in the Applet folder and run it (without the ./Files/Applet/ stuff) it works perfectly fine. How can I make it find the stupid thing?
User avatar
Jenk
DevNet Master
Posts: 3587
Joined: Mon Sep 19, 2005 6:24 am
Location: London

Post by Jenk »

take off the "./"?
User avatar
shiznatix
DevNet Master
Posts: 2745
Joined: Tue Dec 28, 2004 5:57 pm
Location: Tallinn, Estonia
Contact:

Post by shiznatix »

Nope, that did not work.
User avatar
shiznatix
DevNet Master
Posts: 2745
Joined: Tue Dec 28, 2004 5:57 pm
Location: Tallinn, Estonia
Contact:

Post by shiznatix »

wow of course none of the things i tried where working, i was editing the wrong file the entire freaking time. i want the last 4 hours back.
Post Reply