I'm learning Java programing. But when I create an applet (using JBuilder
8), It auto create a HTML file, but when I run that HTML file I can not
see anything about my applet.
The warning is : Class not found
Best regard.
THanh you
> I'm learning Java programing.
A better group for the moment is this one..
<http://www.physci.org/codes/javafaq.jsp#cljh>
>..But when I create an applet (using JBuilder
> 8), It auto create a HTML file, but when I run that HTML file
When discussing applets, it is best to mention
not just java version, but OS type (Win/Linux..)
and browser type (Netscape,IE,Opera..) and version.
However, because (I think) I know what
the problem is, I will guess you are using
Win/IE, ..and IE even guess it is IE 6.
Am I right?
>...I can not
> see anything about my applet.
> The warning is : Class not found
For tips on solving error, check here..
<http://www.physci.org/codes/javafaq.jsp#exact>
However, I think your answer can be found here..
<http://www.physci.org/codes/javafaq.jsp#appletie>
BTW - Roedy, I do not see the notorious
IE/'Class Not Found' at..
<http://mindprod.com/jgloss/errormessages.html#CLASSNOTFOUND>
Could you add it, or a link to the
answer I writ in the Java FAQ?

Signature
Andrew Thompson
http://www.PhySci.org/ Open-source software suite
http://www.PhySci.org/codes/ Web & IT Help
http://www.1point1C.org/ Science & Technology
Roedy Green - 17 Jul 2004 06:21 GMT
>BTW - Roedy, I do not see the notorious
>IE/'Class Not Found' at..
><http://mindprod.com/jgloss/errormessages.html#CLASSNOTFOUND>
It's always been there.
Click and be patient while that huge sucker loads.

Signature
Canadian Mind Products, Roedy Green.
Coaching, problem solving, economical contract programming.
See http://mindprod.com/jgloss/jgloss.html for The Java Glossary.
Andrew Thompson - 17 Jul 2004 07:17 GMT
>><http://mindprod.com/jgloss/errormessages.html#CLASSNOTFOUND>
>
> It's always been there.
> Click and be patient while that huge sucker loads.
Perhaps I did not explain clearly.
I saw the five points you have listed at
that anchor, it did not contain the answer
I gave the OP, a cause of 'class not found'
error that will become more prevalent.
The OP has the MSVM selected as default, hence
the 'class not found' error message as described..
<http://www.physci.org/codes/javafaq.jsp#appletie>
But your page lists 5 possibilities at that anchor
above, none of which is the cause in this instance.
( If I have guessed the OP's problem correctly, that is.. )

Signature
Andrew Thompson
http://www.PhySci.org/ Open-source software suite
http://www.PhySci.org/codes/ Web & IT Help
http://www.1point1C.org/ Science & Technology
Roedy Green - 17 Jul 2004 07:30 GMT
>But your page lists 5 possibilities at that anchor
>above, none of which is the cause in this instance.
>( If I have guessed the OP's problem correctly, that is.. )
fixed.

Signature
Canadian Mind Products, Roedy Green.
Coaching, problem solving, economical contract programming.
See http://mindprod.com/jgloss/jgloss.html for The Java Glossary.
Andrew Thompson - 17 Jul 2004 07:43 GMT
>I'm learning Java programing. But when I create an applet (using JBuilder
>8), It auto create a HTML file, but when I run that HTML file I can not
>see anything about my applet.
>The warning is : Class not found
see http://mindprod.com/jgloss/applet.html
to see what should be in that HTML file.
Start with Applications. see http://mindprod.com/jgloss/applet.html
for how to add a harness to an Applet to debug it as an Application.
When it is working try running it as an application.

Signature
Canadian Mind Products, Roedy Green.
Coaching, problem solving, economical contract programming.
See http://mindprod.com/jgloss/jgloss.html for The Java Glossary.
Roedy Green - 17 Jul 2004 05:21 GMT
>Start with Applications. see http://mindprod.com/jgloss/applet.html
>for how to add a harness to an Applet to debug it as an Application.
>When it is working try running it as an application.
whoops. that should read, once it is working as an application, then
try running it as an Applet.

Signature
Canadian Mind Products, Roedy Green.
Coaching, problem solving, economical contract programming.
See http://mindprod.com/jgloss/jgloss.html for The Java Glossary.
Andrew Thompson - 17 Jul 2004 05:25 GMT
> see http://mindprod.com/jgloss/applet.html
> to see what should be in that HTML file.
I am sure this is one where the OP has the
MSVM selected as default, see my other post.
As an aside, the display applet on the
page is throwing an NPE..
java.lang.NullPointerException
at com.mindprod.jdisplay.JDisplay.init(JDisplay.java:217)
(IE 6, XP, Java 1.5)
[ FWIW, I checked the code snippet as
mentioned in the alternateHTML part
was accessible, the code is there. ]

Signature
Andrew Thompson
http://www.PhySci.org/ Open-source software suite
http://www.PhySci.org/codes/ Web & IT Help
http://www.1point1C.org/ Science & Technology
Roedy Green - 17 Jul 2004 06:06 GMT
>java.lang.NullPointerException
> at com.mindprod.jdisplay.JDisplay.init(JDisplay.java:217)
>(IE 6, XP, Java 1.5)
thanks. I did not notice that. It does not happen locally.
Tracking it down.

Signature
Canadian Mind Products, Roedy Green.
Coaching, problem solving, economical contract programming.
See http://mindprod.com/jgloss/jgloss.html for The Java Glossary.
Roedy Green - 17 Jul 2004 06:14 GMT
>java.lang.NullPointerException
> at com.mindprod.jdisplay.JDisplay.init(JDisplay.java:217)
>(IE 6, XP, Java 1.5)
the problem has mysteriously disappeared. I regenerated the
serialised file for that applet snippet. I have added some
instrumentation to help track the problem should it happen in future.
I gather somehow that file became corrupted, but that does not explain
why it would work locally. Perhaps a FTP upload failed part way
through.

Signature
Canadian Mind Products, Roedy Green.
Coaching, problem solving, economical contract programming.
See http://mindprod.com/jgloss/jgloss.html for The Java Glossary.