Hello, I am trying to build Inline-Java (v51) on a PPC 64 bit system and I got a warning during "make java" portion which is preventing me from further building, etc. I'm using IBM's JRE (java version 1.6.0) on Perl 5.8.8. I can see in the source where the deprecated call is made and I've read that changing the call from .toURL() to .toURI().toURL() will fix it but I'm not sure if patching the source is the way to go. Any help would be greatly appreciated. Welcome to the Inline::Java installation procedure.
Default J2SDK for Inline::Java will be '/usr/java'.
See module documentation for information on how to use a different J2SDK
or change this default value.
Checking if your kit is complete...
Inline::Java can use a JNI extension that allows the Java Virtual Machine
(JVM) to be dynamically linked with Perl instead of running as a separate
process. The use of this extension is optional, and building it still
allows Inline::Java to run the JVM in the default (separate process)
Note: You need a C compiler to build the extension.
Note: You must build the extension if you wish to use PerlNatives or
Do you wish to build the JNI extension? [y] y
Building JNI extension.
Can't locate file 'jni_md.h' anywhere under '/usr/java'
Writing Makefile for Inline::Java
You can continue the installation with the following commands:
% make java
% make test
% make install
Running make java for Inline Java"/usr/java/bin/javac" -deprecation -g -d Java/classes Java/sources/org/perl/inline/java/*.java
Java/sources/org/perl/inline/java/InlineJavaUserClassLoader.java:36: warning: [deprecation] toURL() in java.io.File has been deprecated
URL u = p.toURL() ;