Richard Hakim <[EMAIL PROTECTED]> writes:

> Hi -
> 
> Thank you very much to the two kind souls who replied to my query on getting
> the Java Web Server going. 
> 
> I have another question though.  When I try to access a .jhtml file, I get
> the following error:
> 
> Error getting compiled page
> 
> javac was not found in
> /usr/lib/jdk-1.1.5/bin/../bin/i586/green_threads/javac
> 
> Now, in actual fact javac *is* at that path.  Furthermore, if as root I cd
> to <serverroot> and type "javac", all is well.  However, if I type 
> "/usr/lib/jdk-1.1.5/bin/../bin/i586/green_threads/javac", bash says "No such
> file or directory".  
It should rather say something like that:
$ /public/languages/JDK-1.1.6v2/bin/i686/green_threads/javac
/public/languages/JDK-1.1.6v2/bin/i686/green_threads/java: error in loading shar
ed libraries
libjava.so: cannot open shared object file: No such file or directory

That's because LD_LIBRARY_PATH doesn't include the directory that contains
libjava.so. Setting the LD_LIBRARY_PATH is the job of 
/public/languages/JDK-1.1.6v2/bin/javac (actually .java_wrapper).

So javac should be invoked through ...JDK-1.1.6v2/bin/javac
and through ...JDK-1.1.6v2/bin/i686/green_threads/javac.

(Note: There should be no need to set LD_LIBRARY_PATH manually).

> Could this be part of the problem?  The
> <serverroot>/pagecompile directory does contain the appropriate .java files
> for the scripts I was trying to access (e.g. credit_card.jhtml).
Page compilation works for me.
I start the jws with:
        export JAVA_HOME=/public/languages/JDK-1.1.6v2
        JavaWebServer-1.1.1/bin/http -nojre

and jws has no problems to invoke javac.

        Jürgen

-- 
Juergen Kreileder, Universitaet Dortmund, Lehrstuhl Informatik V
Baroper Strasse 301, D-44221 Dortmund, Germany
Phone: ++49 231/755-5806, Fax: ++49 231/755-5802

Reply via email to