Results 1 to 6 of 6

Thread: Java changes CMD?

  1. #1

    Thread Starter
    Member
    Join Date
    Nov 2005
    Posts
    33

    Java changes CMD?

    Hello.

    As you may have seen from a previous post a day or 2 ago, i've recently started playing with java. I'm not sure whats gone on, but since ive installed java it seems my CMD.exe doesnt recognise any commands at all apart from java related ones.

    For example "ping" "dir" "net send" "help" (and all the others)

    give me a reply message of: "*command here*" is not recognized as an internal or external command, operable program or batch file."

    Would there be any link between java installation and command prompt usage? Bearing in mind that i've just been doing Console based java.

    Thanks a bunch

    Regards

    Mathew

  2. #2
    Arabic Poster ComputerJy's Avatar
    Join Date
    Nov 2005
    Location
    Happily misplaced
    Posts
    2,513

    Re: Java changes CMD?

    It seems that the "Path" variable in the Environment variables table has been wiped out or it only contains the path to java.exe command
    "I'm not normally a praying man, but if you're up there, save me... Superman!" - Homer Simpson
    My Blog

  3. #3
    Arabic Poster ComputerJy's Avatar
    Join Date
    Nov 2005
    Location
    Happily misplaced
    Posts
    2,513

    Re: Java changes CMD?

    By the way, JDK setup will never do that. So there must be something else perhaps you installed java along with a poor IDE
    Last edited by ComputerJy; Oct 3rd, 2006 at 12:46 PM.
    "I'm not normally a praying man, but if you're up there, save me... Superman!" - Homer Simpson
    My Blog

  4. #4

    Thread Starter
    Member
    Join Date
    Nov 2005
    Posts
    33

    Re: Java changes CMD?

    Quote Originally Posted by ComputerJy
    By the way, JDK setup will never do that. So there must be something else perhaps you installed java along with a poo IDE
    The "poo IDE" could be the reason.....iGRASP. But you mentioned the Environment path, i think i was told somewhere at some point to remove what was in this and replace it with the path to the java files, which i did.

    Could you tell me what SHOULD be in the path box please?

    Thanks for the help

    Regards

    Mathew

  5. #5
    Arabic Poster ComputerJy's Avatar
    Join Date
    Nov 2005
    Location
    Happily misplaced
    Posts
    2,513

    Re: Java changes CMD?

    First of all, you shouldn't have done that. You could have appended the java path to the Path variable without removing everything else, just add ";" before the new path

    To reactivate the ping, net,... etc add "%SystemRoot%\system32;" to the Path var
    "I'm not normally a praying man, but if you're up there, save me... Superman!" - Homer Simpson
    My Blog

  6. #6

    Thread Starter
    Member
    Join Date
    Nov 2005
    Posts
    33

    Re: Java changes CMD?

    Quote Originally Posted by ComputerJy
    First of all, you shouldn't have done that. You could have appended the java path to the Path variable without removing everything else, just add ";" before the new path

    To reactivate the ping, net,... etc add "%SystemRoot%\system32;" to the Path var
    fantastic, worked a treat! Cheers for you time and effort +rating , I really appreciate it.

    Regards

    Matt

Posting Permissions

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



Click Here to Expand Forum to Full Width