SlideShare a Scribd company logo
INSTALLATION
JDK Installation
1. Download JDK 1.7 or above version from the following link:
http://www.oracle.com/technetwork/java/javase/downloads/index.html. Before
downloading check System type (32-bit / 64-bit) Operating System.
Note: Mac user can refer http://www.cs.princeton.edu/courses/archive/spr04/cos126/hello/mac.html
for more details.
2. Install the downloaded version into the system.
2.1. Accept the License.
2.2. Next set the location where you like to install Java. It is always recommended to
install in default path recommended by sun (D:Program FilesJavajdk1.7.0_25).
3. Set JAVA_HOME, PATH, CLASSPATH as follows:
Desktop  Right click on “Computer”  Properties  Advanced system settings
Environment Variables  Either in User variables or System variables section:
JAVA_HOME= D:Program FilesJavajdk1.7.0_25
PATH= .; D:Program FilesJavajdk1.7.0_25bin
CLASSPATH=.; D:Program FilesJavajdk1.7.0_25jrelibrt.jar
4. To verify whether you installed it and set the PATH and CLASSPATH, open new the
CMD prompt and test whether JAVAC or JAVA are working or not.
ECLIPSE CONFIGURATION
1. First download the appropriate version of Eclipse IDE from the following
link: http://www.eclipse.org/downloads/
2. Extract the files in that archive file into another
3. After extracting the files, open the eclipse IDE by clicking on the eclipse.exe
file.
4. While opening the IDE it will prompt you to select the workspace
(Workspace is the place where we create or store the class files and java
files). Specify the path where you want to create the workspace.
5. To create a new Java project by following steps…
6. After selecting the project a dialog will be appearing on the screen. Select
the “Java Project”.
Click on “Next”  Project Name: “Java Examples”  Finish
Creating Source Folder
For my convenience I would like to create separate source folder for every chapter.
Right Click on Project (Java Examples)  New  Source Folder  Give Name (Introduction)
 Finish.
Creating a Class in Eclipse: -
1. Right Click on the Source folder, Select “New” and Select “Class”
2. Create the class and give the name to it and click on finish.
Customizing the templates in Eclipse for easier use of IDE: -
1. Select the Window button in eclipse and select ‘Preferences’.
Then following dialog box will be opened.
2. Expand ‘java’ list in the left pane and Expand sub element-Editor
and select the Templates button in it.
3. To configure our own templates follow the following screen shots.
First select the “New…” button.
4. After creating this we can use “sop”+ctrl+space bar in place of
System.out.println();. It will make the developer work much
simpler…..
How to run java program using Eclipse
Right click on source code  Run As  Java Application
How to run java program with command line arguments using
Eclipse
Right click on source code  Run As  Run Configurations…  Select “Arguments” tab 
Program arguments  10 20  Apply  Run
How to Create packages in Eclipse
Right click on source folder  New  Packge  edu.aspire
Import Existing Project into Eclipse Workspace
FileImport  Expand “General” Select “Existing Projects into Workspace ”Next 
Select root directory Deselect All  Select Required project  Make Sure “Copy Projects
into workspace” is checked  Finish

More Related Content

What's hot

Ace user manual in english
Ace user manual in englishAce user manual in english
Ace user manual in english
Civil Engineers Forum
 
Taskbar & start menu properties
Taskbar & start menu propertiesTaskbar & start menu properties
Taskbar & start menu properties
Sabiry
 
Selenium - Installation
Selenium - InstallationSelenium - Installation
Selenium - Installation
Rajesh-QA
 
Selenium Installation
Selenium  InstallationSelenium  Installation
Selenium Installation
ANKUR-BA
 
desktop startmenu task bar
desktop startmenu task bardesktop startmenu task bar
desktop startmenu task bar
HARSH GOSWAMI
 
Selenium tools-installation
Selenium tools-installationSelenium tools-installation
Selenium tools-installation
IT eLearn
 
Selenium IDE and Extensions
Selenium IDE and ExtensionsSelenium IDE and Extensions
Selenium IDE and ExtensionsYana Altunyan
 
