出现错误“bash:appletviewer:找不到命令”。
我正在尝试学习 Java,但在使用 appletviewer 命令时遇到问题。 我正在使用 openSUSE 11 并且能够编译和运行普通的 java 程序,但是当我发出 appletviewer 命令时,我收到以下错误“bash:appletviewer:找不到命令”。
我已经在 .bashrc 文件中设置了 PATH 变量。 所以问题不是路径的问题。 从javac和java命令工作正常也可以验证这一点。 我用谷歌搜索并尝试了很多上述解决方案,但没有一个有效。 我什至尝试将文件移动到 bin 文件夹并从那里运行命令。
那么造成这种情况的原因可能是什么呢? appletviewer 不是设计用于在 Linux 中运行的吗? 仅供参考,我已将 OpenSDK 和 IcedTea 版本替换为来自 sun 站点的 jdk1.6.0_14 版本。 请帮忙。
谢谢 克里斯
I'm trying to learn Java and I'm having problems with the appletviewer command. I am using openSUSE 11 and am able to compile and run normal java programs but when I issue the appletviewer command I'm getting the following error "bash: appletviewer: command not found".
I have set the PATH variable in the .bashrc file. so the problem is not that of the path. This can also be verified from the fact that javac and java commands are working normally. I have googled and tried many said resolution but none is working. I have even tried moving the files to the bin folder and running the command from there.
So what may the cause of this? Isn't appletviewer designed to work in linux? And FYI I have replaced the OpenSDK and IcedTea versions with the jdk1.6.0_14 version from the sun site. Please help.
Thanks
Chris
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
作为测试,请执行以下操作:
检查路径是否不同。 如果第二个命令没有给出输出,则 appletviewer 甚至可能尚未安装(或者您的系统无法找到)。
As a test, do the following:
Check to see if the paths are different. If the second command gives no output, appletviewer may not even be installed (or can't be located by your system).
您需要安装 java-1_6_0-sun-devel-1.6.0.u14-0.2.1
您将在
openSUSE-11.1-Non-Oss
存储库中找到它。You need to install java-1_6_0-sun-devel-1.6.0.u14-0.2.1
You will find it in the
openSUSE-11.1-Non-Oss
repository.