View Full Version : How do I change the path setting?????
I am running some java programs and I get compilation errors because it compiles with an old java compiler I have.
Over the years I think I have installed over three Java compilers.
I think my path setting is incorrect??????
This may sound silly but how do I change the path setting?????
Do I change the path setting in the autoexec.bat file??
If so can I open the autoexec.bat file in notepad.
Please let me know urgently???
Dek,
Over the course of several posts you have had many problems with path and various commands...what is the current operating system you are running?
How did you get to this point, by fresh installs or by the upgrade route?
Many of your problems seem to indicate it may be time to bite the bullet, make backups of essential data, grab the installation disks of your applications and wipe out everything and start over with a fresh install of your desired (possibly XP) operating system. This will clean out things like:
Over the years I think I have installed over three Java compilers.
I think my path setting is incorrect??????
Other than that, to figure out this current problem, what OS are you running?
------------------
mjc
Links list:Computer Links (http://www.dreamwater.org/tech/mjc/index.htm)
Celts are the men that heaven made mad, For all their battles are merry and their songs are all sad.
DEK
I will also refer back to your other posts.
In that you are using Dos windows under win98 to execute your commands.
The default windows path is controlled by your autoexec.bat file
To view and edit this file it is easiest to use msconfig from the run box on the start menu.
The installed default path is “ c:\windows;c:\windows\command
any changes made to this path statement made by adding or installing programs may have added to it..
If in fact you are running and or compiling your files in dos windows.
You can amend the path statement in that window only by using the path command
This will not change the default path. It will only affect that window.
Once the window is closed the path used in it will be forgotten.
You can setup a script or batch file to open a dos window and add the path statement to the file for use in that project. Path c:\windows;c:\windows\command;c:\Your Compiler Path
Avoiding the problem of cross path contamination by other compilers
In addition I would remove the Old unused compilers completely
I have edited the autoexec.bat file, here it is:
C:\WINDOWS\COMMAND\DOSKEY
rem - By Windows Setup - LH C:\WINDOWS\COMMAND\MSCDEX /D:MSCD001
SET PATH=C:\WINDOWS;C:\WINDOWS\COMMAND;C:\jdk1.3.1_02\ bin;
SET CLASSPATH=.; C:\jdk1.3.1_02\bin;
mode con codepage prepare=((850) C:\WINDOWS\COMMAND\ega.cpi)
mode con codepage select=850
keyb uk,,C:\WINDOWS\COMMAND\keyboard.sys
I still get the same problem when I try to run the program.
D:\java\test>java ButtonDemo
Registry key 'Software\JavaSoft\Java Runtime Environment\CurrentVersion'
has value '1.3', but '1.2' is required.
The files are compiled but it does not run.
Please help!!!
I have tried everything?
vBulletin v3.6.1, Copyright ©2000-2012, Jelsoft Enterprises Ltd.