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?
You may have not set the command search path ( $PATH ) correctly. This is a common for people who are new to Java; see javac is not recognized as an internal or external command, operable program or batch file. You may be trying to use appletviewer in Java 11 or later. This won't work.
Click Oracle Forms Server. Click Custom. From the list of Available Products, select JDK AppletViewer. Click Install.
Deprecated. The Applet API is deprecated, no replacement. An applet is a small program that is intended not to be run on its own, but rather to be embedded inside another application.
My solution to this problem was to simply (in Eclipse) go to Run-> Run configurations... and open the JRE card where I set Java SE to a newer installed version. (in my case from SE 6 to SE 7)
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With