SlideShare a Scribd company logo
COP 3530
JDK Environment Variables
COP 3530
JDK Environment Variables

Environment Variables

•Environment variables are a set of dynamic values that can affect the way processes
behave on a computer. [1]
COP 3530
JDK Environment Variables

PATH

•PATH is an environment variable listing a set of paths to directories where
executables may be found. [2]
COP 3530
JDK Environment Variables

CLASSPATH

•CLASSPATH is an environment variable that tells the Java Virtual Machine where to
look for user-defined classes and packages in Java programs. [3]
COP 3530
JDK Environment Variables
Setting the PATH and CLASSPATH in Microsoft Windows Vista

•Step 1: Click Start → Control Panel → System and Maintenance → System.
COP 3530
JDK Environment Variables
Setting the PATH and CLASSPATH in Microsoft Windows Vista

•Step 2: Select Advanced system settings.
COP 3530
JDK Environment Variables
Setting the PATH and CLASSPATH in Microsoft Windows Vista

•Step 3: On the Advanced tab of the System Properties window, select Environment
Variables.
COP 3530
JDK Environment Variables
Setting the PATH

•Step 4a: Update your system PATH by selecting it in the
System variables list and clicking Edit. If the PATH variable
does not exit, create a new one via New.

Append the location of the bin folder of your JDK
installation to PATH in System variables. A typical value for
the location is below.

C:Program FilesJavajdk1.6.0_<version>bin.

The PATH environment variable is a series of directories
separated by semi-colons (;) and is not case sensitive.
Microsoft Windows looks for programs in the PATH
directories in order, from left to right.
You should only have one bin directory for a JDK in the path
at a time.
If you are not sure where to add the path, append it to the
right end of the PATH.
The new path takes effect in each new command window
you open after setting the PATH variable.
COP 3530
JDK Environment Variables
Setting the CLASSPATH

•Step 4b: Update your user CLASSPATH by selecting it in the
User variables list and clicking Edit. If the CLASSPATH
variable does not exit, create a new one via New.

Append the working directory (if it is not listed) and the
directory of the code for the textbook. An example entry is
below.

.; C:COP3530eprogs

The symbol “.” signifies the working directory.
The changes take effect in each new command window you
open after setting the CLASSPATH variable.
COP 3530
JDK Environment Variables
Setting the PATH and CLASSPATH in Microsoft Windows
•Step 5: Test your settings.

Open a command prompt and go to the directory of the code for the texbook.   Enter the
dataStructures directory, then run the commands below at the prompt.

javac ArrayLinearList.java
java dataStructures.ArrayLinearList

The desired output is below.

Initial size is 0
The list is empty
List size is 4
The list is [1, 2, 4, 6]
The index of 4 is 2
3 not found
Element at 0 is 1
Element at 3 is 6
2 removed
The list is [1, 4, 6]
6 removed
The list is [1, 4]
The list is not empty
COP 3530
JDK Environment Variables

References

•[1] http://en.wikipedia.org/wiki/Environment_variable
•[2] http://en.wikipedia.org/wiki/Path_(computing)
•[3] http://en.wikipedia.org/wiki/Classpath_(Java)

More Related Content

Viewers also liked

Using Events As Content Marketing
Using Events As Content MarketingUsing Events As Content Marketing
Using Events As Content Marketing
Jeff Hurt
 
21 ways to boost your event
21 ways to boost your event21 ways to boost your event
21 ways to boost your event
Cyriel Kortleven
 
Content Marketing for Events
Content Marketing for EventsContent Marketing for Events
Content Marketing for Events
Joe Pulizzi
 
Ratio Analysis of Coca-Cola
Ratio Analysis of Coca-ColaRatio Analysis of Coca-Cola
Ratio Analysis of Coca-Cola
Wajid Ali
 
Promotion mix of coca cola
Promotion mix of coca colaPromotion mix of coca cola
Promotion mix of coca colaPraful Metange
 
Event planning powerpoint
Event planning powerpointEvent planning powerpoint
Event planning powerpoint
katelandturner
 
Effective Social Media For Event Exhibitors
Effective Social Media For Event ExhibitorsEffective Social Media For Event Exhibitors
Effective Social Media For Event Exhibitors
Web 2.0 Expo
 
Heineken Case Study business Analysis
Heineken Case Study business AnalysisHeineken Case Study business Analysis
Heineken Case Study business Analysis
jin88lin
 

Viewers also liked (10)

Using Events As Content Marketing
Using Events As Content MarketingUsing Events As Content Marketing
Using Events As Content Marketing
 
