Date: Wed, 5 Dec 2001 14:15:27 -0500 (EST) From: "Nathan Vidican" <> To: questions@freebsd.org Subject: Using Java under Apache Message-ID: <200112051915.fB5JFRH08172@mail.ipsnetwork.net>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200112051915.fB5JFRH08172>