i
Understanding Requirement: Why Java
Why Java is important to the Internet
Java On Linux
First Java Program
Java Virtual Machine Architecture
Class Loading Process by Class Loaders
Role Of Just In Time Compiler
Execution Engine
Data Types
Variables
Arrays
Operators
Arithmetic Operations
Shifting Operators
Logical Operators
Control Statements
Object Oriented Paradigms
The Three OOP principles
Looping Statements
JAVA Class Fundamentals
Command Line Arguments
Static Initialize
Creating an Object
Instance Variable Hiding
Overriding and Overloading of methods
Understanding The Access Controls
Nested And Inner Classes
Dynamic Method Dispatching
Abstract Classes
Using Final To Prevent Overriding & Inheritance
Garbage Collection
Defining a package
Understanding Classpath
Access Protection
Importing packages
Defining and Implementing An Interface
Abstract classes vs Interfaces
Generics
Annotations
Varargs
Foreach
Fundamentals Of Exception Handling
Types Of Exceptions
Learning exception handling, try-catch, multiple catch clauses
Nested Try Statements
Throw, Throws and Finally
Custom Exceptions
Java Thread Model
Creating A Thread
Context Switching
Synchronization: Methods And Statements
Inter-thread Communication
CLASSPATH is an environment variable (i.e., global variables of the operating system available to all the processes) which is needed for the Java compiler and runtime in order to locate the packages/classes used in a Java program. It is similar to another environment variable PATH, which is used by the Command shell in order to find the executable programs.
CLASSPATH can be set in with the following ways:
CLASSPATH can be set constantly in the environment: In Windows operation system, steps are following: GO TO control panel ⇒ System ⇒ Advanced ⇒ Environment Variables ⇒ choose “System Variables” (for all the users) or “User Variables” (If we want only for the current logged in user) ⇒ choose “Edit” (in case if CLASSPATH already exists) or “New” ⇒ Enter “CLASSPATH” as the variable name ⇒ Enter the required directories and JAR files (separated by semicolons) as the value (e.g., “.;c:\myProject\classes;d:\tomcat\lib\servlet-api.jar”). Please note that we need to include the current working directory (denoted by ‘.’) in the CLASSPATH.
CLASSPATH can be set for short-term for that particular CMD shell session by running the following command
Instead of using the CLASSPATH environment variable, we can also use the command-line option –classpath (or –cp) of the javac and java commands
Don't miss out!