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 4 of 4
  1. #1
    New to the CF scene
    Join Date
    Jan 2011
    Posts
    3
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Path environment variable

    I have the destination of my text editor, and the destination of javac.exe both written into my path environment variable, but when I type javac into the command line I get a return of - 'javac' is not recognized as an internal or external command, operable program or batch file. If it is not already clear, I'm trying to compile some source code written in my text editor.

    Could somebody please tell me what it is EXACTLY that I need to put into the path environment variable, and whether it should be done as 'user' or 'system' environment variable.

    Thanks guys!

  • #2
    New Coder
    Join Date
    Jan 2011
    Location
    India
    Posts
    31
    Thanks
    0
    Thanked 4 Times in 4 Posts
    Please do things in the following order

    1) Edit the path variable properly.
    2) Now open a command prompt.
    3) Check for javac,

    This should work.
    4) Now Start your editor from command line.

    Everything should work now.

    The problem you faced might be , you started the editor first, then changed the path variable. The change of path variable wont get reflected in this case. If you are okay to restart your machine everthing should work

  • #3
    New to the CF scene
    Join Date
    Jan 2011
    Posts
    3
    Thanks
    2
    Thanked 0 Times in 0 Posts
    Regarding 1), Could you just confirm exactly what it is I need to put in the path variable, i.e. if javac is located in \bin, should I type in :\C...\bin, and is it just this that needs to be put in or do I need the text editor destination, or anything else in there with it?

    Regarding 3), check for javac by simple typing javac, right?

    Thanks for your help, elementary questions I know, but we all start somewhere!

  • #4
    New Coder
    Join Date
    Jan 2011
    Location
    India
    Posts
    31
    Thanks
    0
    Thanked 4 Times in 4 Posts
    You should put till the bin directory

    eg:- C:/java/bin

    If you need to invoke text editor from command line, you need to put the editors location in path (The folder where editor exist).

    You can check the javac by simply typing it in command line.

    If your path is not proper you will get something like

    "'javac' is not recognized as an internal or external command,
    operable program or batch file."

    There is nothing wrong in asking elementary questions. But I prefer people do some research them self, before asking it

  • Users who have thanked sandeep.e for this post:

    am7721 (02-02-2011)


  •  

    Posting Permissions

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