How do i get a command to be available throughout all of dos?

devriems

Junior Member
Apr 18, 2003
7
0
0
I just installed the j2sdk library and i need to be able to run the java and javac commands from anywhere within the command prompt, not just the install directory of the library. I know there is a way to set that up but i don't remember it at all. does anybody know what file i have to edit and what i have to put in it? Please help
 

TJ69

Senior member
Jun 7, 2001
234
0
0
add it to your path.

If its native dos, you'll find it in config.sys or autoexec.bat (been too long).
If windows xp/2k command/cmd, right click my computer -> advanced tab -> Environment Variables Button.
 

SoulAssassin

Diamond Member
Feb 1, 2001
6,135
2
0
To expand tj69's answer just a little bit, go into the environment variables and add the directory where the java executables are located.