Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Comment on

( #3333=superdoc: print w/ replies, xml ) Need Help??
Hi tobyink

Thanks for the comments.
I have Inline::C module installed in my system.

Despite the environment variables $JAVA_HOME and $PERL_INLINE_JAVA_J2SDK are set properly, I couldn't be able to install Inline::Java
I wonder why it doesn't recognize JAVA_HOME?

Please see the following logs.
$ perl -e ' while(my($k, $v) =each(%ENV)) { print "$k\t$v\n" if $k =~ /J/; } ' JAVA_HOME /usr/lib/jvm/default-java PERL_INLINE_JAVA_J2SDK /usr/lib/jvm/java-6-openjdk-i386 $ $JAVA_HOME/bin/java -version java version "1.6.0_24" OpenJDK Runtime Environment (IcedTea6 1.11.5) (6b24-1.11.5-0ubuntu1~12 +.04.1) OpenJDK Server VM (build 20.0-b12, mixed mode) $ $PERL_INLINE_JAVA_J2SDK/bin/java -version java version "1.6.0_24" OpenJDK Runtime Environment (IcedTea6 1.11.5) (6b24-1.11.5-0ubuntu1~12 +.04.1) OpenJDK Server VM (build 20.0-b12, mixed mode) $ sudo cpan Inline::Java CPAN: Storable loaded ok (v2.27) Reading '/home/parthiban/.local/share/.cpan/Metadata' Database was generated on Sat, 16 Feb 2013 01:07:21 GMT Running install for module 'Inline::Java' Running make for P/PA/PATL/Inline-Java-0.53.tar.gz CPAN: Digest::SHA loaded ok (v5.61) CPAN: Compress::Zlib loaded ok (v2.033) Checksum for /home/parthiban/.local/share/.cpan/sources/authors/id/P/P +A/PATL/Inline-Java-0.53.tar.gz ok CPAN: File::Temp loaded ok (v0.22) CPAN: Parse::CPAN::Meta loaded ok (v1.4404) CPAN: CPAN::Meta loaded ok (v2.120921) CPAN.pm: Building P/PA/PATL/Inline-Java-0.53.tar.gz CPAN: CPAN::Reporter loaded ok (v1.2009) Welcome to the Inline::Java installation procedure. A Java 2 SDK is required to install and use Inline::Java. Please specify your Java 2 SDK installation directory using the J2SDK option to Makefile.PL as such: perl Makefile.PL J2SDK=/path/to/your/j2sdk/installation You can set the JAVA_HOME environment variable to specify your Java 2 SDK installation directory. For example, if you are using the CPAN installer you can do: JAVA_HOME=/path/to/your/j2sdk/installation cpan Inline::Java (/usr/bin/perl Makefile.PL INSTALLDIRS=site exited with 256) CPAN::Reporter: Makefile.PL result is 'unknown', Stopped with an error +. CPAN::Reporter: preparing a CPAN Testers report for Inline-Java-0.53 Do you want to review or edit the test report? (yes/no) [no] Do you want to send the report? (yes/no) [yes] no CPAN::Reporter: test report will not be sent Warning: No success on command[/usr/bin/perl Makefile.PL INSTALLDIRS=s +ite] CPAN: YAML loaded ok (v0.77) PATL/Inline-Java-0.53.tar.gz /usr/bin/perl Makefile.PL INSTALLDIRS=site -- NOT OK Running make test Make had some problems, won't test Running make install Make had some problems, won't install Could not read metadata file. Falling back to other methods to determi +ne prerequisites

In reply to Re^2: Java module by parthi7
in thread Java module by parthi7

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • Outside of code tags, you may need to use entities for some characters:
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.
  • Log In?
    Username:
    Password:

    What's my password?
    Create A New User
    Chatterbox?
    and the web crawler heard nothing...

    How do I use this? | Other CB clients
    Other Users?
    Others browsing the Monastery: (6)
    As of 2014-12-27 04:44 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?

      Is guessing a good strategy for surviving in the IT business?





      Results (176 votes), past polls