Front page | perl.jpl |
Postings from July 2003
JPL - Quite lost...
Thread Next
From:
marer
Date:
July 9, 2003 08:32
Subject:
JPL - Quite lost...
Hi everybody,
I am totally new to JPL and, even if I have used both Perl and Java
separately for a while, I am not what I could call a "guru" in any of
those languages.
I've roamed the Web (mainly with Google) looking for infos about JPL, and
it seems obvious it's not the most documented tool ever made...
I'm actually trying to make something work. I'm running Linux Mandrake 9.0
with JDK 1.4.1_03. Since JPL was not included with my distribution (which
took me ages to discover since I was reading everywhere that JPL was part
of the core Perl package, so I guessed I ought to have it), I downloaded
the latest Perl distribution (5.8.0) and compiled it for my system. Then I
went to the jpl directory and ran the install-jpl script. After compiling
Perl for a second time (because the install-jpl script told me at some
point that libperl.so was needed and I remembered answering "no" (the
default) to that question when the Configure script was run first), the
Sample program couldn't run (something about "crypt" symbol not being
known by libperl.so).
So I tried the MethodDemo code written by Brian Jepson in its JPL
"tutorial" ( http://www.daimi.au.dk/Manuals/perl/jpl/docs/Tutorial.html)
(I say "tutorial" because it still took a post from another newbie for me
to know that I needed to type something like "perl -MJPL::Compile -e
"file('file.jpl')"; for compiling a JPL file). Actually here are the steps
I went through:
1- created a directory where I put the Makefile.PL file
2- created a MethodDemo.jpl file with Brian Jepson code inside
3- typed: eval `/usr/java/jpl/setvars -sh`
4- typed: perl Makefile.PL
5- typed: perl -MJPL::Compile -e "file('MethodDemo.jpl')";
Output:
javac MethodDemo.java
javah -jni MethodDemo
javap -s MethodDemo
perl -c MethodDemo.pl
MethodDemo.pl syntax OK
Created files:
MethodDemo.c, MethodDemo.h, MethodDemo.class, MethodDemo.java,
MethodDemo.pl
Now if I type "make", I get:
make: *** No rules for making target `jpl.class', needed for `all'.
Stopping.
If I type "java MethodDemo", I get:
Exception in thread "main" java.lang.UnsatisfiedLinkError: no MethodDemo
in java.library.path
Is the problem with me using JDK 1.4.1_03 instead of, say, 1.3.1? But I do
need JPL to run with JDK 1.4...
Could someone provide me with help or link me to a page where complete
documentation about JPL is available?
Thank you very much.
Eric Martel
Sainte-Foy (Québec)
Canada
Thread Next
-
JPL - Quite lost...
by marer