Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    New to the CF scene
    Join Date
    Dec 2011
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    when to change system path

    new to programming, I am downloading software to help me create my program. I am told often check that the file is on your system path or add to system path.
    I know how to change system path and how to add a new path.
    What I don't understand is what goes on system path? how does it work? For example when I download programs why don't they end up in the program's file on my C drive why are they under my user name in a folder called downloads?
    The programs I am working with are R and Weka, they are both used for data analysis. I have to download packages for each of these programs, these packages are like libraries so when it says make sure bla bla bla is on the system path does that mean the entire R program or that one piece that was downloaded its all confusing?

  • #2
    Supreme Master coder! Philip M's Avatar
    Join Date
    Jun 2002
    Location
    London, England
    Posts
    18,302
    Thanks
    203
    Thanked 2,561 Times in 2,539 Posts
    This is nothing whatsoever to do with Javascript.

    All the code given in this post has been tested and is intended to address the question asked.
    Unless stated otherwise it is not just a demonstration.

  • #3
    New to the CF scene
    Join Date
    Dec 2011
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Well not exactly because Weka is written with java. additionally when you write a program in any language you need to interact with system path. Java is the most commonly used language so I think the question is applicable

  • #4
    Gütkodierer
    Join Date
    Apr 2009
    Posts
    2,127
    Thanks
    1
    Thanked 426 Times in 424 Posts
    Javascript has nothing to do with Java, so this is definitely the wrong forum. I'll move this thread.
    .My new Javascript tutorial site: http://reallifejs.com/
    .Latest article: Calculators — Tiny jQuery calculator, Full-fledged OOP calculator, Big number calculator
    .Latest quick-bit: Including jQuery — Environment-aware minification and CDNs with local fallback

  • #5
    God Emperor Fou-Lu's Avatar
    Join Date
    Sep 2002
    Location
    Saskatoon, Saskatchewan
    Posts
    16,994
    Thanks
    4
    Thanked 2,662 Times in 2,631 Posts
    I don't quite follow the question here either. If it specifies that it needs to be in a system path, put it in a system path. This path can also be any path on your machine if you have added it to your environment or user variables (user preferred).
    DLL's are commonly required to be located in system paths or directly within the same path as the controlling executable. Java on the other hand tends to care more about jar files, which also need to be available to the executing jar. These can be either in the same directory as the jar, or within the path, or recompiled as a resource for the jar.
    Unless the documentation specifies what has to go where, this often requires trial and error. If documentation specifies that I need say mysql.dll within a source path, but fails to mention that I need something like libcurl.dll in a system path, then it will fail to run.
    As for where you download, this has nothing to do with java, javascript, or any language. That is a browser setting. I don't recommend moving it to C:\, keep it in the downloads. Assuming your standard user is not an administrator, writing the C:\ may be forbidden. Move it out once complete. I for example download everything to H:\Downloads, and move what is necessary to where it belongs.


  •  

    Posting Permissions

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