Installing J2EE and Using NetBeans IDE
Download
Report
Transcript Installing J2EE and Using NetBeans IDE
Installing J2EE and
Using NetBeans IDE
Copyright (C) 2009 Dr.Yong Uk Song
Yonsei University Wonju Campus
Agenda
Downloading
JDK
jdk-6u14-windows-i586.exe
J2EE
java-tools-bundle-update7-windows.exe
Installing
JDK
J2EE
Using NetBeans IDE
Student Grouping
Quiz1
Agenda
Downloading
JDK
jdk-6u14-windows-i586.exe
J2EE
java-tools-bundle-update7-windows.exe
Installing
JDK
J2EE
Using NetBeans IDE
Student Grouping
Quiz1
Downloading JDK http://java.sun.com
Downloading JDK
Downloading JDK
Downloading JDK
Downloading JDK jdk-6u14-windows-i586.exe
Agenda
Downloading
JDK
jdk-6u14-windows-i586.exe
J2EE
java-tools-bundle-update7-windows.exe
Installing
JDK
J2EE
Using NetBeans IDE
Student Grouping
Quiz1
Downloading J2EE http://java.sun.com
Downloading J2EE
Downloading J2EE
Downloading J2EE
Downloading J2EE
java-tools-bundle-update7-windows.exe
Agenda
Downloading
JDK
jdk-6u14-windows-i586.exe
J2EE
java-tools-bundle-update7-windows.exe
Installing
JDK
J2EE
Using NetBeans IDE
Student Grouping
Quiz1
Installing JDK jdk-6u14-windows-i586.exe
Installing JDK
Installing JDK
Installing JDK
Installing JDK
Installing JDK
Installing JDK
Installing JDK
Agenda
Downloading
JDK
jdk-6u14-windows-i586.exe
J2EE
java-tools-bundle-update7-windows.exe
Installing
JDK
J2EE
Using NetBeans IDE
Student Grouping
Quiz1
Installing J2EE
java-tools-bundle-update7-windows.exe
Installing J2EE
Installing J2EE
Installing J2EE
Installing J2EE
Installing J2EE admin/adminadmin
Installing J2EE
Installing J2EE
Installing J2EE
Agenda
Downloading
JDK
jdk-6u14-windows-i586.exe
J2EE
java-tools-bundle-update7-windows.exe
Installing
JDK
J2EE
Using NetBeans IDE
Student Grouping
Quiz1
Using NetBeans IDE
What is IDE?
Integrated Development Environment
AKA: Integrated Design Environment, Integrated Debugging
Environment
A software application that provides comprehensive facilities to
computer programmers for software development
An IDE normally consists of a:
Source code editor
Compiler and/or interpreter
Build automation tools
Debugger
Using NetBeans IDE
Start/Departmental Apps/MIS/Sun Microsystems
Using NetBeans IDE
Steps in Programming on NetBeans IDE
To create a new project
A project is a comprehensive specification of a program under development.
Build automation tools
To edit a source code
Source code editor
To compile the source code to build a program
Compiler
A compiler is a computer program (or set of programs) that transforms source code written
in a computer language (the source language) into another computer language (the target
language, often having a binary form known as object code). The most common reason for
wanting to transform source code is to create an executable program.
To run the built program
To debug the program if necessary
Debugger
Debugging is a methodical process of finding and reducing the number of bugs, or defects,
in a computer program thus making it behave as expected.
Using NetBeans IDE
Steps in Programming on NetBeans IDE
To create a new project
A project is a comprehensive specification of a program under development.
Build automation tools
To edit a source code
Source code editor
To compile the source code to build a program
Compiler
A compiler is a computer program (or set of programs) that transforms source code written
in a computer language (the source language) into another computer language (the target
language, often having a binary form known as object code). The most common reason for
wanting to transform source code is to create an executable program.
To run the built program
To debug the program if necessary
Debugger
Debugging is a methodical process of finding and reducing the number of bugs, or defects,
in a computer program thus making it behave as expected.
Using NetBeans IDE File/New Project
Using NetBeans IDE Hello
Using NetBeans IDE
Using NetBeans IDE A project A folder
Using NetBeans IDE
Steps in Programming on NetBeans IDE
To create a new project
A project is a comprehensive specification of a program under development.
Build automation tools
To edit a source code
Source code editor
To compile the source code to build a program
Compiler
A compiler is a computer program (or set of programs) that transforms source code written
in a computer language (the source language) into another computer language (the target
language, often having a binary form known as object code). The most common reason for
wanting to transform source code is to create an executable program.
To run the built program
To debug the program if necessary
Debugger
Debugging is a methodical process of finding and reducing the number of bugs, or defects,
in a computer program thus making it behave as expected.
Using NetBeans IDE System.out.println("Hello");
Using NetBeans IDE
Steps in Programming on NetBeans IDE
To create a new project
A project is a comprehensive specification of a program under development.
Build automation tools
To edit a source code
Source code editor
To compile the source code to build a program
Compiler
A compiler is a computer program (or set of programs) that transforms source code written
in a computer language (the source language) into another computer language (the target
language, often having a binary form known as object code). The most common reason for
wanting to transform source code is to create an executable program.
To run the built program
To debug the program if necessary
Debugger
Debugging is a methodical process of finding and reducing the number of bugs, or defects,
in a computer program thus making it behave as expected.
Using NetBeans IDE Run/Build Main Project
Using NetBeans IDE
Steps in Programming on NetBeans IDE
To create a new project
A project is a comprehensive specification of a program under development.
Build automation tools
To edit a source code
Source code editor
To compile the source code to build a program
Compiler
A compiler is a computer program (or set of programs) that transforms source code written
in a computer language (the source language) into another computer language (the target
language, often having a binary form known as object code). The most common reason for
wanting to transform source code is to create an executable program.
To run the built program
To debug the program if necessary
Debugger
Debugging is a methodical process of finding and reducing the number of bugs, or defects,
in a computer program thus making it behave as expected.
Using NetBeans IDE Run/Run Main Project F6
Using NetBeans IDE start/run/Type "cmd"
Using NetBeans IDE Command Prompt
Using NetBeans IDE
cd "C:\Program Files\Java\jdk1.6.0_14\bin"
Using NetBeans IDE Copy Ctrl+C
Using NetBeans IDE Paste
Using NetBeans IDE
Exercise
Make a Java program which prints out like:
Hello
Hello2
Hello3
Hello4
Hello5
Using NetBeans IDE
Steps in Programming on NetBeans IDE
To create a new project
A project is a comprehensive specification of a program under development.
Build automation tools
To edit a source code
Source code editor
To compile the source code to build a program
Compiler
A compiler is a computer program (or set of programs) that transforms source code written
in a computer language (the source language) into another computer language (the target
language, often having a binary form known as object code). The most common reason for
wanting to transform source code is to create an executable program.
To run the built program
To debug the program if necessary
Debugger
Debugging is a methodical process of finding and reducing the number of bugs, or defects,
in a computer program thus making it behave as expected.
Using NetBeans IDE
Debug/Toggle Line Breakpoint Ctrl+F8
Using NetBeans IDE
Debug/Debug Main Project Ctrl+F5
Using NetBeans IDE Debug/Step Over F8
Using NetBeans IDE Debug/Step Over F8
Using NetBeans IDE Debug/Step Over F8
Using NetBeans IDE Debug/Step Over F8
Using NetBeans IDE Debug/Continue F5
Agenda
Downloading
JDK
jdk-6u14-windows-i586.exe
J2EE
java-tools-bundle-update7-windows.exe
Installing
JDK
J2EE
Using NetBeans IDE
Student Grouping
Quiz1
Student Grouping
Students should be grouped to complete quizzes and a
student presentation.
Group members’ names should be printed on a Letter size
paper and presented to instructor on 07/01/2009. Use the
Group Evaluation Form in the Course Documentation
section of Blackboard.
Group size will be notified by instructor during the class.
Agenda
Downloading
JDK
jdk-6u14-windows-i586.exe
J2EE
java-tools-bundle-update7-windows.exe
Installing
JDK
J2EE
Using NetBeans IDE
Student Grouping
Quiz1
Quiz 1 "Hello, Dr. Song!"
Develop a Java program which prints out "Hello, Dr. Song!" on
NetBeans IDE.
Project name
HelloDrSong
Note:
Due date: 07/01/2009
This quiz is a group project.
Each group of students should bring a program developed by each
group in a memory device on the due date and run the program
during the class.
Bring only the folders and files under "src" folder. Students would
create a new NetBeans project for the program during the class.
Instructor will evaluate the running result.
Evaluating Quiz 1
Run NetBeans IDE.
Create a project "HelloDrSong".
Overwrite the src folder in your memory device onto the src
folder under the "NetBeansProjects/HelloDrSong" folder.
Wait until instructor investigates the program.