Link to home
Start Free TrialLog in
Avatar of Ludini
Ludini

asked on

yet another 'NoSuchMethodError'

I developed an applet using JDK 1.1 (Borland compiler) and tested it extensively on Win95/98 and NT.....whith success. Then I tried the same thing on a Mac (OS 7.6, 8, 8.5) and got an error message 'Applet can't start : error : java.lang.NoSuchMethodError : ......etc.'. I changed functions, stripped the program to just a couple of methods. As soon as I use 'setLocation()', 'setBounds()', TextArea, Button .... I receive the message NoSuchMethodError. I can draw lines and write text though (in paint() ). I use Netscape 4.5 on both platforms. I used different codebases (applet sent by ftp or http) (same difference) and several Mac/PC (same difference). So what the heck is it ?  Thanks for getting me out of this nightmare  L.
Avatar of heyhey_
heyhey_

I suppose that Mac Netscape 4.5 is not fully 1.1 compatible.

you can
1. write 1.0 compatible applets.
2. try to find newer Java VM (if it exist)
Avatar of Ludini

ASKER

Even if I use purely 1.0 code it does not work (minimal applet with a button in the middle for ex). But I understand that applets run on Macs ..... in some way or another. Perhaps the Borland compiler is bad news for the Mac !? ....but on the other hand the philosophy is platform independency. I'll try a different compiler meanwhile......... Thanks            L.
Avatar of Ludini

ASKER

Well, the compiler from Symantec (V. Cafe 3.0) or Sun (JDK 1.1.7) does not change anything.           L.
ASKER CERTIFIED SOLUTION
Avatar of heyhey_
heyhey_

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Ludini

ASKER

The compiler JDK1.0.2 complains about the same methods and lines in the program like Netscape. So I suppose that it's true, the VM on a Mac is not at all up to date and JDK version 1.0 is all it can take. Thanks heaps for the (incredible) solution     L.