Link to home
Start Free TrialLog in
Avatar of BoB
BoB

asked on

class not found

When I run the clock demo from my computer (win95) the example.html loads the clock applet properly.  If I copy clock2.class, clock2.java, and example.html to my server (sparc running apache 1.2.5) the applet doesn't run and I get a clock2 class not found error in the status bar.  Any ideas?
Avatar of froderik
froderik

I suggest that you check the following.
- Did the case of the filename remain?
- Did you copy the class file in binary mode? (If using ftp.)
- Check the HTML file, does the applet tag have any absolute references to the location of the applet. (It shouldn't but you never know...)

Hope this helps

Fredrik
Avatar of BoB

ASKER

I was able to get the applet to work by removing the codebase= parameter of the applet tag.  Any ideas as to why this would work and if it's an acceptable solution?
I think codebase should point to the URL where the applet is located. If the applet is in the same directory as the HTML source file it doesn't need to be specified.
Avatar of BoB

ASKER

good enough for me.  you can answer the question.
ASKER CERTIFIED SOLUTION
Avatar of froderik
froderik

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial