Hi
I am facing some issues while executing a perl script with inline java code
i - NON - JNI mode i get the error
C:\PerlInstaller\perl\bin>perl 1.pl
Can't locate object method "new" via package "JAxH" (perhaps you forgot to load
"JAxH"?) at 1.pl line 9, <GEN7> lin
e 3.
ii - JNI mode
C:\PerlInstaller\perl\bin>perl 1.pl
Unable to find UTE, path used C:\bin\ute.dll
Can't create Java JVM using JNI at
C:/PerlInstaller/perl/site/lib/Inline/Java/JVM.pm line 54.
BEGIN failed--compilation aborted at 1.pl line 7.
Here is the content of my path variable
PATH - C:\Program Files\IBM\Java142\jre\bin; C:\Program
Files\IBM\Java142\jre\bin\classic;C:\Perl2\bin;C:\perl3\perl\bin;C:\Program
Files\ThinkPad\Utilities;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program
Files\IBM\Infoprint Select;C:\Notes;C:\Program
Files\XLView;C:\lotus\compnent;C:\Utilities;C:\Program Files\IBM\Personal
Communications\;C:\Program Files\IBM\Trace Facility\;C:\Program
Files\Intel\Wireless\Bin\;C:\WINDOWS\Downloaded Program Files;C:\Program
Files\ThinkPad\ConnectUtilities;C:\IBMTOOLS\Python22;C:\Program
Files\Rational\common;C:\Program
Files\Rational\ClearCase\bin;C:\downloads\jython_Release_2_2alpha1;C:\Program
Files\Microsoft Visual Studio
8\VC\bin;C:\downloads\dmake-4.7-20061120-SHAY\dmake;C:\Program Files\Microsoft
Visual Studio 8\Common7\IDE;C:\Program Files\QuickTime\QTSystem\
Is there any other env variables setting which i need to do ? i am running this
on a windows xp machine.
Here is the sample perl script
use Inline Java => <<'END';
class JAxH {
public JAxH(String x){
System.out.println("Just Another " + x + " Hacker") ;
}
}
END
new JAxH('Inline') ;
Thanks in anticipation
Prashanth
---------------------------------
Ahhh...imagining that irresistible "new car" smell?
Check outnew cars at Yahoo! Autos.