Re: [LIP] calling java routine from perl

Babu Kalakrishnan <[email protected]>
Newsgroups gmane.user-groups.linux.india.programmers
Message-ID <[email protected]>
On Mon, Mar 29, 2004 at 02:49:21AM -0800, vivek khurana typed:
> 
>  I have to call a java (which accepts two parameters
> from command line)utility from cgi. I am using perl to
> do it using following command
> 
> system "/usr/java/j2sdk1.4.1_03/bin/java",
> "portm",$arg,$arg2;
> 

Add an additional commandline argument "-cp /path/to/portm" that
specifies the path where the portm.class file can be located by the JVM.

(And I'm sure you must be aware of the terrible overhead that loading
the JVM for every call to your CGI script can do to your performance.)

BK


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.