比如,你现在有一个applet文件叫example.java,在javac.exe所在的目录下。你在Windows下的DOS窗口中进到javac.exe所在的目录,然后输入
javac example.java
当然,如果你设置了系统环境变量,那就不用进到javac.exe所在的目录