From owner-freebsd-questions Wed Dec 5 11: 3:43 2001 Delivered-To: freebsd-questions@freebsd.org Received: from mail.ipsnetwork.net (mail.ipsnetwork.net [209.202.83.5]) by hub.freebsd.org (Postfix) with ESMTP id 5B1C037B41D for ; Wed, 5 Dec 2001 11:03:40 -0800 (PST) Received: (from apache@localhost) by mail.ipsnetwork.net (8.11.1/8.11.1) id fB5JFRH08172; Wed, 5 Dec 2001 14:15:27 -0500 (EST) Date: Wed, 5 Dec 2001 14:15:27 -0500 (EST) Message-Id: <200112051915.fB5JFRH08172@mail.ipsnetwork.net> From: "Nathan Vidican" <> To: questions@freebsd.org Reply-To: nathan@vidican.com Subject: Using Java under Apache X-Mailer: NeoMail 1.24 X-IPAddress: 204.225.7.8 MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Does anyone know how to, or have experience with running Java applications as CGI programs under apache? Here's what I've got: several simple apps which are run as console applications, (they just print HTML data; in a similar manor to the way one might write a PERL cgi app). The programs must be passed through the java runtime environment, (currently using jdk 1.1.8 for FreeBSD). Up until now I've been using shell scripts to run the java programs, for example: #!/bin/sh cd /some/dir/on/webserver/with/cgi-permissions/ /usr/local/bin/java SomeAppWhichWasInCurrentDir argument1 argument2 etc The problem is that I would like to be able to directly access a program. I was thinking of using an AddType/AddHandler combo, but JDK requires the classname as the argument, (where the file is "List.class" to run it would be "java List"). Any ideas, advise, concerns or otherwise will be greatly appreciated. -- Nathan Vidican Nathan@Vidican.com http://Nathan.Vidican.com/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message