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

前端 未结 2 1474
野性不改
野性不改 2021-01-25 08:54

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

2条回答
  •  被撕碎了的回忆
    2021-01-25 09:40

    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.

提交回复
热议问题