Updates to JPL II

[email protected] Fri, 2 Jun 2000 07:48:47 -0400
Newsgroups perl.jpl
Message-ID <[email protected]>
For the benefit of others, a continuation of my conversation with Brian
Jepson.
====================================================
M. Scott Roth,
<[email protected]>
Information Systems Engineer
Science Applications International Corporation
703-375-2260
========================<><=========================

----- Forwarded by Scott Roth/NMSD on 06/02/00 07:49 AM -----
                                                                                                                   
                    Brian Jepson                                                                                   
                    <bjepson@jeps        To:     [email protected]                                          
                    tone.net>            cc:                                                                       
                                         Subject:     Re: Updates to JPL                                           
                    06/01/00                                                                                       
                    10:13 AM                                                                                       
                                                                                                                   
                                                                                                                   





On Thu, 1 Jun 2000 [email protected] wrote:

>
> Hey, Brian, sorry to bother you again.  I have successfully made it past
> the "make test" stage.  I had to make a few modes to JNI.xs and JNI.pm to
> make it JDK 1.2.2-friendly.  I thought I would pass them on.
>
> JNI.pm:233 - changed     $JAVALIB
> = "$ENV{JAVA_HOME}/lib/$arch/$ENV{THREADS_TYPE}";
>           to   $JAVALIB = "$ENV{JAVA_HOME}/lib/";
>      I don't have a "Win32" subdir under $JAVA_HOME/lib and no concept of
> threads, green or otherwise.  In fact, I don't have any subdirs under
> $JAVA_HOME/lib.  This might be a function of only having the win32 JDK
and
> JRE installed instead of a full-blown Java environment.  I don't know how
> this will translate to the ELSE block below it.
>

Thanks - I'll have to look at this - it seems that with every release of
Java, the directory structure gets reorganized...

> JNI.xs:3148 - changed    if (!LoadLibrary("javai".dll")) {
>           to   if (!LoadLibrary("d:
> \\jdk1.2..2\\jre\\bin\\classic\\jvm.dll")) {
>      The JDK and JRE 1.2.2 don't have a javai.dll but the jvm.dll has the
> same functions.  Sun might have discussed the switch in names from JDK
1.1
> to JDK 1.2 but I didn't search through them.  Hard coding the path is not
> elegant and I will fix that now.
>

Great - perhaps we can add a define for JDK 1.1.x vs. JDK 1.2, and let the
preprocessor decide whether we should load javai.dll or jvm.dll.  Could
you add D:\jdk1.2.2\jre\bin\classic to your %PATH%, which would let us
omit the path in the call to LoadLibrary?

> I think those were the only changes.  I hope they help you get this thing
> Perl 5.6 and JDK1.2 compatible.  I have not yet addressed the warnings I
> copied to you on the last message.
>

Thanks - in an earlier mail, you mentioned tacking msvcrt.lib onto the
link stage - did you add this in the Makefile.PL or in the generated
Makefile?  I appreciate the work you're putting into getting this work,
and I'd like to get these changes into the JPL source.

Also, feel free to cc: the jpl list on anything you send me - there may be
lurkers who could come up with useful suggestions to the issues we're
working through (one reason I like cc'ing the list is that Sarathy sees
it).

Cheers,

--
Brian Jepson * ([email protected])  *  http://www.jepstone.net/