Results 1 to 6 of 6
  1. #1
    coolforyou is offline Member
    Join Date
    Jul 2011
    Posts
    21
    Rep Power
    0

    Default this is silly basic question in java . please help me make me clear

    hi guys ,

    I wanted to know what is setting the environment variable in windows is ? there are actually two variables right ? 1. user variable 2. system variables , now what is the difference between user variable and system variable? and what is the difference between "path" and "classpath" ?

    I actually will create a name called "path" in both user variable and system variable and i will set value s of the directory in which java is installed , even thou i set the same name "path" in both user variable and system variable the windows is finding javac correctly , so i am fully confused .

    Second thing is ,

    I have downloaded Xalan-java and i unzipped in the c:\Xalan , now i really don't know how to set the enviranment variable for Xalan and i don't know how to check whether Xalan is installed properly or not in windows so that java can find it correctly . Please help me and guide me guide , i may sound newbie , but i wanted learn things correctly :(

  2. #2
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,306
    Rep Power
    25

    Default Re: this is silly basic question in java . please help me make me clear

    The PATH is used by the OS to find files like .exe so you don't have to enter the full path to execute them.
    Classpath is used by the javac and java commands to find resources like class files.
    Read the doc for the product you are trying to install to see what it requires.

    These are not java questions.
    If you don't understand my response, don't ignore it, ask a question.

  3. #3
    coolforyou is offline Member
    Join Date
    Jul 2011
    Posts
    21
    Rep Power
    0

    Default Re: this is silly basic question in java . please help me make me clear

    Quote Originally Posted by Norm View Post
    The PATH is used by the OS to find files like .exe so you don't have to enter the full path to execute them.
    Classpath is used by the javac and java commands to find resources like class files.
    Read the doc for the product you are trying to install to see what it requires.

    These are not java questions.
    Thanks a lot for the reply @Norm ,

    1. SO path is for OS reference right ? so there is no need for me to create "path " for "user variable " with this value "c\program files\java\jdk\bin" for java right ? cos already i have created a name called "path" in "system variable " using the same value

    2. Regarding Xalan-java,
    there is already a name exit called "classpath" which was created by quicktime player , so can i edit that "classpath" and add these value " F:\javatools\xalan-j_2_7_0\xalan.jar;F:\javatools\xalan-j_2_7_0\xml-apis.jar" doing like this is correct or wrong ? or i have to create a new "classpath " for this xalan-java" ?.... this is a confusion i am having !!!! please forgive me for my noobie question and please help me

  4. #4
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,306
    Rep Power
    25

    Default Re: this is silly basic question in java . please help me make me clear

    I don't know what the OS will do if there are two environment variables with the same name.

    In Windows if you open a command prompt window and enter the set command the current contents of the environment variables will be displayed.
    If you don't understand my response, don't ignore it, ask a question.

  5. #5
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,375
    Blog Entries
    7
    Rep Power
    20

    Default Re: this is silly basic question in java . please help me make me clear

    A user variable is valid for a single user only; a system variable is valid system wide, i.e. for all users.

    kind regards,

    Jos
    cenosillicaphobia: the fear for an empty beer glass

  6. #6
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,306
    Rep Power
    25

    Default Re: this is silly basic question in java . please help me make me clear

    On windows, the Environment Variables page under the Advanced Tab in System properties has two sections:
    The upper is labelled: User variables for Norm
    The lower is labelled: System variables

    I guess on a multi-user system, each user could have his own
    If you don't understand my response, don't ignore it, ask a question.

Similar Threads

  1. Basic java question
    By manalinik in forum New To Java
    Replies: 4
    Last Post: 12-27-2011, 02:06 PM
  2. Basic Java question
    By fred2028 in forum New To Java
    Replies: 13
    Last Post: 09-14-2011, 02:55 PM
  3. How do you make a basic Java JSlider with a text box ???
    By danielmessick in forum New To Java
    Replies: 1
    Last Post: 03-07-2010, 12:59 PM
  4. How do you make a basic Java JSlider with a text box ???
    By danielmessick in forum Java Applets
    Replies: 1
    Last Post: 03-07-2010, 12:55 PM
  5. Java basic question
    By JavaJunkie in forum New To Java
    Replies: 3
    Last Post: 04-17-2009, 08:09 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •