bhagperl has asked for the wisdom of the Perl Monks concerning the following question:

Hi Monks,

I am using Inline::Java to use java code within perl

I want to change the path for J2SDK/java that Inline::Java is looking at.

Currently its looking at wrong path for java

Problem is this module is installed as root user

And i am unable to modify the configuration files for this module, which is solution for this.

Please let me know if there can be workaround without changing the config files for Inline::Java

I want to make Inline::Java take the right java path

Please help me out

Thanks in advance

-bhag

Replies are listed 'Best First'.
Re: Using Inline::Java
by Anonymous Monk on Sep 20, 2011 at 08:10 UTC

      Module is installed as ROOT user, and hence i was unable to modify the config files.

      The configuration options really worked for me.

      just include this line in your code:

      j2sdk => 'path for your java install' in the inline function as:

      Inline(<java code>, j2sdk=>'path',); worked for me