Windows 10 Technical Preview - http://f2suporte.blogspot.com
Windows 10 Technical Preview - http://f2suporte.blogspot.comWindows 10 Technical Preview - http://f2suporte.blogspot.com
Windows 10 Technical Preview - http://f2suporte.blogspot.com
Wlademir RS
 
Android Application Development Environment Setup
Android Application Development Environment SetupAndroid Application Development Environment Setup
Android Application Development Environment Setup
Ian Pinto
 
powershell ise.docx
powershell ise.docxpowershell ise.docx
powershell ise.docx
ssuser1eca7d
 
Unity 5 Overview
Unity 5 OverviewUnity 5 Overview
Unity 5 Overview
Shahed Chowdhuri
 
How to use the amazing CCK 2 tool to lock down Firefox
How to use the amazing CCK 2 tool to lock down Firefox How to use the amazing CCK 2 tool to lock down Firefox
How to use the amazing CCK 2 tool to lock down Firefox
Amsys
 
Mastering power shell - Windows
Mastering power shell - WindowsMastering power shell - Windows
Mastering power shell - Windows
Ariel Devulsky
 
Creating selenium remote control tests
Creating selenium remote control testsCreating selenium remote control tests
Creating selenium remote control tests
Dang Nguyen
 
installing SQL Server 2008
installing SQL Server 2008installing SQL Server 2008
installing SQL Server 2008
Raj Stha
 
World of Warcraft web 2.0
World of Warcraft web 2.0World of Warcraft web 2.0
World of Warcraft web 2.0
airkou1
 
Fix Shockwave Flash Crashes
Fix Shockwave Flash CrashesFix Shockwave Flash Crashes
Fix Shockwave Flash Crashes
Vikas Medhekar
 

What's hot (18)

Ace user manual in english
Ace user manual in englishAce user manual in english
Ace user manual in english
 
Taskbar & start menu properties
Taskbar & start menu propertiesTaskbar & start menu properties
Taskbar & start menu properties
 
Selenium - Installation
Selenium - InstallationSelenium - Installation
Selenium - Installation
 
Selenium Installation
Selenium  InstallationSelenium  Installation
Selenium Installation
 
desktop startmenu task bar
desktop startmenu task bardesktop startmenu task bar
desktop startmenu task bar
 
Selenium tools-installation
Selenium tools-installationSelenium tools-installation
Selenium tools-installation
 
Selenium IDE and Extensions
Selenium IDE and ExtensionsSelenium IDE and Extensions
Selenium IDE and Extensions
 
Windows 10 Technical Preview - http://f2suporte.blogspot.com
Windows 10 Technical Preview - http://f2suporte.blogspot.comWindows 10 Technical Preview - http://f2suporte.blogspot.com
Windows 10 Technical Preview - http://f2suporte.blogspot.com
 
Android Application Development Environment Setup
Android Application Development Environment SetupAndroid Application Development Environment Setup
Android Application Development Environment Setup
 
powershell ise.docx
powershell ise.docxpowershell ise.docx
powershell ise.docx
 
JAVA JDK INSTALLATION PROCEDURE
JAVA JDK INSTALLATION PROCEDUREJAVA JDK INSTALLATION PROCEDURE
JAVA JDK INSTALLATION PROCEDURE
 
Unity 5 Overview
Unity 5 OverviewUnity 5 Overview
Unity 5 Overview
 
How to use the amazing CCK 2 tool to lock down Firefox
How to use the amazing CCK 2 tool to lock down Firefox How to use the amazing CCK 2 tool to lock down Firefox
How to use the amazing CCK 2 tool to lock down Firefox
 
Mastering power shell - Windows
Mastering power shell - WindowsMastering power shell - Windows
Mastering power shell - Windows
 
Creating selenium remote control tests
Creating selenium remote control testsCreating selenium remote control tests
Creating selenium remote control tests
 
installing SQL Server 2008
installing SQL Server 2008installing SQL Server 2008
installing SQL Server 2008
 
World of Warcraft web 2.0
World of Warcraft web 2.0World of Warcraft web 2.0
World of Warcraft web 2.0
 
Fix Shockwave Flash Crashes
Fix Shockwave Flash CrashesFix Shockwave Flash Crashes
Fix Shockwave Flash Crashes
 