21 ways to boost your event
21 ways to boost your event21 ways to boost your event
21 ways to boost your event
 
Content Marketing for Events
Content Marketing for EventsContent Marketing for Events
Content Marketing for Events
 
Heineken - Global Marketing
Heineken - Global MarketingHeineken - Global Marketing
Heineken - Global Marketing
 
Event management
Event managementEvent management
Event management
 
Ratio Analysis of Coca-Cola
Ratio Analysis of Coca-ColaRatio Analysis of Coca-Cola
Ratio Analysis of Coca-Cola
 
Promotion mix of coca cola
Promotion mix of coca colaPromotion mix of coca cola
Promotion mix of coca cola
 
Event planning powerpoint
Event planning powerpointEvent planning powerpoint
Event planning powerpoint
 
Effective Social Media For Event Exhibitors
Effective Social Media For Event ExhibitorsEffective Social Media For Event Exhibitors
Effective Social Media For Event Exhibitors
 
Heineken Case Study business Analysis
Heineken Case Study business AnalysisHeineken Case Study business Analysis
Heineken Case Study business Analysis
 

Similar to Env

Setup Java Path and classpath (from the java™ tutorials essential classes -...
Setup Java Path and classpath (from the java™ tutorials   essential classes -...Setup Java Path and classpath (from the java™ tutorials   essential classes -...
Setup Java Path and classpath (from the java™ tutorials essential classes -...
Louis Slabbert
 
Oracle applications r12.2, ebr, online patching means lot of work for devel...
Oracle applications r12.2, ebr, online patching   means lot of work for devel...Oracle applications r12.2, ebr, online patching   means lot of work for devel...
Oracle applications r12.2, ebr, online patching means lot of work for devel...
Ajith Narayanan
 
SSIS : Ftp and script task
SSIS : Ftp and script taskSSIS : Ftp and script task
SSIS : Ftp and script task
Kiki Noviandi
 
2) java development
2) java development2) java development
2) java developmenttechbed
 
Upgrading to MongoDB 4.0 from older versions
Upgrading to MongoDB 4.0 from older versionsUpgrading to MongoDB 4.0 from older versions
Upgrading to MongoDB 4.0 from older versions
Antonios Giannopoulos
 
Salesforce Developer Console ppt
Salesforce Developer Console  pptSalesforce Developer Console  ppt
Salesforce Developer Console ppt
Kuhinoor Alom
 
Software Qualitiy with Sonar Tool 2013_4
Software Qualitiy with Sonar Tool 2013_4Software Qualitiy with Sonar Tool 2013_4
Software Qualitiy with Sonar Tool 2013_4
Max Kleiner
 
0396 oracle-goldengate-12c-tutorial
0396 oracle-goldengate-12c-tutorial0396 oracle-goldengate-12c-tutorial
0396 oracle-goldengate-12c-tutorial
KlausePaulino
 
patchVantage Cloud Starter Pack
patchVantage Cloud Starter Pack patchVantage Cloud Starter Pack
patchVantage Cloud Starter Pack
David McNish
 
Linq to sql
Linq to sqlLinq to sql
Linq to sql
Muhammad Younis
 
It203 class slides-unit5
It203 class slides-unit5It203 class slides-unit5
It203 class slides-unit5Matthew Moldvan
 
COE2010 Razorleaf Setting Up Catalogs in ENOVIA SmarTeam
COE2010 Razorleaf Setting Up Catalogs in ENOVIA SmarTeamCOE2010 Razorleaf Setting Up Catalogs in ENOVIA SmarTeam
COE2010 Razorleaf Setting Up Catalogs in ENOVIA SmarTeam
Razorleaf Corporation
 
Test Management Tool HP ALM- Quality Center Part 2
Test Management Tool  HP ALM- Quality Center Part 2Test Management Tool  HP ALM- Quality Center Part 2
Test Management Tool HP ALM- Quality Center Part 2
Murageppa-QA
 
Quality Center
Quality CenterQuality Center
Quality Center
Sachin-QA
 
Test Management Tool HP ALM- Quality Center Part 1
Test Management Tool  HP ALM- Quality Center Part 1Test Management Tool  HP ALM- Quality Center Part 1
Test Management Tool HP ALM- Quality Center Part 1
Murageppa-QA
 
HP Quality Center
HP Quality CenterHP Quality Center
HP Quality Center
ANKUR-BA
 
