• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Devaka Cooray
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
  • Tim Holloway
Bartenders:
  • Martijn Verburg
  • Frits Walraven
  • Himai Minh

Installation envrironment variables Windows

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello, this is my first post. I am happy to have found this place because Java is such a complex topic (at least for beginners) and it's nice to have someone friendly to go to when things don't work.

My question is very basic. I just want to understand why the CLASSPATH variable is needed, if at all. I've noticed that some JDK installation tutorials include the setting of this variable and others don't. Why is this? Should this variable be set up automatically when executing the installation program?

Also, I am running Windows Vista and see two Path variables in the environment variables dialog window. One under System and the other under User. What is the difference here? Should the env variables that Windows OS uses be put in the System Path variable and all the others on the User one?

Thanks for your help!
 
Ranch Hand
Posts: 110
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Welcome to javaranch, Joseph

Well, if you use lower version of jdk (3.0 or less) then you will surely come to know the real difference between
path and classpath.

In lower version, if you dont define PATH then by default the "java" command is only available to default folder
of jdk installation i.e. bin.

Now, if you dont't provide CLASSPATH, then java will only read the clasess from bin of jdk installation.

Now in higher version it does not need to to set CLASSPATH, just set PATH and enjoy using java.


Thanks,
Tanzy.
 
Bartender
Posts: 11497
19
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Check this out
http://faq.javaranch.com/java/HowToSetTheClasspath
 
LOOK! OVER THERE! (yoink) your tiny ad is now my tiny ad.
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic