Java.pm

2001-04-11 Thread cbell

Thanks to all that replied, I'll try unziping the JAR file before using
it...




Java.pm

2001-04-11 Thread cbell

Thanks again to all that replied to my earlier posting, however, I've
run into another issue.  I followed the link in one of the replies to
http://www-personal.umich.edu/~mcafee/perl/java-pm.html and discovered
that this module was different than the one I'm attempting to use.

Originally I was trying to use Java.pm Version 3 created by Mark
Trostler which I downloaded from CPAN. Does anyone know which one I
should be using?  I'm trying to execute Java procedures in class files
from within ModPerl.

I'm new to Java and a little confused on how to make this work.

Thanks,
Chris.




Re: Java.pm

2001-04-11 Thread Robin Berjon

At 11:34 11/04/2001 -0400, cbell wrote:
Originally I was trying to use Java.pm Version 3 created by Mark
Trostler which I downloaded from CPAN. Does anyone know which one I
should be using?  I'm trying to execute Java procedures in class files
from within ModPerl.

Haven't tried it, but maybe you should look into Inline::Java.

___
Robin Berjon [EMAIL PROTECTED] -- CTO
k n o w s c a p e : // venture knowledge agency www.knowscape.com
---
drug, n: a substance that, injected into a rat, produces a scientific paper.




Re: Java.pm

2001-04-11 Thread cbell

I did take a look at it originally, but it didn't seem to do what I needed it
to.  I'll take another look...

Robin Berjon wrote:

 At 11:34 11/04/2001 -0400, cbell wrote:
 Originally I was trying to use Java.pm Version 3 created by Mark
 Trostler which I downloaded from CPAN. Does anyone know which one I
 should be using?  I'm trying to execute Java procedures in class files
 from within ModPerl.

 Haven't tried it, but maybe you should look into Inline::Java.

 ___
 Robin Berjon [EMAIL PROTECTED] -- CTO
 k n o w s c a p e : // venture knowledge agency www.knowscape.com
 ---
 drug, n: a substance that, injected into a rat, produces a scientific paper.




Java.pm

2001-04-10 Thread cbell


Hello everyone, has anyone had any experience with Java.pm?  There
doesn't seem to be much info in the mail archives.  I'm trying to access
a JAR from within perl using the Java.pm, but I always receive the
error: 'java.lang.ClassNotFoundException'.  I can access the jar from a
Java script at the command line, so the problem is from within Perl
itself.

I've tried the following two methods but always end up with the same
results...

my $class = $java-java_lang_Class("forName","Test");
my $return_value =
$java-static_call("MyStaticClass","function_name",@params);

I can't find any examples in the archives to help me set this up
properly.  If anyone has had any experience with this is would be
greatly appreciated.  I'm running Modperl 1.24_01, Apache 1.3.14, and
jdk1.3.0_02 from Sun.

Thanks in advance,
Chris.



Re: Java.pm

2001-04-10 Thread Brett W. McCoy

On Tue, 10 Apr 2001, cbell wrote:

 Hello everyone, has anyone had any experience with Java.pm?  There
 doesn't seem to be much info in the mail archives.  I'm trying to access
 a JAR from within perl using the Java.pm, but I always receive the
 error: 'java.lang.ClassNotFoundException'.  I can access the jar from a
 Java script at the command line, so the problem is from within Perl
 itself.

 I've tried the following two methods but always end up with the same
 results...

 my $class = $java-java_lang_Class("forName","Test");
 my $return_value =
 $java-static_call("MyStaticClass","function_name",@params);

I don't know if Java.pm is capable of directly using jar files. I have
gotten it to directly use .class files with no problem.  Did you try
emailing the author?  I emailed him with some questions and he was very
responsive (answer in just a couple of hours).  he can probably give you
the best support.

-- Brett
   http://www.chapelperilous.net/btfwk/

Begathon, n.:
A multi-day event on public television, used to raise money so
you won't have to watch commercials.




Re: Java.pm

2001-04-10 Thread Sean C. Brady

On Tue, 10 Apr 2001, Brett W. McCoy wrote:

 On Tue, 10 Apr 2001, cbell wrote:
 
  Hello everyone, has anyone had any experience with Java.pm?  There
  doesn't seem to be much info in the mail archives.  I'm trying to access
  a JAR from within perl using the Java.pm, but I always receive the
  error: 'java.lang.ClassNotFoundException'.  I can access the jar from a
  Java script at the command line, so the problem is from within Perl
  itself.

I have no experience with Java.pm... but, it sounds like a path issue,
Perl can't find the necessary file(s)... do you need to maybe add a path
to @INC?

- Sean

 
  I've tried the following two methods but always end up with the same
  results...
 
  my $class = $java-java_lang_Class("forName","Test");
  my $return_value =
  $java-static_call("MyStaticClass","function_name",@params);
 
 I don't know if Java.pm is capable of directly using jar files. I have
 gotten it to directly use .class files with no problem.  Did you try
 emailing the author?  I emailed him with some questions and he was very
 responsive (answer in just a couple of hours).  he can probably give you
 the best support.
 
 -- Brett
  http://www.chapelperilous.net/btfwk/
 
 Begathon, n.:
   A multi-day event on public television, used to raise money so
   you won't have to watch commercials.
 




Java.pm

2001-04-10 Thread c.w.huling


http://www-personal.umich.edu/~mcafee/perl/java-pm.html

Known Issues:

  Currently, Java.pm can only read uncompressed zipfiles; it will die
  if there is a member of CLASSPATH which is a compressed zipfile
  (this includes jar files). I am looking into remedying this
  deficiency.

cbell writes:
 
 Hello everyone, has anyone had any experience with Java.pm?  There
 doesn't seem to be much info in the mail archives.  I'm trying to access
 a JAR from within perl using the Java.pm, but I always receive the
 error: 'java.lang.ClassNotFoundException'.  I can access the jar from a
 Java script at the command line, so the problem is from within Perl
 itself.
 
 I've tried the following two methods but always end up with the same
 results...
 
 my $class = $java-java_lang_Class("forName","Test");
 my $return_value =
 $java-static_call("MyStaticClass","function_name",@params);
 
 I can't find any examples in the archives to help me set this up
 properly.  If anyone has had any experience with this is would be
 greatly appreciated.  I'm running Modperl 1.24_01, Apache 1.3.14, and
 jdk1.3.0_02 from Sun.
 
 Thanks in advance,
 Chris.
 

-- 
C Wayne Huling [EMAIL PROTECTED]