云南大学软件学院java实验九_云南大学软件学院Java实验一

云南大学软件学院

实验报告

姓名:王定欢学号:20141120188 班级:日期:2016.9.11 成绩:

JAVA实验一

一、实验目的:

安装JAVA编译环境,配置环境变量路径,熟悉JAVA编译环境。编译第一个JAVA程序。

二、实验要求:

1. Install the Java development environment, including:

a) j2sdk1.7

b) eclipse

2. Configure the Java development environment and get familiar with it by

compiling and running example code form the textbook

a) J2sdk configuration in eclipse

3. Open command prompt.

To edit source code:

Type notepad HelloWorld.java.

Type in the following:

public class HelloWorld {

public static void main (String[] args) {

System.out.println("Hello World!");

}

}

Save the file.

To compile source code to byte code:

At command prompt, type javac HelloWorld.java.

To execute byte code:

At command prompt, type java HelloWorld

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值