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  
> word name directory and try it.
> 
> Nitin
> 
> On Nov 17, 2005, at 1:31 PM, [EMAIL PROTECTED] wrote:
> 
> > 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:
> >
> > ---------------------------------------------------------------------- 
> > ----------
> >
> > use Inline Java => <<'END_OF_JAVA_CODE' ;
> >       class Pod_alu {
> >          public Pod_alu(){
> >          }
> >
> >          public int add(int i, int j){
> >             return i + j ;
> >          }
> >
> >          public int subtract(int i, int j){
> >             return i - j ;
> >          }
> >       }
> >    END_OF_JAVA_CODE
> >
> >    my $alu = new Pod_alu() ;
> >    print($alu->add(9, 16) . "\n") ; # prints 25
> >    print($alu->subtract(9, 16) . "\n") ; # prints -7
> >
> > ---------------------------------------------------------------------- 
> > ----------
> >
> > However, I get the following result:
> >
> > ---------------------------------------------------------------------- 
> > ----------
> >
> > [C:\Documents and Settings\malikvis\Desktop\sonicMQ-Perl]perl test.pl
> > Can't open C:\Documents\config tor output.
> > No such file or directory
> >
> >  at -e line 0
> > BEGIN failed--compilation aborted.
> > Failed to autogenerate C:\Documents and Settings\malikvis\Desktop 
> > \sonicMQ-Perl\_
> > Inline\config.
> >
> >  at test.pl line 1
> > BEGIN failed--compilation aborted at test.pl line 14.
> >
> > [C:\Documents and Settings\malikvis\Desktop\sonicMQ-Perl]
> >
> > ---------------------------------------------------------------------- 
> > ----------
> >
> > This is a really weird error. Offcourse, there's no file as C: 
> > \Documents\config.
> > There's no such directory as C:\Documents to begin with.
> >
> > Since I'm new to perl, I don't know how to conveniently track and  
> > fix this
> > problem. Any help would be appreciated.
> >
> > Vishal
> >
> > ----------------------------------------
> > This mail sent through www.mywaterloo.ca
> 




----------------------------------------
This mail sent through www.mywaterloo.ca

Reply via email to