2. What is an IDE ?
Integrated Development Environment or Interactive Development
Environment.
A software application that is used for Software Development.
E.g. : CodeLite for C/C++, Android Studio for building Android
apps, Xcode for OS X and iOS and many more
Has inbuilt compiler, interpreter or both.
Some special functionalities like Version Control System, Graphical
User Interface etc.
Open source IDEs with free distribution
E.g. : IDLE (Python GUI), Android Studio, NetBeans etc.
Proprietary IDEs
E.g. : Flash Builder for ActionScript, Microsoft Visual Studio,
LispWorks for Lisp etc.
Cross-Platform IDEs
E.g. : NetBeans C/C++ Development pack, CodeLite, Eclipse etc.
3. What is Eclipse?
An Integrated Development
Environment
Provides many features to ease Java
programming (and others, e.g. C/C++)
Editor
Debugger
Source Control
…
4. Getting Eclipse
At home…
Download the latest version at:
http://www.eclipse.org/
You may need to install Java SDK1.5 or JRE if
you haven’t from
http://java.sun.com/javase/downloads/index_jdk5.jsp
For help, send email to the course mailing list
5. Installing and Running Eclipse
Installation is very simple
Just unpack the downloaded package
Running Eclipse
Then click eclipse.exe (under Windows)
Run eclipse (under Linux)
Eclipse will start running if all the prerequisites are
met
Demo: Run Eclipse
12. Creating Java Packages
A Package in Java is a group of classes
which are often closely or logically related in
some way
Package corresponds to the directory
hierarchy in the file system.
course.cs112b1.assignment1
Organizing source files into different
packages is a good programming style.
Demo: creating a package
13. Adding Java Classes
Class is the basic compilation unit in
Java.
Demo: Creating the Employee class of
assignment1
14. Import existing files
Some files are given and you want to import
them to your projects rather than creating
them again
Demo: Importing other files of assignment1 to
the project
You can also copy-and-paste files to your
project folder
Refresh the file view if you don’t see them
15. Running the code
Currently, no implementation is provided in
the given files. You are expected to fill the
implementation details.
We need a class which has a main() method
as the entrance for execution
Demo: Adding the main() method in
TestPayroll.java and run the program