Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

Can not run an applet on Microsoft Window (XP)
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


Report this thread to moderator Post Follow-up to this message
Old Post
huynhminhvu
07-17-04 08:58 AM


Re: Can not run an applet on Microsoft Window (XP)
On Fri, 16 Jul 2004 22:51:12 -0400, "huynhminhvu" <h_minhvu@yahoo.com>
wrote or quoted :

>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.

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

Report this thread to moderator Post Follow-up to this message
Old Post
Roedy Green
07-17-04 08:58 AM


Re: Can not run an applet on Microsoft Window (XP)
On Fri, 16 Jul 2004 22:51:12 -0400, huynhminhvu wrote:

> 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/errormes...l#CLASSNOTFOUND>
Could you add it, or a link to the
answer I writ in the Java FAQ?

--
Andrew Thompson
http://www.PhySci.org/ Open-source software suite
http://www.PhySci.org/codes/ Web & IT Help
http://www.1point1C.org/ Science & Technology

Report this thread to moderator Post Follow-up to this message
Old Post
Andrew Thompson
07-17-04 08:58 AM


Re: Can not run an applet on Microsoft Window (XP)
On Sat, 17 Jul 2004 04:12:55 GMT, Roedy Green
<look-on@mindprod.com.invalid> wrote or quoted :

>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.

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

Report this thread to moderator Post Follow-up to this message
Old Post
Roedy Green
07-17-04 08:58 AM


Re: Can not run an applet on Microsoft Window (XP)
On Sat, 17 Jul 2004 04:12:55 GMT, Roedy Green wrote:

> 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. ]

--
Andrew Thompson
http://www.PhySci.org/ Open-source software suite
http://www.PhySci.org/codes/ Web & IT Help
http://www.1point1C.org/ Science & Technology

Report this thread to moderator Post Follow-up to this message
Old Post
Andrew Thompson
07-17-04 08:59 AM


Re: Can not run an applet on Microsoft Window (XP)
On Sat, 17 Jul 2004 04:25:09 GMT, Andrew Thompson
<SeeMySites@www.invalid> wrote or quoted :

>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.

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

Report this thread to moderator Post Follow-up to this message
Old Post
Roedy Green
07-17-04 08:59 AM


Re: Can not run an applet on Microsoft Window (XP)
On Sat, 17 Jul 2004 04:25:09 GMT, Andrew Thompson
<SeeMySites@www.invalid> wrote or quoted :

>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.

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

Report this thread to moderator Post Follow-up to this message
Old Post
Roedy Green
07-17-04 08:59 AM


Re: Can not run an applet on Microsoft Window (XP)
On Sat, 17 Jul 2004 04:12:52 GMT, Andrew Thompson
<SeeMySites@www.invalid> wrote or quoted :

>BTW - Roedy, I do not see the notorious
>IE/'Class Not Found' at..
><http://mindprod.com/jgloss/errormes...l#CLASSNOTFOUND>

It's always been there.
Click and be patient while that huge sucker loads.

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

Report this thread to moderator Post Follow-up to this message
Old Post
Roedy Green
07-17-04 08:59 AM


Re: Can not run an applet on Microsoft Window (XP)
On Sat, 17 Jul 2004 05:21:02 GMT, Roedy Green wrote:
 
>
> 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.. )

--
Andrew Thompson
http://www.PhySci.org/ Open-source software suite
http://www.PhySci.org/codes/ Web & IT Help
http://www.1point1C.org/ Science & Technology

Report this thread to moderator Post Follow-up to this message
Old Post
Andrew Thompson
07-17-04 08:59 AM


Re: Can not run an applet on Microsoft Window (XP)
On Sat, 17 Jul 2004 06:17:49 GMT, Andrew Thompson
<SeeMySites@www.invalid> wrote or quoted :

>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.

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

Report this thread to moderator Post Follow-up to this message
Old Post
Roedy Green
07-17-04 08:59 AM


Sponsored Links




Last Thread Next Thread Next
Pages (2): [1] 2 »
Search this forum -> 
Post New Thread

Java Machine archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 04:37 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.