Similar to Installation

Installing JDK and first java program
Installing JDK and first java programInstalling JDK and first java program
Installing JDK and first java program
sunmitraeducation
 
Selenium tools-installation
Selenium tools-installationSelenium tools-installation
Selenium tools-installation
ITeLearn
 
Jdkeclipsevs
JdkeclipsevsJdkeclipsevs
Jdkeclipsevs
NITIN BHOPALE
 
Android chapter02-setup1-sdk
Android chapter02-setup1-sdkAndroid chapter02-setup1-sdk
Android chapter02-setup1-sdkTran Le Hoan
 
01 04 - android set up and creating an android project
01  04 - android set up and creating an android project01  04 - android set up and creating an android project
01 04 - android set up and creating an android project
Siva Kumar reddy Vasipally
 
Core java environment setup and details
Core java environment setup and detailsCore java environment setup and details
Core java environment setup and details
e-visionlabs
 
Android app upload
Android app uploadAndroid app upload
Step 8_7_ 6_5_4_3_2_ 1 in one_Tutorial for Begineer on Selenium Web Driver-Te...
Step 8_7_ 6_5_4_3_2_ 1 in one_Tutorial for Begineer on Selenium Web Driver-Te...Step 8_7_ 6_5_4_3_2_ 1 in one_Tutorial for Begineer on Selenium Web Driver-Te...
Step 8_7_ 6_5_4_3_2_ 1 in one_Tutorial for Begineer on Selenium Web Driver-Te...Rashedul Islam
 
How to install Java and how to set the path
How to install Java and how to set the pathHow to install Java and how to set the path
How to install Java and how to set the path
yesheeka
 
Selenium webdriver Setup | Selenium Webdriver with Java and Eclipse Setup
Selenium webdriver Setup | Selenium Webdriver with Java and Eclipse Setup Selenium webdriver Setup | Selenium Webdriver with Java and Eclipse Setup
Selenium webdriver Setup | Selenium Webdriver with Java and Eclipse Setup
ComputerTrainingsOnline
 
Android Lab
Android LabAndroid Lab
Android Lab
Leo Nguyen
 
12 installing eclipse
12   installing eclipse12   installing eclipse
12 installing eclipse
Zeeshan-Shaikh
 
Java Configuration on Windows Xp
Java Configuration on Windows XpJava Configuration on Windows Xp
Java Configuration on Windows XpAbdinav Kumar Singh
 
Bai thuc hanh lap trinh Android so 1
Bai thuc hanh lap trinh Android so 1Bai thuc hanh lap trinh Android so 1
Bai thuc hanh lap trinh Android so 1
Frank Pham
 
02.1 - Getting Started with Android
02.1 - Getting Started with Android02.1 - Getting Started with Android
02.1 - Getting Started with Android
Oum Saokosal
 
Developing Java SWT Applications - A Starter
Developing Java SWT Applications - A StarterDeveloping Java SWT Applications - A Starter
Developing Java SWT Applications - A Starter
vcaselli
 
Java Lab
Java LabJava Lab
Java Lab
Leo Nguyen
 
Maven TestNg frame work (1) (1)
Maven TestNg frame work (1) (1)Maven TestNg frame work (1) (1)
Maven TestNg frame work (1) (1)Gopi Raghavendra
 

Similar to Installation (20)

Installing JDK and first java program
Installing JDK and first java programInstalling JDK and first java program
Installing JDK and first java program
 
Selenium tools-installation
Selenium tools-installationSelenium tools-installation
Selenium tools-installation
 
Jdkeclipsevs
JdkeclipsevsJdkeclipsevs
Jdkeclipsevs
 
Android chapter02-setup1-sdk
Android chapter02-setup1-sdkAndroid chapter02-setup1-sdk
Android chapter02-setup1-sdk
 
01 04 - android set up and creating an android project
01  04 - android set up and creating an android project01  04 - android set up and creating an android project
01 04 - android set up and creating an android project
 
Core java environment setup and details
Core java environment setup and detailsCore java environment setup and details
Core java environment setup and details
 
