'appletviewer' is not recognized as an internal or external command, operable program or batch file

断了今生、忘了曾经 提交于 2019-12-31 05:11:05

问题


C:\Users\ms536\Desktop\java>appletviewer awt_ex.java 'appletviewer' is not recognized as an internal or external command, operable program or batch file.


回答1:


I can think of three possible explanations for this:

  1. 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

  2. You may be trying to use appletviewer in Java 11 or later. This won't work. Applet support was deprecated in Java 9, and was removed entirely in Java 11; see https://bugs.java.com/bugdatabase/view_bug.do?bug_id=JDK-8200146.

  3. You may have installed a JRE rather than a JDK. The appletviewer is (was) only available in JDK installations.



来源:https://stackoverflow.com/questions/54786830/appletviewer-is-not-recognized-as-an-internal-or-external-command-operable-pr

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!