SWIKI runs an applet

G.J.Tielemans at dinkel.utwente.nl G.J.Tielemans at dinkel.utwente.nl
Wed Nov 7 12:19:20 UTC 2001


The strangest thing is that if you visit the original page directly
everything around the applet works, but on your local swiki-page it fails:
So it is this time not Bill.
 
-----Original Message-----
From: John Hinsley [mailto:jhinsley at telinco.co.uk]
Sent: Wednesday, November 07, 2001 1:21 AM
To: squeak-dev at lists.squeakfoundation.org
Subject: Re: SWIKI runs an applet


G.J.Tielemans at dinkel.utwente.nl wrote:
> 
> -----Original Message-----
> From: John Hinsley [mailto:jhinsley at telinco.co.uk]
> Sent: Tuesday, November 06, 2001 7:16 AM
> To: squeak-dev at lists.squeakfoundation.org
> Subject: Re: SWIKI runs an applet
> 
> John Hinsley wrote:
> 
> If you can point me to the Jama package, I'll have a go, but without
> that, there's no hope of getting it to compile.
> 
> http://math.nist.gov/javanumerics/jama/


Thanks!

Stranger and stranger. I can now compile it OK, or so it seems:

john at molehole:~/Desktop/Java_applets > javac LeastSquares.java
-classpath Jama-1.0.1.jar 
Note: LeastSquares.java uses or overrides a deprecated API.
Note: Recompile with -deprecation for details.

(The deprecated message is pretty common, and it usually works
whatever.)

In Comanche, on my recipes Swiki, I make a link to a new page:

*LeastSquares*
_

and create the page. 

<html><p align="center">
<applet codebase="uploads/63/" code="LeastSquares.class" width=382
height=433>
</applet></p>
</html>

and upload the .class file to the page. 

Now I get the grey flash of death and Netscape screams:

Applet LeastSquares error: java.lang.NoClassDefFoundError: LeastSquares

which is strange. I've referenced the class correctly throughout, and
what's 

public class LeastSquares extends Applet { 

if not a class definition?

Any ideas from someone who knows their java welcomed!

Cheers

John
-- 
If you don't care about your data, like file systems which automagically
destroy themselves and have money to burn on 3rd party tools to keep
your
system staggering on, Microsoft (tm) have the Operating System for you.





More information about the Squeak-dev mailing list