问题描述
我创建了一个Java小程序的程序并编译它。由于编译的结果,它产生了类
文件。但是,它同时使用的appletviewer
命令和命令提示符下运行小程序显示以下警告消息。
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?
推荐答案
我对这个问题的解决办法是简单地(在Eclipse)去运行 - >运行配置...,然后打开JRE卡在那里我设置的Java SE为较新的安装版本。 (在我的情况下,从SE 6至SE 7)
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)
这篇关于无法读取的appletviewer属性文件 - 小程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!