Solved

class not found

Posted on 1998-05-25
5
225 Views
Last Modified: 2010-04-16
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?
0
Comment
Question by:BoB
  • 3
  • 2
5 Comments
 
LVL 1

Expert Comment

by:froderik
ID: 1221453
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
0
 

Author Comment

by:BoB
ID: 1221454
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?
0
 
LVL 1

Expert Comment

by:froderik
ID: 1221455
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.
0
 

Author Comment

by:BoB
ID: 1221456
good enough for me.  you can answer the question.
0
 
LVL 1

Accepted Solution

by:
froderik earned 50 total points
ID: 1221457
Ok, I'm glad it worked.
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Suggested Solutions

An old method to applying the Singleton pattern in your Java code is to check if a static instance, defined in the same class that needs to be instantiated once and only once, is null and then create a new instance; otherwise, the pre-existing insta…
Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now