cannot resolve symbol on getImage(String) function

I just installed J2SE 1.4.0_01 on Windows 98.

I have set my CLASSPATH environment variable to

CLASSPATH=.;C:\j2sdk1.4.0_01\jre\lib\rt.jar

as well as my JAVA_HOME to

JAVA_HOME=C:\j2sdk1.4.0_01

However, now when I compile an applet of mine which previously compiled fine with J2SE 1.3.1, I suffer from a "cannot resolve symbol" error when using the getImage(java.lang.String) function. I get this error from both Forte for Java and the javac command line. I have successfully gotten other demos to compile within Forte for Java CE 4.0.

In my applet I am doing the correct importing, such as

import java.applet.Applet;

public class myApplets extends java.applet.Applet

which should give me access to the getImage() function. Also, I GET NO OTHER IMPORTING "cannot resolve symbol" errors, this is the ONLY one.

I checked src.zip as well as rt.jar and both Applet.java and Applet.class define this method and are present.

Why is this not compiling? This public method claims to still be present in the current JDK documentation!!!!

[1099 byte] By [darinda] at [2007-9-27 9:20:09]
# 1

Hello darind,

I just checked J2SE 1.4.x docs and I did not see getImage(String) for java.applet.Applet. I only saw getImage(String) - Method in class java.awt.Toolkit. java.applet.Applet has getImage(URL) and getImage(URL, String). In fact, I just checked J2SE 1.3.x docs also and found the same two methods and no getImage(String) in java.applet.Applet. Are you sure that getImage(String) was a member of the java.applet.Applet in J2SE 1.3.1?

-Merwyn,

Developer Technical Support,

http://www.sun.com/developers/support.

JavaMan5a at 2007-7-8 22:08:10 > top of Java-index,Developer Tools,Java Compiler...