Lab 1.pdf - CL309 Object Oriented Analysis and Design Lab #...

Doc Preview
Pages 32
Identified Q&As 14
Solutions available
Total views 5
CL309 Object Oriented Analysis and Design Lab # 01 Objectives: How to install and configure JDK (Java Development Kit) How to install and use Eclipse IDE for Java How to program in Java (Hello World) How to declare/define variables and use along with operators 1.Java Java Slogan ―Write once, run anywhere‖ Why Java? The computer world currently has many platforms. This has its pros and cons. On the one hand it gives more choices to people; on the other hand it becomes more and more difficult to produce software that runs on all platforms. With its Java Virtual Machine and API, the Java Platform provides an ideal solution to this as shown in Figure 2: Java independent of platform. The Java Platform is designed for running highly interactive, dynamic, and secure applets and applications on networked computer systems. For the end users,the platform provides live, interactive content on the World Wide Web, with just-in-time software access. Applications are readily available on all operating systems at once. Users do not have to choose operating systems based on the applications; they can run the applications on their favorite machines. Developerscan develop applications on one platform to deliver to that same platform -- the Java Platform, which is available on a wide variety of OS and hardware platforms. This reduces the developing cost. Basic Execution Cycle of Java: Cycle of Execution of a java Program is shown in the figure below.
Figure 1: Java Execution Cycle Figure 2: Java Independence of Platforms 1.1.Installation of Java Java might already be installed on your machine. You can test this by opening a console (if you are using Windows: Win+R, enter cmd and press Enter) and by typing in the following command: java -version
If Java is correctly installed, you should see some information about your Java installation. If the command line returns the information that the program could not be found, you have to install Java. 1.2.Downloading and Installing J2SE Software on Windows Platform To download J2SE for development visitand download J2SE on your machine. The java 2 Platform or (JDK) can be downloaded from the sun. Formerly known as the java Development kit, or JDK, Downloading java is really about downloading the java 2 platforms that come in three editions, J2ME, J2SE and J2EE. If you are learning java then you should start by downloading J2EE. Once you have downloaded the j2se on your system, you are ready to install. In the following section we will learn how to install jdk development environment on your machine. Here are the step to install JDK on your windows machine. Step 1 Double click the JDK downloaded file, the executable extracts the required contents to the temporary directory and then License agreement screen appears. On the license agreement page read and accept the license and the click the next button .
Step 2 The custom setup screen appears as follows.
Step 3 Click on the change button to change the installation directory to "c:\jdk1.5.0_06" as shown in the following screen.
Course Hero Badge

Want to read all 32 pages?

Previewing 6 of 32 pages Upload your study docs or become a member.
Course Hero Badge

Want to read all 32 pages?

Previewing 6 of 32 pages Upload your study docs or become a member.
Course Hero Badge

End of preview

Want to read all 32 pages? Upload your study docs or become a member.