展开全部
运行控制台,程序->运行,输入CMD,点击确定进入DOS操作系统 快捷键windows键+R键
编写需62616964757a686964616fe78988e69d8331333361326239要运行的java代码!/**
* @author java
* @version 创建时间:2014-11-7 下午2:31:53
* 类说明
*/
public class helloword {
public static void main(String[] args) {
System.out.println("hello中文字符,,,中文字符 word");
System.out.println("hello中文字符,,,中文字符 word");
System.out.println("hello中文字符,,,中文字符 word");
System.out.println("hello中文字符,,,中文字符 word");
System.out.println("hello中文字符,,,中文字符 word");
System.out.println("hello中文字符,,,中文字符 word");
System.out.println("hello中文字符,,,中文字符 word");
System.out.println("hello中文字符,,,中文字符 word");
System.out.println("hello中文字符,,,中文字符 word");
}
}
3. 切换运行目录到您存放java代码的目录!使用命令 cd 切换
4. 常规执行命令 javac helloword.java,出现如下错误!
5. 解决错误提示:编码 GBK 的不可映射字符,使用命令:javac -encoding utf-8 helloword.java,编译成功
6. 成功编译后,在tmp目录下能看到helloword.java文件编译后的.class字节码文件
7. 使用命令【 java helloword 】,运行java程序