Re: Having trouble with AUTOSTUDY

2006-01-06 Thread vmalik
You are explicitely studying the class you have problem with (com.ibm.client.Contract). It doesn't even look like an AUTOSTUDY problem. Is the Contract class in your classpath? Vishal Quoting Jay Strauss <[EMAIL PROTECTED]>: > Hi, > > I can't seem to autostudy. I've looked at the archives, a

Re: calling a Perl object from Java

2005-12-20 Thread vmalik
I don't know enough to answer your question, but don't you have to use Inline::Java::Callback module to accomplish something like that? Vishal Quoting Jay Strauss <[EMAIL PROTECTED]>: > Hi, I'd like my Java to call an already instantiated perl object. I tried > the > code below (plus other va

Re: Inline::Java STUDY statements in a different package

2005-12-13 Thread vmalik
Oh yeah, I never noticed the PACKAGE directive in the Inline::Java documentation. It's pretty cool. Thanks. Vishal Quoting Patrick LeBoutillier <[EMAIL PROTECTED]>: > Hi, > > By default Inline::Java imports the symbols in the caller package. So > if you say: > > package mypack; > use Inlin

RE: Inline::Java STUDY statements in a different package

2005-12-13 Thread vmalik
It does not recognize the class. Here is the exact error message: Can't locate object method "new" via package "com::sonicsw::mq::mgmtapi::config: :MQMgmtBeanFactory" (perhaps you forgot to load "com::sonicsw::mq::mg

Inline::Java STUDY statements in a different package

2005-12-13 Thread vmalik
Hi all, What should I do to use Inline Java, if all the use statements pertaining to it are in a different package. For example, if I want to create an object of class com.sonicsw.mq.mgmtapi.config.MQMgmtBeanFactory in a perl script, then I will have to say something like: my $objectRef = new com

Re: Inline Java Weird Error

2005-12-02 Thread vmalik
Is there a way to prevent the program from dying in such a case? For example, I was trying to do the following: BEGIN { $ENV{'CLASSPATH'} = 'C:\Sonic\MQ6.1\lib\certj.jar'; } eval{ use Inline Java =>

Inline Java Weird Error

2005-11-30 Thread vmalik
Hi all, I tried to execute this little script: -- BEGIN { $ENV{'CLASSPATH'} = 'C:\Sonic\MQ6.1\lib\certj.jar'; } use Inline Java => 'STUDY', STUDY => ['com.rsa.certj.xml.Transformer']; --

Re: How to use the CLASSPATH config option

2005-11-29 Thread vmalik
Thanks Patrick Quoting Patrick LeBoutillier <[EMAIL PROTECTED]>: > On 11/29/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> > wrote: > > Hi, > > > > How can I use the CLASSPATH configuration option with Inline::Java? If, at > the > > beginning of the perl program, I add a line like: > > > > use Inline

How to use the CLASSPATH config option

2005-11-29 Thread vmalik
Hi, How can I use the CLASSPATH configuration option with Inline::Java? If, at the beginning of the perl program, I add a line like: use Inline Java => 'CLASSPATH', CLASSPATH => 'C:\Sonic\MQ6.1\lib\broker.jar'; perl complians as follows: -

Re: Fwd: Calling static methods from a studied class without creating an object

2005-11-23 Thread vmalik
Thanks Patrick. I had forgotten that. I have another question. Can we always use AUTOSTUDY. For example, the following little script would not work: use Inline Java => 'AUTOSTUDY', AUTOSTUDY => 1; my $hm = new java:

Calling static methods from a studied class without creating an object

2005-11-23 Thread vmalik
Hi, I was wondering if it is possible to call a static method from a class which has been studied by Inline::Java, if there is no constructor available for the class. For example, I have written the following script: ---

Re: Inline 0.45

2005-11-17 Thread vmalik
I agree with Andy's idea. It would be much easier to use it on Win32 if directories like "Documents and Settings" did not create any problems owing to the spaces in the name. Vishal Quoting Ingy dot Net <[EMAIL PROTECTED]>: > Hi All, > > I'm thinking about releasing a new version of Inline in

Re: Problem using Inline::Java

2005-11-17 Thread vmalik
Thanks Nitin, That was it. It worked when I tried to run the script from a directory without any space in the name. Quoting Nitin Madnani <[EMAIL PROTECTED]>: > Hmm, I am thinking that it somehow truncated the "Documents and > Settings" folder name to "Documents". Try installing it under a one

Problem using Inline::Java

2005-11-17 Thread vmalik
Hi, I am a novice at using Perl. I just built and installed Inline 0.44 and Inline::Java 0.49 on top of an ActiveState Perl 5.8.7 installation on Win32. Then, I tried to use the Inline::Java module with the following script found on the author's documentation page: --