3 introduction-php-mvc-cakephp-m3-getting-started-slides
3 introduction-php-mvc-cakephp-m3-getting-started-slides3 introduction-php-mvc-cakephp-m3-getting-started-slides
3 introduction-php-mvc-cakephp-m3-getting-started-slidesMasterCode.vn
 
Sample Questions The following sample questions are not in.docx
Sample Questions The following sample questions are not in.docxSample Questions The following sample questions are not in.docx
Sample Questions The following sample questions are not in.docx
todd331
 
CORE JAVA ETHNOTECHSTANDARDTEMPLATE.pptx
CORE JAVA ETHNOTECHSTANDARDTEMPLATE.pptxCORE JAVA ETHNOTECHSTANDARDTEMPLATE.pptx
CORE JAVA ETHNOTECHSTANDARDTEMPLATE.pptx
DineshKumar A
 

Similar to Env (20)

Setup Java Path and classpath (from the java™ tutorials essential classes -...
Setup Java Path and classpath (from the java™ tutorials   essential classes -...Setup Java Path and classpath (from the java™ tutorials   essential classes -...
Setup Java Path and classpath (from the java™ tutorials essential classes -...
 
Oracle applications r12.2, ebr, online patching means lot of work for devel...
Oracle applications r12.2, ebr, online patching   means lot of work for devel...Oracle applications r12.2, ebr, online patching   means lot of work for devel...
Oracle applications r12.2, ebr, online patching means lot of work for devel...
 
TAFJ
TAFJTAFJ
TAFJ
 
SSIS : Ftp and script task
SSIS : Ftp and script taskSSIS : Ftp and script task
SSIS : Ftp and script task
 
2) java development
2) java development2) java development
2) java development
 
Upgrading to MongoDB 4.0 from older versions
Upgrading to MongoDB 4.0 from older versionsUpgrading to MongoDB 4.0 from older versions
Upgrading to MongoDB 4.0 from older versions
 
Salesforce Developer Console ppt
Salesforce Developer Console  pptSalesforce Developer Console  ppt
Salesforce Developer Console ppt
 
Software Qualitiy with Sonar Tool 2013_4
Software Qualitiy with Sonar Tool 2013_4Software Qualitiy with Sonar Tool 2013_4
Software Qualitiy with Sonar Tool 2013_4
 
0396 oracle-goldengate-12c-tutorial
0396 oracle-goldengate-12c-tutorial0396 oracle-goldengate-12c-tutorial
0396 oracle-goldengate-12c-tutorial
 
patchVantage Cloud Starter Pack
patchVantage Cloud Starter Pack patchVantage Cloud Starter Pack
patchVantage Cloud Starter Pack
 
Linq to sql
Linq to sqlLinq to sql
Linq to sql
 
It203 class slides-unit5
It203 class slides-unit5It203 class slides-unit5
It203 class slides-unit5
 
COE2010 Razorleaf Setting Up Catalogs in ENOVIA SmarTeam
COE2010 Razorleaf Setting Up Catalogs in ENOVIA SmarTeamCOE2010 Razorleaf Setting Up Catalogs in ENOVIA SmarTeam
COE2010 Razorleaf Setting Up Catalogs in ENOVIA SmarTeam
 
Test Management Tool HP ALM- Quality Center Part 2
Test Management Tool  HP ALM- Quality Center Part 2Test Management Tool  HP ALM- Quality Center Part 2
Test Management Tool HP ALM- Quality Center Part 2
 
Quality Center
Quality CenterQuality Center
Quality Center
 
Test Management Tool HP ALM- Quality Center Part 1
Test Management Tool  HP ALM- Quality Center Part 1Test Management Tool  HP ALM- Quality Center Part 1
Test Management Tool HP ALM- Quality Center Part 1
 
HP Quality Center
HP Quality CenterHP Quality Center
HP Quality Center
 
3 introduction-php-mvc-cakephp-m3-getting-started-slides
3 introduction-php-mvc-cakephp-m3-getting-started-slides3 introduction-php-mvc-cakephp-m3-getting-started-slides
3 introduction-php-mvc-cakephp-m3-getting-started-slides
 
Sample Questions The following sample questions are not in.docx
Sample Questions The following sample questions are not in.docxSample Questions The following sample questions are not in.docx
Sample Questions The following sample questions are not in.docx
 
CORE JAVA ETHNOTECHSTANDARDTEMPLATE.pptx
CORE JAVA ETHNOTECHSTANDARDTEMPLATE.pptxCORE JAVA ETHNOTECHSTANDARDTEMPLATE.pptx
CORE JAVA ETHNOTECHSTANDARDTEMPLATE.pptx
 

