Object Oriented Programming 3rd Semester Computer Engineering LAB 1 (Part II) Introduction to DrJava Objective The main objective of this Lab is to familiarize the students with DrJava. DrJava is a programming environment for Java designed specifically for beginners. Additionally, it is also suitable for advanced program development. To start using DrJava please follow the following steps to make DrJava up and running. Steps 1. Download jdk1.5 from http://java.sun.com/javase/downloads/index_jdk5.jsp A JDK distribution consists of a JRE distribution (a Java Virtual Machine implementation) plus a collection of development tools including javac, a Java compiler, and javadoc, Java documentation generator. DrJava requires a JDK installation because it uses both javac and javadoc as plug-in components. Without these components, DrJava can only edit Java programs; it cannot execute them or generate documentation for them. 2. Download ‘Current stable release’ of Dr Java from the following website and save it locally at an appropriate location. http://www.drjava.org/ 3. Find the file you just downloaded and double-click its icon. The icon looks like this 4. A splash will appear. The splash screen may be quickly replaced by an error message. University of Engineering and Technology Taxila Object Oriented Programming 3rd Semester Computer Engineering If so , Click Yes. A file open dialog will appear. Use it to find the tools.jar file. It should be located in C:\java\jdk1.5\lib\. Click Open. 5. Dr. Java will begin running. University of Engineering and Technology Taxila Object Oriented Programming 3rd Semester Computer Engineering Exploring DrJava Menu Items Before discovering Menu items we must know some conventions. 6. File Menu By clicking file menu you will find options like Open, Save, Save As, Rename, Close, Print etc. University of Engineering and Technology Taxila Object Oriented Programming 3rd Semester Computer Engineering 7. Project Menu By clicking project menu you will find options like New, Open and Save project. 8. Help Menu By Pressing F1 Key on keyboard or by clicking help University of Engineering and Technology Taxila Object Oriented Programming 3rd Semester Computer Engineering Help page will be open where you can find a huge and brief collection of help regarding drjava.If you face any problem you can get help from it. 9. Interaction Pane Allows you to enter and evaluate Java statements and expressions on the fly. This is remarkably useful for beginning students, who no longer have to learn to write main methods, recompile, and run programs from a command line simply to test how a new class or method behaves. Simply define variables and call methods as you would in an ordinary method, or even define new classes and methods and call them interactively. 10. You will find most commonly used items on main screen 11. Compile This button compile the source code in the main window. Run This button runs the compiled program. Reset This button reset the interaction pane. Javadoc It generates the documentation of this program. University of Engineering and Technology Taxila Object Oriented Programming 3rd Semester Computer Engineering 12. For Further Help read ‘Quick start guide’ and ‘Documentation’ from http://www.drjava.org/ References http://drjava.sourceforge.net/devdocs/ http://www.learningwithrobots.com/installDoc/DrJava/DrJava.html http://www.google.com http://drjava.sourceforge.net/userdocs/ University of Engineering and Technology Taxila .
Details
-
File Typepdf
-
Upload Time-
-
Content LanguagesEnglish
-
Upload UserAnonymous/Not logged-in
-
File Pages6 Page
-
File Size-