File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP 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
author
Saloon Keeper

Joined: Oct 23, 2005
Posts: 3712
    
    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: 14278
    
  21

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 8 API documentation
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
author
Saloon Keeper

Joined: Oct 23, 2005
Posts: 3712
    
    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