Thứ Sáu, 17 tháng 1, 2014

Java Lab

Outline
- Download and install JDK
- Write a Helloworld program
- Install and use Eclipse to write a Java program
- Debugging Programs in Eclipse
Exercise 1
Download and install JDK
JDK & JRE
Task 1 - Download JDK
- Goto Java download site http://www.oracle.
com/technetwork/java/javase/downloads/index.html
Task 1 - Download JDK (cont)
- Select Java Platform (JDK), choose your operation platform (eg
Window X86) and download it
Task 2 - Install JDK
- Run the downloaded installer, which installs both the JDK (Java
Development Kit) and JRE (Java Runtime). By default the JDK and
JRE will be installed into directories C:\Program Files\Java
Task 3 - Config PATH environment variables
- Windows Operating System searches the current directory and the
directories listed in the PATH environment variable for executable
programs invoked from the CMD shell. It helps programmer can
compile Java code in CMD shell.
- Click the "Start" button > "Control Panel" > "System" > (Vista/7 only)
"Advanced system settings"
Task 3 - Config PATH (cont)
Task 4 - Verify the JDK Installation
- Launch a CMD shell > type java –version to check that JDK is
properly installed and display its version, and javac to check Path work
properly too.
Exercise 2
Write a Helloworld program

Xem chi tiết: Java Lab


Không có nhận xét nào:

Đăng nhận xét