Recently uploaded

DevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA ConnectDevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA Connect
Kari Kakkonen
 
The Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and SalesThe Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and Sales
Laura Byrne
 
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
James Anderson
 
zkStudyClub - Reef: Fast Succinct Non-Interactive Zero-Knowledge Regex Proofs
zkStudyClub - Reef: Fast Succinct Non-Interactive Zero-Knowledge Regex ProofszkStudyClub - Reef: Fast Succinct Non-Interactive Zero-Knowledge Regex Proofs
zkStudyClub - Reef: Fast Succinct Non-Interactive Zero-Knowledge Regex Proofs
Alex Pruden
 
Epistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI supportEpistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI support
Alan Dix
 
RESUME BUILDER APPLICATION Project for students
RESUME BUILDER APPLICATION Project for studentsRESUME BUILDER APPLICATION Project for students
RESUME BUILDER APPLICATION Project for students
KAMESHS29
 
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
SOFTTECHHUB
 
Communications Mining Series - Zero to Hero - Session 1
Communications Mining Series - Zero to Hero - Session 1Communications Mining Series - Zero to Hero - Session 1
Communications Mining Series - Zero to Hero - Session 1
DianaGray10
 
GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024
GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024
GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024
Neo4j
 
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
Neo4j
 
Video Streaming: Then, Now, and in the Future
Video Streaming: Then, Now, and in the FutureVideo Streaming: Then, Now, and in the Future
Video Streaming: Then, Now, and in the Future
Alpen-Adria-Universität
 
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdfFIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance
 
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Albert Hoitingh
 
Secstrike : Reverse Engineering & Pwnable tools for CTF.pptx
Secstrike : Reverse Engineering & Pwnable tools for CTF.pptxSecstrike : Reverse Engineering & Pwnable tools for CTF.pptx
Secstrike : Reverse Engineering & Pwnable tools for CTF.pptx
nkrafacyberclub
 
20240609 QFM020 Irresponsible AI Reading List May 2024
20240609 QFM020 Irresponsible AI Reading List May 202420240609 QFM020 Irresponsible AI Reading List May 2024
20240609 QFM020 Irresponsible AI Reading List May 2024
Matthew Sinclair
 
Goodbye Windows 11: Make Way for Nitrux Linux 3.5.0!
Goodbye Windows 11: Make Way for Nitrux Linux 3.5.0!Goodbye Windows 11: Make Way for Nitrux Linux 3.5.0!
Goodbye Windows 11: Make Way for Nitrux Linux 3.5.0!
SOFTTECHHUB
 
Artificial Intelligence for XMLDevelopment
Artificial Intelligence for XMLDevelopmentArtificial Intelligence for XMLDevelopment
Artificial Intelligence for XMLDevelopment
Octavian Nadolu
 
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdfObservability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Paige Cruz
 
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
Neo4j
 
Elizabeth Buie - Older adults: Are we really designing for our future selves?
Elizabeth Buie - Older adults: Are we really designing for our future selves?Elizabeth Buie - Older adults: Are we really designing for our future selves?
Elizabeth Buie - Older adults: Are we really designing for our future selves?
Nexer Digital
 

Recently uploaded (20)

DevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA ConnectDevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA Connect
 
The Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and SalesThe Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and Sales
 
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
 
zkStudyClub - Reef: Fast Succinct Non-Interactive Zero-Knowledge Regex Proofs
zkStudyClub - Reef: Fast Succinct Non-Interactive Zero-Knowledge Regex ProofszkStudyClub - Reef: Fast Succinct Non-Interactive Zero-Knowledge Regex Proofs
zkStudyClub - Reef: Fast Succinct Non-Interactive Zero-Knowledge Regex Proofs
 
Epistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI supportEpistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI support
 
RESUME BUILDER APPLICATION Project for students
RESUME BUILDER APPLICATION Project for studentsRESUME BUILDER APPLICATION Project for students
RESUME BUILDER APPLICATION Project for students
 
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
 
Communications Mining Series - Zero to Hero - Session 1
Communications Mining Series - Zero to Hero - Session 1Communications Mining Series - Zero to Hero - Session 1
Communications Mining Series - Zero to Hero - Session 1
 
GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024
GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024
GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024
 
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
 
Video Streaming: Then, Now, and in the Future
Video Streaming: Then, Now, and in the FutureVideo Streaming: Then, Now, and in the Future
Video Streaming: Then, Now, and in the Future
 
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdfFIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
 
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
 