Java part 1
Java part 1Java part 1
Java part 1
 
Android app upload
Android app uploadAndroid app upload
Android app upload
 
Step 8_7_ 6_5_4_3_2_ 1 in one_Tutorial for Begineer on Selenium Web Driver-Te...
Step 8_7_ 6_5_4_3_2_ 1 in one_Tutorial for Begineer on Selenium Web Driver-Te...Step 8_7_ 6_5_4_3_2_ 1 in one_Tutorial for Begineer on Selenium Web Driver-Te...
Step 8_7_ 6_5_4_3_2_ 1 in one_Tutorial for Begineer on Selenium Web Driver-Te...
 
How to install Java and how to set the path
How to install Java and how to set the pathHow to install Java and how to set the path
How to install Java and how to set the path
 
Selenium webdriver Setup | Selenium Webdriver with Java and Eclipse Setup
Selenium webdriver Setup | Selenium Webdriver with Java and Eclipse Setup Selenium webdriver Setup | Selenium Webdriver with Java and Eclipse Setup
Selenium webdriver Setup | Selenium Webdriver with Java and Eclipse Setup
 
Android Lab
Android LabAndroid Lab
Android Lab
 
12 installing eclipse
12   installing eclipse12   installing eclipse
12 installing eclipse
 
Java Configuration on Windows Xp
Java Configuration on Windows XpJava Configuration on Windows Xp
Java Configuration on Windows Xp
 
Bai thuc hanh lap trinh Android so 1
Bai thuc hanh lap trinh Android so 1Bai thuc hanh lap trinh Android so 1
Bai thuc hanh lap trinh Android so 1
 
02.1 - Getting Started with Android
02.1 - Getting Started with Android02.1 - Getting Started with Android
02.1 - Getting Started with Android
 
Developing Java SWT Applications - A Starter
Developing Java SWT Applications - A StarterDeveloping Java SWT Applications - A Starter
Developing Java SWT Applications - A Starter
 
Class 1 blog
Class 1 blogClass 1 blog
Class 1 blog
 
Java Lab
Java LabJava Lab
Java Lab
 
Maven TestNg frame work (1) (1)
Maven TestNg frame work (1) (1)Maven TestNg frame work (1) (1)
Maven TestNg frame work (1) (1)
 

Recently uploaded

Enhancing Research Orchestration Capabilities at ORNL.pdf
Enhancing Research Orchestration Capabilities at ORNL.pdfEnhancing Research Orchestration Capabilities at ORNL.pdf
Enhancing Research Orchestration Capabilities at ORNL.pdf
Globus
 
Globus Compute Introduction - GlobusWorld 2024
Globus Compute Introduction - GlobusWorld 2024Globus Compute Introduction - GlobusWorld 2024
Globus Compute Introduction - GlobusWorld 2024
Globus
 
Accelerate Enterprise Software Engineering with Platformless
Accelerate Enterprise Software Engineering with PlatformlessAccelerate Enterprise Software Engineering with Platformless
Accelerate Enterprise Software Engineering with Platformless
WSO2
 
Providing Globus Services to Users of JASMIN for Environmental Data Analysis
Providing Globus Services to Users of JASMIN for Environmental Data AnalysisProviding Globus Services to Users of JASMIN for Environmental Data Analysis
Providing Globus Services to Users of JASMIN for Environmental Data Analysis
Globus
 
Designing for Privacy in Amazon Web Services
Designing for Privacy in Amazon Web ServicesDesigning for Privacy in Amazon Web Services
Designing for Privacy in Amazon Web Services
KrzysztofKkol1
 
How to Position Your Globus Data Portal for Success Ten Good Practices
How to Position Your Globus Data Portal for Success Ten Good PracticesHow to Position Your Globus Data Portal for Success Ten Good Practices
How to Position Your Globus Data Portal for Success Ten Good Practices
Globus
 
Beyond Event Sourcing - Embracing CRUD for Wix Platform - Java.IL
Beyond Event Sourcing - Embracing CRUD for Wix Platform - Java.ILBeyond Event Sourcing - Embracing CRUD for Wix Platform - Java.IL
Beyond Event Sourcing - Embracing CRUD for Wix Platform - Java.IL
Natan Silnitsky
 
