Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

difference between user variables and system variables

 
Raj kalaria
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HI

can some one please tell me the
difference between user variables and system variables while setting the class variables. what is the importance of each

thankyou
 
Scott Selikoff
author
Saloon Keeper
Posts: 4008
18
Eclipse IDE Flex Google Web Toolkit
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do you mean in Windows? I just want to be clear we're talking about the same types of variables.
 
Jesper de Jong
Java Cowboy
Saloon Keeper
Posts: 15207
36
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you are talking about Windows environment variables: user variables are only for one specific user, system variables are set for all users of the computer.
 
Raj kalaria
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yeh its in windows


so if i have a jar file which i want to include in the class path

case1
so if i include in class path in the system envionment (not in user enviornment) then it should work for all the users in my computer say if i have created two users in windoew XP then both the user can access jar file

case2

if i jsut inlcude in the user enviorment then only that user can access it.


So generally where should one put jar files in system variables or user variables
 
Scott Selikoff
author
Saloon Keeper
Posts: 4008
18
Eclipse IDE Flex Google Web Toolkit
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Depends more about the computer itself than anything else. If its your computer, put it where you want such as using the system variables for all users. If its a network computer, you'd likely put it in your user variable list. Its really up to you.

As a side note most J2EE servers and IDEs have separate class paths indendendent of the Windows Environment variables.
 
Raj kalaria
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks a lot
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic