This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
I am trying to configure Tomcat on my desktop (operating system: Windows ME) which requires me to put the following line in autoexec.bat: set JAVA_HOME=C:\JDK1.3_01 When I open autoexec.bat it does not allow me to add any lines. The alert box I get reads: This MS-DOS program has terminated. Also, the title bar of the DOS window reads: "FINISHED- AUTOEXEC". How may I solve this problem?
I'm guessing that you are trying to open the autoexec.bat file for editing by double-clicking on it - which actually attempts to run the batch file and not edit it. To edit it, the easiest way is probably to browse to the root of the C drive (or to where the autoexec.bat file is), right mouse click on the file and select edit. This opens the file in Notepad for editing. Then just type away and close and save the file. You could similarly drag and drop the file into any Notepad window in order to edit it. I prefer to control environment variables as Chad has suggested and my autoexec.bat file is actually just blank.
Thanks for your help, much appreciated... One thing though. On Windows ME, I'm pretty sure you can't set environment variables via Control Panel-->System-->Advanced tab (if I recall, that works on Windows NT). There is no advanced tab in the System window in Windows ME. However, if you do Start Menu-->Accessories-->System Tools-->System Information, and then, from THAT page, you select from the menu bar Tools-->System Configuration Utility and hit the Environment tab, that seems to get you where you wanna be in terms of setting environment variables.
I like to keep shortcuts to a few useful programs like Notepad in C:\WINDOWS\SendTo\, so I can just right-click any file type and Send To->(Insert Your Favorite Text Editor Here).
Joined: May 10, 2001
fahim, I'm sure you're correct. I'm using Windows2k and I was guessing the ME edition would work the same, but then again, we are talking about Microsoft. :roll: Anyway, I think it is easier to manage environment variables this way.