Thread: Installing Java
View Single Post
  #4 (permalink)  
Old April 8th, 2003
b4k4^ni b4k4^ni is offline
Disciple
 
Join Date: January 13th, 2003
Posts: 10
b4k4^ni is flying high
Default

Sounds like you might have wiped the contents of the PATH variable. That's why you don't see the commands.

Login as root from a text console (ALT+F2) and do this command:

echo $PATH

You should have at least these directories in the path:

/bin:/usr/bin:/usr/X11R6/bin

You need to edit /etc/profile and fix the assignment to the PATH variable. Make sure you use colon ( : ) as a separator. It is a common mistake for windows users to use simicolon instead.

You can still invoke the commands by specifying the full path.

Hopefully you know how to use the vi editor. If you do then just do

/bin/vi /etc/profile

fix the profile.

Optimally your PATH should contain other directories including the direcotry for Java binaries.

Before you edit any files it is a good practice to make a copy of the file just in case you need to restore it.
Reply With Quote