Consultor Eletrônico



Kbase 18065: FoundationApplet not found with appletviewer
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   30/06/1998
FoundationApplet not found with appletviewer

After installing Apptivity everything seems to work OK but when
running the project in the appletviewer the following errors occur.

File not found when looking for: netscape.application.FoundationApplet
File not found when looking for: abApplet
java.lang.NullPointerException
at sun.applet.AppletPanel.createApplet(AppletPanel.java:462)
at sun.applet.AppletPanel.runLoader(AppletPanel.java:398)
at sun.applet.AppletPanel.run(AppletPanel.java:237)
at java.lang.Thread.run(Thread.java:474)
Application exited with code 0

Running the project in the other environments works fine.

WHY ?
=====
When running the project outside the appletviewer, the -classpath
startup parameter is automatically used when starting the compiler and
JVM's. The appletviewer does not use this option and takes the
CLASSPATH environment variable that is set on the OS level.

In W95, you need to alter the autoexec.bat file to include the
CLASSPATH variable and point it to the right directory:
SET CLASSPATH=.;D:\Apptivity21;D:\Apptivity21\java\lib\classes.zip

Then you need to reboot the system.

On WinNT, you can go to the configuration Panel and startup the system
icon. Here you will find an Environment panel. There you will have to
set the CLASSPATH variable to the right environment.

Now everything should work with the appletviewer.

TBO
06/30/98