2 Autoexec.bat competing (Win98 + Win-XP) Tek-Tips Posting
----------------------------------------------------------------------------
My computer has a AMD Athlon XP 2400 processor, 1.93 GHz
And a Hard Disk Seagate 160 GB.
I had until 2 months ago a WIN98 OS and I upgraded it legally to WIN-XP.
Last week I installed l Java JDK1.4.2._09 and everything went fine.
Now, if I want to run a Java program, it runs fine. However, if I want to create a class file, let say from HelloDate.java, I type in C:\Java-CK> javac HelloDate.java and my computer balks and says:
“Javac is not recognized as an internal or external command, operable program or batch file”…..
Now, in the meantime, I found out why:
I have unfortunately 2 autoexec.bat in my system:
1. Autoexec.bat #1 from Win-98, which was transferred by WIN-XP from Win-98.
2. Autoexec.Bat #2 which is the new one in WIN-XP, and which has the path:
SET PATH=C:\;C:\Windows\Command;C:\J2SDK1.4.2_09\bin;….
And SET CLASSPATH=C:\Java-CK (for my java source files)
When I start my computer only Autoexec.bat #1 is activated, and not Autoexec.bat #2, this is why my JAVAC compiler does work, because it doesn’t see Path C:\J2sdk1.4.2_09\bin nor
CLASSPATH=C:\Java-CK.
As soon as I type at C:> c:autoexec.bat <enter> both Autoexec.bat are activated (and amalgamated into one)and my javac compiler works fine.
Now here comes my question: What should I do to delete Autoexec.bat #1 (which now in my system is called: C:\Windows\System32\Autoexec.NT ? Has that Autoexec.NT (why NT, I don’t have NT in my system) been registered in my Registry File? How can I remove it from there?
Your help will be very much appreciated.
Charles.
----------------------------------------------------------------------------
My computer has a AMD Athlon XP 2400 processor, 1.93 GHz
And a Hard Disk Seagate 160 GB.
I had until 2 months ago a WIN98 OS and I upgraded it legally to WIN-XP.
Last week I installed l Java JDK1.4.2._09 and everything went fine.
Now, if I want to run a Java program, it runs fine. However, if I want to create a class file, let say from HelloDate.java, I type in C:\Java-CK> javac HelloDate.java and my computer balks and says:
“Javac is not recognized as an internal or external command, operable program or batch file”…..
Now, in the meantime, I found out why:
I have unfortunately 2 autoexec.bat in my system:
1. Autoexec.bat #1 from Win-98, which was transferred by WIN-XP from Win-98.
2. Autoexec.Bat #2 which is the new one in WIN-XP, and which has the path:
SET PATH=C:\;C:\Windows\Command;C:\J2SDK1.4.2_09\bin;….
And SET CLASSPATH=C:\Java-CK (for my java source files)
When I start my computer only Autoexec.bat #1 is activated, and not Autoexec.bat #2, this is why my JAVAC compiler does work, because it doesn’t see Path C:\J2sdk1.4.2_09\bin nor
CLASSPATH=C:\Java-CK.
As soon as I type at C:> c:autoexec.bat <enter> both Autoexec.bat are activated (and amalgamated into one)and my javac compiler works fine.
Now here comes my question: What should I do to delete Autoexec.bat #1 (which now in my system is called: C:\Windows\System32\Autoexec.NT ? Has that Autoexec.NT (why NT, I don’t have NT in my system) been registered in my Registry File? How can I remove it from there?
Your help will be very much appreciated.
Charles.