Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / July 2006

Tip: Looking for answers? Try searching our database.

"Class not found"

Thread view: 
Hackman - 07 Jul 2006 04:10 GMT
I'm getting the dreaded "class not found"  error.   I've Googled this
error and found that it's quite common, but not in exactly the way I
get it.    My applets run fine on my machine, both when tested locally
via a local HTML file, and also when going to website, but gives the
"Class not found" error  other machines.   Anyone have any idea what
might be wrong?

(I went to my website on a firend's computer, and it didn't work.
 At first I thought there was a problem with the setup that didn't
 allow the computer to run applets properly, but I went to a site
 I knew used applets, and their applets ran fine).

I suspect it may be a codebase error, but I've tried the following in
my  HTML file without success:

     <APPLET CODE="moonCalendar.class"
                 name = "moonCalendar" WIDTH=1000 HEIGHT=350>

    <APPLET CODE="moonCalendar.class" codebase="."
                 name = "moonCalendar" WIDTH=1000 HEIGHT=350>

       <APPLET CODE="moonCalendar.class"
codebase="http://www.ckolchak.com"
                 name = "moonCalendar" WIDTH=1000 HEIGHT=350>

   You can see if it works on your machine by going to:

                  http://www.ckolchak.com/astroCalendar.htm
Dag Sunde - 07 Jul 2006 08:21 GMT
> I'm getting the dreaded "class not found"  error.   I've Googled this
> error and found that it's quite common, but not in exactly the way I
[quoted text clipped - 24 lines]
>
>                   http://www.ckolchak.com/astroCalendar.htm

I see 3 applets loading without any problems...

Signature

Dag.

Moiristo - 07 Jul 2006 13:06 GMT
>> I'm getting the dreaded "class not found"  error.   I've Googled this
>> error and found that it's quite common, but not in exactly the way I
[quoted text clipped - 26 lines]
>
> I see 3 applets loading without any problems...

same here
Jax - 09 Jul 2006 14:10 GMT
But I am unable to view any Applets !
And even I have been greeted with the same error.
Anyone, any clue ?
Dag Sunde - 09 Jul 2006 17:04 GMT
> But I am unable to view any Applets !
> And even I have been greeted with the same error.
> Anyone, any clue ?

What does the java console tell you?
What Plugin version?

Signature

Dag.

Andrew T. - 09 Jul 2006 14:37 GMT
> I'm getting the dreaded "class not found"  error.
...
>  http://www.ckolchak.com/astroCalendar.htm

That would be what you see if running the MSVM in IE.
If IE is running the Java 1.5, the applets appear just fine.

Andrew T.
Hackman - 09 Jul 2006 22:22 GMT
> > I'm getting the dreaded "class not found"  error.
> ...
[quoted text clipped - 4 lines]
>
> Andrew T.

So how would I get them to run on the MSVM?
Dag Sunde - 09 Jul 2006 22:51 GMT
>>> I'm getting the dreaded "class not found"  error.
>> ...
[quoted text clipped - 6 lines]
>
> So how would I get them to run on the MSVM?

Stay strictly to AWT, _no_ swing, and make sure you compile for
the JRE version 1.1.8.

Signature

Dag.

Andrew T. - 10 Jul 2006 04:40 GMT
> > > I'm getting the dreaded "class not found"  error.
> > ...
[quoted text clipped - 6 lines]
>
> So how would I get them to run on the MSVM?

Uh-Oh..  Your browser is equipped with an obsolete, non-compliant
JRE that has (at least one) security hole which will *never* be
patched.

Your best bet is to upgrade immediately to the Java Plug-In*,
and encourage any users who are unfortunate enough to be
in a similar position, to do the same.

* That is possible using the nested OBJECT/EMBED applet call.

Andrew T.
Hackman - 10 Jul 2006 05:14 GMT
> > I'm getting the dreaded "class not found"  error.
> ...
[quoted text clipped - 4 lines]
>
> Andrew T.

But the friend's computer that wouldn't show my applets ran applets
on another site just fine.
Andrew T. - 10 Jul 2006 06:10 GMT
> > > I'm getting the dreaded "class not found"  error.
> > ...
> > >  http://www.ckolchak.com/astroCalendar.htm
> >
> > That would be what you see if running the MSVM in IE.
> > If IE is running the Java 1.5, the applets appear just fine.
..
> But the friend's computer that wouldn't show my applets ran applets
> on another site just fine.

My guess is that the friend's computer has a JVM that is suitable
for the 'applets on another site' (which may only need 1.3), while
this applet requires something beyond that (e.g. 1.4).

* What is the/a URL of the applet on another site?
I can check if it runs in the MSVM.

( BTW - embedding applets in a web page so the user
'sees them OK' is /not/ a simple matter.  ..In case you
were beginning to wonder. )

Andrew T.
Hackman - 10 Jul 2006 08:21 GMT
> > > > I'm getting the dreaded "class not found"  error.
> > > ...
[quoted text clipped - 12 lines]
> * What is the/a URL of the applet on another site?
> I can check if it runs in the MSVM.

http://www.chessgames.com/perl/chessgame?gid=1292977
Andrew T. - 10 Jul 2006 08:49 GMT
> > > > > I'm getting the dreaded "class not found"  error.
> > > > ...
[quoted text clipped - 5 lines]
> > > But the friend's computer that wouldn't show my applets ran applets
> > > on another site just fine.
..
> > * What is the/a URL of the applet on another site?
> > I can check if it runs in the MSVM.
>
> http://www.chessgames.com/perl/chessgame?gid=1292977

That applet appears OK in the MSVM.

It *should* also run just fine on your IE with MSVM.
If it doesn't - there is something very wrong with your IE.

Does that applet run OK in your IE?

..but we are getting away from the point here.
We have already established that your applet requires
something beyond the MSVM.  I am not entirely clear -
did you write this applet?  Do you have access to the
souce code?

To launch this applet successfully across a wide range
of browsers you will either need to convert it back to 1.1
(tricky, at the best of times, impossible others) or determine
the minimum requiremment for Java and ensure the end
user has it installed (using OBJECT/EMBED).

Andrew T.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.