Corporate Management | Session 3 of 3 | Tendenci AMS
Corporate Management | Session 3 of 3 | Tendenci AMSCorporate Management | Session 3 of 3 | Tendenci AMS
Corporate Management | Session 3 of 3 | Tendenci AMS
Tendenci - The Open Source AMS (Association Management Software)
 
Cracking the code review at SpringIO 2024
Cracking the code review at SpringIO 2024Cracking the code review at SpringIO 2024
Cracking the code review at SpringIO 2024
Paco van Beckhoven
 
OpenFOAM solver for Helmholtz equation, helmholtzFoam / helmholtzBubbleFoam
OpenFOAM solver for Helmholtz equation, helmholtzFoam / helmholtzBubbleFoamOpenFOAM solver for Helmholtz equation, helmholtzFoam / helmholtzBubbleFoam
OpenFOAM solver for Helmholtz equation, helmholtzFoam / helmholtzBubbleFoam
takuyayamamoto1800
 
2024 RoOUG Security model for the cloud.pptx
2024 RoOUG Security model for the cloud.pptx2024 RoOUG Security model for the cloud.pptx
2024 RoOUG Security model for the cloud.pptx
Georgi Kodinov
 
GlobusWorld 2024 Opening Keynote session
GlobusWorld 2024 Opening Keynote sessionGlobusWorld 2024 Opening Keynote session
GlobusWorld 2024 Opening Keynote session
Globus
 
Prosigns: Transforming Business with Tailored Technology Solutions
Prosigns: Transforming Business with Tailored Technology SolutionsProsigns: Transforming Business with Tailored Technology Solutions
Prosigns: Transforming Business with Tailored Technology Solutions
Prosigns
 
Innovating Inference - Remote Triggering of Large Language Models on HPC Clus...
Innovating Inference - Remote Triggering of Large Language Models on HPC Clus...Innovating Inference - Remote Triggering of Large Language Models on HPC Clus...
Innovating Inference - Remote Triggering of Large Language Models on HPC Clus...
Globus
 
Understanding Globus Data Transfers with NetSage
Understanding Globus Data Transfers with NetSageUnderstanding Globus Data Transfers with NetSage
Understanding Globus Data Transfers with NetSage
Globus
 
Developing Distributed High-performance Computing Capabilities of an Open Sci...
Developing Distributed High-performance Computing Capabilities of an Open Sci...Developing Distributed High-performance Computing Capabilities of an Open Sci...
Developing Distributed High-performance Computing Capabilities of an Open Sci...
Globus
 
Into the Box 2024 - Keynote Day 2 Slides.pdf
Into the Box 2024 - Keynote Day 2 Slides.pdfInto the Box 2024 - Keynote Day 2 Slides.pdf
Into the Box 2024 - Keynote Day 2 Slides.pdf
Ortus Solutions, Corp
 
Field Employee Tracking System| MiTrack App| Best Employee Tracking Solution|...
Field Employee Tracking System| MiTrack App| Best Employee Tracking Solution|...Field Employee Tracking System| MiTrack App| Best Employee Tracking Solution|...
Field Employee Tracking System| MiTrack App| Best Employee Tracking Solution|...
informapgpstrackings
 
Software Testing Exam imp Ques Notes.pdf
Software Testing Exam imp Ques Notes.pdfSoftware Testing Exam imp Ques Notes.pdf
Software Testing Exam imp Ques Notes.pdf
MayankTawar1
 
TROUBLESHOOTING 9 TYPES OF OUTOFMEMORYERROR
TROUBLESHOOTING 9 TYPES OF OUTOFMEMORYERRORTROUBLESHOOTING 9 TYPES OF OUTOFMEMORYERROR
TROUBLESHOOTING 9 TYPES OF OUTOFMEMORYERROR
Tier1 app
 

Recently uploaded (20)

Enhancing Research Orchestration Capabilities at ORNL.pdf
Enhancing Research Orchestration Capabilities at ORNL.pdfEnhancing Research Orchestration Capabilities at ORNL.pdf
Enhancing Research Orchestration Capabilities at ORNL.pdf
 
