Posted on 2007-03-01 16:33:32-08 by asudhaker
Problem in using Java::Import
I'm facing problem in using Java::Import. I downloaded Java-Import-0.03 and GCJ-Cni-0.03. I added these in perl/lob folder. I'm trying to call a java class by writing' 'use Java::Import qw( java.lang.StringBuffer);' in the perl code. It's throwing error saying that "..Can't locate loadable object for module GCJ::Cni in @INC (@INC contains: C:/Perl/site/lib C:/Perl/lib .) at C:/Perl/lib/GCJ/Cni.pm line 7..." Am i doing any mistake here? Please suggest me. I'm just testing, how can i call java classes in perl. Regards, Sudhaker
Direct Responses: Write a response
Perl Weekly newsletter
A free weekly newsletter for people who are busy to read all the blogs. click here to check it out.