I created a Java applet program and compiled it. As a result of the compilation, it generated a class
file. But, it showed the following warning message while running the applet with the command prompt using the appletviewer
command.
D:\Applets\Applets>appletviewer FirstApplet.java
Warning: Can't read AppletViewer properties file: C:eswaran_s.VMSPL\.hotjava\properties Using defaults.
When I run this command once again, it does not show the warning message, but the applet is not running.
How can I solve this issue?
The file
.appletviewer
should be in your home folder. If it's not exist then default file is created. You can also place it in the%USERPROFILE%\.hotjava\properties
.If you run appletviewer it runs because you got any message from it. Suppose your instance is created on the
%PATH%
. But to run properly you should supply the argument text file that contains deprecated<APPLET>
tag. It doesn't matter what extension it has.