Globus Compute Introduction - GlobusWorld 2024
Globus Compute Introduction - GlobusWorld 2024Globus Compute Introduction - GlobusWorld 2024
Globus Compute Introduction - GlobusWorld 2024
 
Accelerate Enterprise Software Engineering with Platformless
Accelerate Enterprise Software Engineering with PlatformlessAccelerate Enterprise Software Engineering with Platformless
Accelerate Enterprise Software Engineering with Platformless
 
Providing Globus Services to Users of JASMIN for Environmental Data Analysis
Providing Globus Services to Users of JASMIN for Environmental Data AnalysisProviding Globus Services to Users of JASMIN for Environmental Data Analysis
Providing Globus Services to Users of JASMIN for Environmental Data Analysis
 
Designing for Privacy in Amazon Web Services
Designing for Privacy in Amazon Web ServicesDesigning for Privacy in Amazon Web Services
Designing for Privacy in Amazon Web Services
 
How to Position Your Globus Data Portal for Success Ten Good Practices
How to Position Your Globus Data Portal for Success Ten Good PracticesHow to Position Your Globus Data Portal for Success Ten Good Practices
How to Position Your Globus Data Portal for Success Ten Good Practices
 
Beyond Event Sourcing - Embracing CRUD for Wix Platform - Java.IL
Beyond Event Sourcing - Embracing CRUD for Wix Platform - Java.ILBeyond Event Sourcing - Embracing CRUD for Wix Platform - Java.IL
Beyond Event Sourcing - Embracing CRUD for Wix Platform - Java.IL
 
Corporate Management | Session 3 of 3 | Tendenci AMS
Corporate Management | Session 3 of 3 | Tendenci AMSCorporate Management | Session 3 of 3 | Tendenci AMS
Corporate Management | Session 3 of 3 | Tendenci AMS
 
Cracking the code review at SpringIO 2024
Cracking the code review at SpringIO 2024Cracking the code review at SpringIO 2024
Cracking the code review at SpringIO 2024
 
OpenFOAM solver for Helmholtz equation, helmholtzFoam / helmholtzBubbleFoam
OpenFOAM solver for Helmholtz equation, helmholtzFoam / helmholtzBubbleFoamOpenFOAM solver for Helmholtz equation, helmholtzFoam / helmholtzBubbleFoam
OpenFOAM solver for Helmholtz equation, helmholtzFoam / helmholtzBubbleFoam
 
2024 RoOUG Security model for the cloud.pptx
2024 RoOUG Security model for the cloud.pptx2024 RoOUG Security model for the cloud.pptx
2024 RoOUG Security model for the cloud.pptx
 
GlobusWorld 2024 Opening Keynote session
GlobusWorld 2024 Opening Keynote sessionGlobusWorld 2024 Opening Keynote session
GlobusWorld 2024 Opening Keynote session
 
Prosigns: Transforming Business with Tailored Technology Solutions
Prosigns: Transforming Business with Tailored Technology SolutionsProsigns: Transforming Business with Tailored Technology Solutions
Prosigns: Transforming Business with Tailored Technology Solutions
 
Innovating Inference - Remote Triggering of Large Language Models on HPC Clus...
Innovating Inference - Remote Triggering of Large Language Models on HPC Clus...Innovating Inference - Remote Triggering of Large Language Models on HPC Clus...
Innovating Inference - Remote Triggering of Large Language Models on HPC Clus...
 
Understanding Globus Data Transfers with NetSage
Understanding Globus Data Transfers with NetSageUnderstanding Globus Data Transfers with NetSage
Understanding Globus Data Transfers with NetSage
 
Developing Distributed High-performance Computing Capabilities of an Open Sci...
Developing Distributed High-performance Computing Capabilities of an Open Sci...Developing Distributed High-performance Computing Capabilities of an Open Sci...
Developing Distributed High-performance Computing Capabilities of an Open Sci...
 
Into the Box 2024 - Keynote Day 2 Slides.pdf
Into the Box 2024 - Keynote Day 2 Slides.pdfInto the Box 2024 - Keynote Day 2 Slides.pdf
Into the Box 2024 - Keynote Day 2 Slides.pdf
 
