This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes difference between user variables and system variables Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "difference between user variables and system variables " Watch "difference between user variables and system variables " New topic
Author

difference between user variables and system variables

Raj kalaria
Ranch Hand

Joined: Sep 08, 2005
Posts: 72
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
Saloon Keeper

Joined: Oct 23, 2005
Posts: 3703
    
    5

Do you mean in Windows? I just want to be clear we're talking about the same types of variables.


My Blog: Down Home Country Coding with Scott Selikoff
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 14074
    
  16

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.


Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 7 API documentation
Scala Notes - My blog about Scala
Raj kalaria
Ranch Hand

Joined: Sep 08, 2005
Posts: 72
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
Saloon Keeper

Joined: Oct 23, 2005
Posts: 3703
    
    5

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

Joined: Sep 08, 2005
Posts: 72
thanks a lot
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: difference between user variables and system variables
 
Similar Threads
CLASSPATH vs PATH
System Design & System Architecture
Variables in Java
what is difference between
path vs classpath