RE: Need to call java class and pass in args to its main

2003-01-24 Thread Cliff
In essence, your jar file execution is the exact same thing, if I understand the original problem correctly (need to execute main() in a class loaded into a java vm on the command line). Simply take your syntax, remove the java flag -jar, and chunk in a fully qualified path name e.g.: `java cap

RE: Need to call java class and pass in args to its main

2003-01-24 Thread Capacio, Paula J
>-Original Message- >Scott Purcell wrote: > [SNIP] >So how can I call a java class file and pass it the args from perl? >Under the perl 3rd edition book, I am reading about syscall, >but it does not look like the right thing, I'm not a Java pgmr, but I was asked to write a perl script that

RE: Need to call java class and pass in args to its main

2003-01-24 Thread Tillman, James
ks quite cool, but I know nothing about it) jpt > -Original Message- > From: Cliff [mailto:[EMAIL PROTECTED]] > Sent: Friday, January 24, 2003 3:11 PM > To: Scott Purcell > Cc: [EMAIL PROTECTED] > Subject: Re: Need to call java class and pass in args to its main >

Re: Need to call java class and pass in args to its main

2003-01-24 Thread Cliff
I believe there is a package of some sort which specifically allows for java-perl direct code integration, someone certainly has thought of that by now. However, I certainly understand why, given what you describe, one cannot simply: exec "/usr/java/bin/java" "qualified.class.name" "$arg1" ...