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