in reply to Calling Java through CGI Script

Just a stab in the dark, but I would guess that this is a CLASSPATH issue. You can pass the classpath via the command line or set the environment variable. The following syntax is used to set the CLASSPATH via the command line:

java -cp dir/containing/package package.ClassFile java -classpath dir/containing/package package.ClassFile