Field Employee Tracking System| MiTrack App| Best Employee Tracking Solution|...
Field Employee Tracking System| MiTrack App| Best Employee Tracking Solution|...Field Employee Tracking System| MiTrack App| Best Employee Tracking Solution|...
Field Employee Tracking System| MiTrack App| Best Employee Tracking Solution|...
 
Software Testing Exam imp Ques Notes.pdf
Software Testing Exam imp Ques Notes.pdfSoftware Testing Exam imp Ques Notes.pdf
Software Testing Exam imp Ques Notes.pdf
 
TROUBLESHOOTING 9 TYPES OF OUTOFMEMORYERROR
TROUBLESHOOTING 9 TYPES OF OUTOFMEMORYERRORTROUBLESHOOTING 9 TYPES OF OUTOFMEMORYERROR
TROUBLESHOOTING 9 TYPES OF OUTOFMEMORYERROR
 

Installation

  • 1. INSTALLATION JDK Installation 1. Download JDK 1.7 or above version from the following link: http://www.oracle.com/technetwork/java/javase/downloads/index.html. Before downloading check System type (32-bit / 64-bit) Operating System. Note: Mac user can refer http://www.cs.princeton.edu/courses/archive/spr04/cos126/hello/mac.html for more details. 2. Install the downloaded version into the system.
  • 2. 2.1. Accept the License. 2.2. Next set the location where you like to install Java. It is always recommended to install in default path recommended by sun (D:Program FilesJavajdk1.7.0_25).
  • 3. 3. Set JAVA_HOME, PATH, CLASSPATH as follows: Desktop  Right click on “Computer”  Properties  Advanced system settings Environment Variables  Either in User variables or System variables section: JAVA_HOME= D:Program FilesJavajdk1.7.0_25 PATH= .; D:Program FilesJavajdk1.7.0_25bin CLASSPATH=.; D:Program FilesJavajdk1.7.0_25jrelibrt.jar 4. To verify whether you installed it and set the PATH and CLASSPATH, open new the CMD prompt and test whether JAVAC or JAVA are working or not.
  • 4. ECLIPSE CONFIGURATION 1. First download the appropriate version of Eclipse IDE from the following link: http://www.eclipse.org/downloads/ 2. Extract the files in that archive file into another 3. After extracting the files, open the eclipse IDE by clicking on the eclipse.exe file. 4. While opening the IDE it will prompt you to select the workspace (Workspace is the place where we create or store the class files and java files). Specify the path where you want to create the workspace. 5. To create a new Java project by following steps… 6. After selecting the project a dialog will be appearing on the screen. Select the “Java Project”.
  • 5. Click on “Next”  Project Name: “Java Examples”  Finish
  • 6. Creating Source Folder For my convenience I would like to create separate source folder for every chapter. Right Click on Project (Java Examples)  New  Source Folder  Give Name (Introduction)  Finish. Creating a Class in Eclipse: - 1. Right Click on the Source folder, Select “New” and Select “Class”
  • 7. 2. Create the class and give the name to it and click on finish.
  • 8. Customizing the templates in Eclipse for easier use of IDE: - 1. Select the Window button in eclipse and select ‘Preferences’. Then following dialog box will be opened.
  • 9. 2. Expand ‘java’ list in the left pane and Expand sub element-Editor and select the Templates button in it.
  • 10. 3. To configure our own templates follow the following screen shots. First select the “New…” button. 4. After creating this we can use “sop”+ctrl+space bar in place of System.out.println();. It will make the developer work much simpler….. How to run java program using Eclipse Right click on source code  Run As  Java Application How to run java program with command line arguments using Eclipse Right click on source code  Run As  Run Configurations…  Select “Arguments” tab  Program arguments  10 20  Apply  Run How to Create packages in Eclipse
  • 11. Right click on source folder  New  Packge  edu.aspire Import Existing Project into Eclipse Workspace FileImport  Expand “General” Select “Existing Projects into Workspace ”Next  Select root directory Deselect All  Select Required project  Make Sure “Copy Projects into workspace” is checked  Finish