Secstrike : Reverse Engineering & Pwnable tools for CTF.pptx
Secstrike : Reverse Engineering & Pwnable tools for CTF.pptxSecstrike : Reverse Engineering & Pwnable tools for CTF.pptx
Secstrike : Reverse Engineering & Pwnable tools for CTF.pptx
 
20240609 QFM020 Irresponsible AI Reading List May 2024
20240609 QFM020 Irresponsible AI Reading List May 202420240609 QFM020 Irresponsible AI Reading List May 2024
20240609 QFM020 Irresponsible AI Reading List May 2024
 
Goodbye Windows 11: Make Way for Nitrux Linux 3.5.0!
Goodbye Windows 11: Make Way for Nitrux Linux 3.5.0!Goodbye Windows 11: Make Way for Nitrux Linux 3.5.0!
Goodbye Windows 11: Make Way for Nitrux Linux 3.5.0!
 
Artificial Intelligence for XMLDevelopment
Artificial Intelligence for XMLDevelopmentArtificial Intelligence for XMLDevelopment
Artificial Intelligence for XMLDevelopment
 
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdfObservability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
 
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
 
Elizabeth Buie - Older adults: Are we really designing for our future selves?
Elizabeth Buie - Older adults: Are we really designing for our future selves?Elizabeth Buie - Older adults: Are we really designing for our future selves?
Elizabeth Buie - Older adults: Are we really designing for our future selves?
 

Env

  • 2. COP 3530 JDK Environment Variables Environment Variables •Environment variables are a set of dynamic values that can affect the way processes behave on a computer. [1]
  • 3. COP 3530 JDK Environment Variables PATH •PATH is an environment variable listing a set of paths to directories where executables may be found. [2]
  • 4. COP 3530 JDK Environment Variables CLASSPATH •CLASSPATH is an environment variable that tells the Java Virtual Machine where to look for user-defined classes and packages in Java programs. [3]
  • 5. COP 3530 JDK Environment Variables Setting the PATH and CLASSPATH in Microsoft Windows Vista •Step 1: Click Start → Control Panel → System and Maintenance → System.
  • 6. COP 3530 JDK Environment Variables Setting the PATH and CLASSPATH in Microsoft Windows Vista •Step 2: Select Advanced system settings.
  • 7. COP 3530 JDK Environment Variables Setting the PATH and CLASSPATH in Microsoft Windows Vista •Step 3: On the Advanced tab of the System Properties window, select Environment Variables.
  • 8. COP 3530 JDK Environment Variables Setting the PATH •Step 4a: Update your system PATH by selecting it in the System variables list and clicking Edit. If the PATH variable does not exit, create a new one via New. Append the location of the bin folder of your JDK installation to PATH in System variables. A typical value for the location is below. C:Program FilesJavajdk1.6.0_<version>bin. The PATH environment variable is a series of directories separated by semi-colons (;) and is not case sensitive. Microsoft Windows looks for programs in the PATH directories in order, from left to right. You should only have one bin directory for a JDK in the path at a time. If you are not sure where to add the path, append it to the right end of the PATH. The new path takes effect in each new command window you open after setting the PATH variable.
  • 9. COP 3530 JDK Environment Variables Setting the CLASSPATH •Step 4b: Update your user CLASSPATH by selecting it in the User variables list and clicking Edit. If the CLASSPATH variable does not exit, create a new one via New. Append the working directory (if it is not listed) and the directory of the code for the textbook. An example entry is below. .; C:COP3530eprogs The symbol “.” signifies the working directory. The changes take effect in each new command window you open after setting the CLASSPATH variable.
  • 10. COP 3530 JDK Environment Variables Setting the PATH and CLASSPATH in Microsoft Windows •Step 5: Test your settings. Open a command prompt and go to the directory of the code for the texbook. Enter the dataStructures directory, then run the commands below at the prompt. javac ArrayLinearList.java java dataStructures.ArrayLinearList The desired output is below. Initial size is 0 The list is empty List size is 4 The list is [1, 2, 4, 6] The index of 4 is 2 3 not found Element at 0 is 1 Element at 3 is 6 2 removed The list is [1, 4, 6] 6 removed The list is [1, 4] The list is not empty
  • 11. COP 3530 JDK Environment Variables References •[1] http://en.wikipedia.org/wiki/Environment_variable •[2] http://en.wikipedia.org/wiki/Path_(computing) •[3] http://en.wikipedia.org/wiki/Classpath_(Java)

Editor's Notes

  1. 09/03/12