I want to access Java libraries from Perl.
So, I tried to install Java
But I got some error.
I googled to find no good solution.
So, I am trying here.
Following shows the installation command and error logs.
cpan> i Java
Module id = Java
DESCRIPTION A Perl front-end for JVM communication
CPAN_USERID METZZO (Mark Ethan Trostler <email@example.com>)
DSLIP_STATUS RdhOl (released,developer,hybrid,object-oriented,LGPL
INST_FILE (not installed)
+ cpan> install Java
Running install for module 'Java'
Running make for M/ME/METZZO/Java-4.7.tar.gz
Checksum for /home/parthiban/.local/share/.cpan/sources/authors/id/M/M
Scanning cache /home/parthiban/.local/share/.cpan/build for sizes
CPAN.pm: Building M/ME/METZZO/Java-4.7.tar.gz
Checking if your kit is complete...
Writing Makefile for Java
Writing MYMETA.yml and MYMETA.json
cp Java.pm blib/lib/Java.pm
cp JavaArray.pm blib/lib/JavaArray.pm
cp java_server_install.pl blib/lib/java_server_install.pl
cp java_server_install.pl blib/script/java_server_install.pl
/usr/bin/perl -MExtUtils::MY -e 'MY->fixin(shift)' -- blib/script/java
/usr/bin/make -- OK
Running make test
PERL_DL_NONLAZY=1 /usr/bin/perl "-Iblib/lib" "-Iblib/arch" test.pl
WARNING: You cannot run these tests unless JavaServer is running!
Do you want to continue? (Y/n) Y
Client socket error: Connection refused at test.pl line 21
(in cleanup) Can't call method "send_command_and_get_response" on
+an undefined value at Java.pm line 640, <STDIN> line 1.
not ok 0 - is JavaServer on localhost running?
Have you ran 'java_server_install.pl' yet?
JavaServer must be running for these tests to function.
make: *** [test_dynamic] Error 111
/usr/bin/make test -- NOT OK
//hint// to see the cpan-testers results for installing this module, t
Running make install
make test had returned bad status, won't install without force
Failed during this command:
METZZO/Java-4.7.tar.gz : make_test NO
Please help me.
Thanks and regards.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
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:
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
- 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
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.
| & || & |
| < || < |
| > || > |
| [ || [ |
| ] || ] ||