mKorbel
Veteran Poster
1,141 posts since Feb 2011
Reputation Points: 480
Solved Threads: 224
t keep getting the Class not found message
Please copy and paste the full text of the error message here.
Your problem could be that the browser is looking for the class:
class in the RectanglesMover package
contained in the file: RectanglesMover.class.class
If so, remove the .class from the code= attribute
NormR1
Posting Expert
6,677 posts since Jun 2010
Reputation Points: 1,138
Solved Threads: 656
you dont use the jar file. Just copy the class files into your storage area for your website and then navigate to it. Like so
<html>
<head>
<title>
The ArrowKeys2menuprob2 applet
</title>
</head>
<body>
<h2>
Here is the YourAppletName applet
</h2>
<hr>
<applet code="RectanglesMover.class" width="500" height="500">
</applet>
<hr>
</body>
</html>
you want to navigate to the directory (if you have any) in front of the RectanglesMover.class
sirlink99
Practically a Master Poster
661 posts since Oct 2010
Reputation Points: 45
Solved Threads: 19
it's still the same error
Are you sure, the text of the message should change fromClassNotFoundException: RectanglesMover.class
toClassNotFoundException: RectanglesMover
NormR1
Posting Expert
6,677 posts since Jun 2010
Reputation Points: 1,138
Solved Threads: 656
I gave you two choices for the text of the error message.
Which one is the one you are getting? The first one or the second one.
What class files are in the folder with the html file?
NormR1
Posting Expert
6,677 posts since Jun 2010
Reputation Points: 1,138
Solved Threads: 656
class RectanglesMover.class not found.
The browser is looking for a class named: RectanglesMover.class
It looks for that class in a file named: class.class in the RectanglesMover folder.
Does the jar file have that file in that folder?
What is the text of the message when the .class is removed?
NormR1
Posting Expert
6,677 posts since Jun 2010
Reputation Points: 1,138
Solved Threads: 656
"load: class RectanglesMover.class not found."
What browser are you using?
Without the .class on the code= I expect you to get this error message:
"load: class RectanglesMover not found."
Notice there is no .class after RectanglesMover
NormR1
Posting Expert
6,677 posts since Jun 2010
Reputation Points: 1,138
Solved Threads: 656