It's not a secret anymore!*
The moose likes General Computing and the fly likes edit is not recognized as an internal or external command operable program or batch file windows 7 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » General Computing
Bookmark "edit is not recognized as an internal or external command operable program or batch file windows 7" Watch "edit is not recognized as an internal or external command operable program or batch file windows 7" New topic
Forums: Beginning Java General Computing
Author

edit is not recognized as an internal or external command operable program or batch file windows 7

sherin uthayaa
Greenhorn

Joined: Jun 24, 2014
Posts: 3
i am new for java. i wrote a program for helloworld.

when i enter edit command the following error displlay please help me


[Thumbnail for Untitled.png]

Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 38033
    
  22
Welcome to the Ranch

You know you can copy text from the command prompt and it is much easier to read than a screenshot?
Please execute this instruction:
echo %PATH%
and tell us the output, because not recognized as something errors often mean your PATH environment variable is not correct. You can read about the PATH environment variable in our FAQ.
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 38033
    
  22
Don't put your code inside the Java® installation folder. If you uninstall Java® and reinstall it, which you usually do whenever there is an update, the folder might be deleted and all your work might vanish. I usually suggest people create themselves a java folder; you can see the suggestions in this post. You may find that a decent programmer's editor e.g. Notepad2, Notepad++, Crimson, better than edit, which is a very simple and basic program.
Joanne Neal
Rancher

Joined: Aug 05, 2005
Posts: 3429
    
  12
Do you have a program called edit on your system ? I don't think there is one by default - I get the same error on my machine.
If you are trying to run the notepad program then the name of the executable is notepad.exe, so you need to type notepad <filename> not edit <filename> .


Joanne
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 38033
    
  22
You are right, Joanne. I could have sworn I always used to use edit from the command line, so I had to go to all the trouble of finding a machine with Windows on, and it didn't work. Mr Google found that edit has been removed from Windows7/64bit for me.
Joanne Neal
Rancher

Joined: Aug 05, 2005
Posts: 3429
    
  12
Campbell Ritchie wrote:You are right, Joanne. I could have sworn I always used to use edit from the command line

Same here, but I use a Windows 7 machine so it was easy for me to check.
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 38033
    
  22
I sue Windows so infrequently and the edit tool even less frequently so that I had never noticed.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: edit is not recognized as an internal or external command operable program or batch file windows 7
 
Similar Threads
About explaining code of 100! factorial digits sum
Clear Screen
headfirst ejb !chapter program
J2SE 5
# of lines in a file?