I am having many problems installing and executing the 1.1.6 v5 package.

I am installing on a i386 box with linux 2.0.34 (Red Hat 5.0).
I have lib

Diagnostic:
----------

If I tried to execute java but I got an error:

[nicolas@myComputer]$ java
java: error in loading shared libraries
libjava.so: cannot open shared object file: No such file or directory
 

This seems to be fixed by setting-up the LD_LIBRARY_PATH environment variable:

[nicolas@myComputer]$ setenv LD_LIBRARY_PATH /Java/jdk116_v5/lib/i686/green_threads

NOTE: I have install the JDK stuff into /Java
 

At which point java then seems to work (i.e. I get the help screen and I can check the version number):

[nicolas@myComputer]$ java -version
java version "1.1.6"
 
 

I then produced the very simple Java sample:

    public class HelloWord
    {
        public static void main (String[] args)
        {
            System.out.println("Hello World!");
        }
    }
 

When I executed javac I get an error:

[nicolas@myComputer]$ javac HelloWorld.java
javac: Command not found.
 
 

Questions:
-----------
1) Why are my bin in /Java/jdk116_v5/bin/i686/green_threads/ ? (i.e. why not in /Java/jdk116_v5/bin/ ?)
2) Why do I get the 'Command not found' error when I execute javac (or checkversion for that matter) ?
3) Is that last error an indication that the filesystem can not find the file (the file IS there!!) or is it rather than a command in the Borne Shell is not correct ?
 

Any help would be greatly appreciated.

Thank you,
 

Nicolas Duchastel de Montrouge, P. Eng.

Reply via email to