Quoting Raymond Norton <admin at lctn.org>:

> I am trying to install a program on a fedora core 2 box. The following is
> an error I receive after running the java command.
> 
> [root at mail fileIndexer]# java -Xmx256m -jar FileIndexer-1.1.4.jar
> -bash: java: command not found
> 
> Any ideas where I should look to resolve this?
> 

Most likely java is not in your path. You can either modify your path to include
the java executable or you can fully path the java executable when you call it,
i.e. : 
$ /usr/local/java/java -Xmx256m -jar FileIndexer-1.1.4.jar
or where ever it is that java gets put. You can use whereis to find it.

Josh