Path and classpath

Hi,

I was reading as below

CLASSPATH by entering a period and semicolon
which will help Java find to start looking for
current disk folder

I have not understood what it means by current disk folder.(is it C folder or some subfolder in C how system will know)

What are the exact differences between PATH and CLASSPATH used in System properties(by right clicking on Comouter)'-->Advanced --->Environment Variables.

Also what are the  exact difference between USER VARIABLES and SYSTEM VARIABLES. I usually add PATH, CLASSPATH under sYSTEM VARIABLES. Is there is a need to change USER VARIABLES and what is its importance



CAn I use different JREs for different projects of eclipse without always using 'default workspace JRE' which is currently shows 1.7 always. How to change default JRE of workspace.

Please advise.


Any links resources ideas highly appreciated. Thanks in adv
LVL 7
gudii9Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

CEHJCommented:
The system always knows what the current directory is

http://technojeeves.com/joomla/index.php/free/132-find-the-current-directory-in-java
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
gudii9Author Commented:
>>system always knows what the current directory is



is it is the java directory where jdk was installed(like C:\Program Files\Java\jdk1.7.0_40)? Please advise
0
CEHJCommented:
The current directory is the directory from which a program is being run. Nothing to do (necessarily) with the jdk
0
Microsoft Azure 2017

Azure has a changed a lot since it was originally introduce by adding new services and features. Do you know everything you need to about Azure? This course will teach you about the Azure App Service, monitoring and application insights, DevOps, and Team Services.

gudii9Author Commented:
When i put above system out in my Test.java class(which is under package com.jjjj.ccc.caaaa.ddd.ccc.run of maven project caa-baaaaapp-ddd-ccc-job unser workspace Jobs_workspace  ) i got console output as below

Current directory is:
 C:\FAAA\DevDesktop\workspaces\Jobs_workspace\caa-baaaaapp\caa-baaaaapp-ddd-ccc-job

I wonder why the package directory strucure (com.jjjj.ccc.caaaa.ddd.ccc.run..something like  C:\FAAA\DevDesktop\workspaces\Jobs_workspace\caa-baaaaapp\caa-baaaaapp-ddd-ccc-job\com\jjjj\ccc\caaaa\ddd\ccc\run) has not shown in the current directory

What for packages used if they do not create new directory. please advise
0
gudii9Author Commented:
please advise
0
CEHJCommented:
It took me a few minutes to understand the above - it's no wonder you're confused using that semi-chaotic naming!

I wonder why the package directory strucure (com.jjjj.ccc.caaaa.ddd.ccc.run..something like  C:\FAAA\DevDesktop\workspaces\Jobs_workspace\caa-baaaaapp\caa-baaaaapp-ddd-ccc-job\com\jjjj\ccc\caaaa\ddd\ccc\run) has not shown in the current directory
Because
The current directory is the directory from which a program is being run.
The program is not being run from a package directory. It is normally run from the parent of all packages

If this is all mysterious to you, i urgently advise you to do a lot of reading on the classpath and packages and practise using them away from an IDE. At your stage of using Java, this should be an area free of doubt.
0
gudii9Author Commented:
>>The program is not being run from a package directory. It is normally run from the parent of all packages



If it runs only from parent of all packages why do we need packages. Please advise with any good links to refer
0
gudii9Author Commented:
>>>i urgently advise you to do a lot of reading on the classpath and packages and practise using them away from an IDE.

Can you please point to some good links on this
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Java EE

From novice to tech pro — start learning today.