---------------------------------------------------------------- BEFORE YOU POST, search the faq at <http://java.apache.org/faq/> WHEN YOU POST, include all relevant version numbers, log files, and configuration files. Don't make us guess your problem!!! ---------------------------------------------------------------- >I am writing to the list in hopes that someone can clarify what > >environment variables I need to change/add - if any, or other config > >options I may need to change to allow webpages (and Perl scripts) > >outside the html directory to run Java. Short answer: CLASSPATH Long answer: whatever JVM is running can't find you classes. This is a jserv discussion. It appears from below that you're not using a servlet engine. If this is the case, I presume this is an applet thing. >From: James Hall <[EMAIL PROTECTED]> >Reply-To: "Java Apache Users" <[EMAIL PROTECTED]> >To: "'[EMAIL PROTECTED]'" ><[EMAIL PROTECTED]> >Subject: running Java outside the html directory (Newbie Question) >Date: Wed, 20 Sep 2000 11:43:45 -0500 > >---------------------------------------------------------------- >BEFORE YOU POST, search the faq at <http://java.apache.org/faq/> >WHEN YOU POST, include all relevant version numbers, log files, >and configuration files. Don't make us guess your problem!!! >---------------------------------------------------------------- > >Hello all, > >I know that I am asking about something that is covered in the FAQ, and I >HAVE read the FAQ, but it has left me confused (probably because I am not a >Java programmer). > >I am running apache 1.3 on redhat 5.2. Java (JDK1.2.2/JRE1.2.2) is >installed >and working correctly, when run from a prompt and from webpages (located in >home/httpd/html). > >Recently the boss decided he wants to run Java outside the html directory, >specifically the cgi-bin directory(home/httpd/cgi-bin). > >After moving all required files to the cgi-bin, the boss reports a "class >{whatever} not found" from any webpage that uses java. Of course, the >.class >file is in the same directory as the page calling it. A examination of the >http error logs shows "Premature end of script headers" for the .class >file. > >I am writing to the list in hopes that someone can clarify what environment >variables I need to change/add - if any, or other config options I may need >to change to allow webpages (and Perl scripts) outside the html directory >to >run Java. > >Thank in advance, >Jim >[EMAIL PROTECTED] > > >-- >-------------------------------------------------------------- >Please read the FAQ! <http://java.apache.org/faq/> >To subscribe: [EMAIL PROTECTED] >To unsubscribe: [EMAIL PROTECTED] >Search Archives: ><http://www.mail-archive.com/java-apache-users%40list.working-dogs.com/> >Problems?: [EMAIL PROTECTED] > _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. Share information about yourself, create your own public profile at http://profiles.msn.com. -- -------------------------------------------------------------- Please read the FAQ! <http://java.apache.org/faq/> To subscribe: [EMAIL PROTECTED] To unsubscribe: [EMAIL PROTECTED] Search Archives: <http://www.mail-archive.com/java-apache-users%40list.working-dogs.com/> Problems?: [EMAIL PROTECTED]