Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't read AppletViewer properties file - Applet

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?

like image 700
whiterose Avatar asked Apr 18 '11 12:04

whiterose


People also ask

Why appletviewer is not working?

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.

How do I enable appletviewer?

Click Oracle Forms Server. Click Custom. From the list of Available Products, select JDK AppletViewer. Click Install.

Is applet deprecated in Java 16?

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.


2 Answers

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)

like image 89
the_critic Avatar answered Oct 01 '22 16:10

the_critic


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.

like image 38
Roman C Avatar answered Oct 01 '22 17:10

Roman C