[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 150
  • Last Modified:

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.
0
Ludini
Asked:
Ludini
  • 3
  • 2
1 Solution
 
heyhey_Commented:
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)
0
 
LudiniAuthor Commented:
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.
0
 
LudiniAuthor Commented:
Well, the compiler from Symantec (V. Cafe 3.0) or Sun (JDK 1.1.7) does not change anything.           L.
0
 
heyhey_Commented:
As soon as I use 'setLocation()', 'setBounds()', TextArea, Button .... I receive the message NoSuchMethodError.

note that 'setLocation()' and 'setBounds()' are both 1.1 methods (as far as I remember).  
0
 
LudiniAuthor Commented:
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.
0

Featured Post

Receive 1:1 tech help

Solve your biggest tech problems alongside global tech experts with 1:1 help.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now