Alvin Chao
Thu, 16 Jul 2009 10:56:51 -0700
I'm trying to run some Inline::Java from CGI and have the test script at: http://search.cpan.org/~patl/Inline-Java-0.52/Java.pod#USING_Inline::Java_IN_A_CGI BEGIN { $ENV{CLASSPATH} .=" .: ./lib/mylib.jar "; use CGI ; use Inline ( Java => <<'END', class Pod_counter { public static int cnt = 0 ; public Pod_counter(){ cnt++ ; } } END CLASSPATH => $ENV{CLASSPATH}, AUTOSTUDY => 1, SHARED_JVM => 1, DIRECTORY => '/somewhere/your/web/server/can/write', ) ; my $c = new Pod_counter() ; my $q = new CGI() ; print $q->start_html() . "This page has been accessed " . $c->{cnt} . " times." . $q->end_html() ;loading just fine, but when I try to run my production script which uses extra classes and needs several jar files with imported classes, my script is failing. How do I config CLASSPATH or where do I put the jar files so that the JVM can locate them, and can I use AUTOSTUDY with this method?
Regards, @lvin -- Alvin Chao - Lead Web Analyst James Madison University - ITWEB MSC 5734 Massanutten Hall Room 110 Harrisonburg, VA 22807 (540)568-6206 email: cha...@jmu.edu web: http://peregrin.jmu.edu/~chaoaj