Eclipse使用
1.选择工作空间:编写java源文件存放的位置
下图的复选框:use this as the default and do not ask again :打勾表示当前工作空间为默认,以后启动不会在提示
2.左侧空白区右键 or 选中File菜单栏,选择new-->创建项目编写名称,Finish完成。
3.展开项目,右键SRC目录,右键创建类,指定类名,创建main方法并编写源代码System.out.println("Helloworld");
4.编译与执行 当保存的时候,自动编译class文件
执行:①绿色三角 run按钮 ② Ctrl + f11 ③编写代码空白区,右键 Run As-->运行java
原文:https://www.cnblogs.com/zs0322/p/10860926.html