Hi Patrick; meanwhile I got Inline-Java running with the JNI Extension. Please, read on!
There were two things I did: 1. I replaced gnu-make with the solaris-make 2. I changed the LDFLAGS in the Makefile to include the path to my libjvm.so LDFLAGS = -R/usr/local/lib -R/usr/j2sdk1.4.1_02/jre/lib/sparc/server -L/usr/local/lib:/usr/j2sdk1.4.1_02/jre/lib/sparc/server Than I could succeessfully run "make test". (I don't know if step one is needed, but anyway, that was how I began.) After installing Inline-Java (via pkgadd) I faced another problem which I solved by enhancing LD_LIBRARY_PATH in the following way setenv LD_LIBRARY_PATH ${LD_LIBRARY_PATH}:/usr/j2sdk1.4.1_02/jre/lib/sparc/server Setting the environment variable setenv PERL_INLINE_JAVA_JNI 1 and deleting the old _Inline directory I succeeded in running my first perl script :-) Within the java class I put the thread to sleep with Thread.sleep(50000); and checked the java processes. There was none with /usr/j2sdk1.4.1_02/bin/java org.perl.inline.java.InlineJavaServer 0 7890 false so I assume I got the JNI extension running at last :-) In the next step I will run tests to check how the system works when multiple processes are running. ********************************************** What concerns the debugger: it still doesn't work and I appreciate any hint how to work around this problem! The debugger is such a valuable tool for me because I work on an old and complicated code basis and it helped me to fix all the bugs and add new functionality. Thank you very much for your help and your work on Inline-Java. Sincerely Wilhelm Patrick LeBoutillier <[EMAIL PROTECTED]> 15.02.2005 15:02 Bitte antworten zu Patrick LeBoutillier <[EMAIL PROTECTED]> An Wilhelm Pastoors/Denic <[EMAIL PROTECTED]> Kopie inline@perl.org Thema Re: Inline-Java on SunOS 5.9 / make and debug Problem /Newbie $MessageID: <[EMAIL PROTECTED]> PostedDate: 15.02.2005 15:02:35 From: Patrick LeBoutillier <[EMAIL PROTECTED]> SendTo: Wilhelm Pastoors/Denic <[EMAIL PROTECTED]> Subject: Re: Inline-Java on SunOS 5.9 / make and debug Problem /Newbie CopyTo: inline@perl.org Received: from smtp.denic.de ([81.91.161.3]) by notes.denic.de with ESMTP id 2005021516570647-96976 ; Tue, 15 Feb 2005 16:57:06 +0100 Received: from lists.develooper.com (x6.develooper.com [63.251.223.186]) by smtp.denic.de with smtp id 1D154T-0003ZC-Vv; Tue, 15 Feb 2005 16:57:06 +0100 Received: (qmail 7536 invoked by uid 514); 15 Feb 2005 15:56:52 -0000 Received: (qmail 15035 invoked from network); 15 Feb 2005 14:02:42 -0000 Mailing_List: contact [EMAIL PROTECTED]; run by ezmlm Precedence: bulk list_post: <mailto:inline@perl.org> list_help: <mailto:[EMAIL PROTECTED]> list_unsubscribe: <mailto:[EMAIL PROTECTED]> List_Subscribe: <mailto:[EMAIL PROTECTED]> List_Id: <inline.perl.org> Delivered_To: inline@perl.org X_Spam_Status: No, hits=-2.5 required=8.0 tests=BAYES_00,RCVD_BY_IP X_Spam_Check_By: la.mx.develooper.com Received_SPF: pass (x1.develooper.com: domain of [EMAIL PROTECTED] designates 64.233.170.194 as permitted sender) DomainKey_Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=hMSR4HObp7efozMwUh6Zdm5jpDkx+2gw9iy4Sl38LQa669E4ahITLUXnbAncB4kd0AmTRtoRifCNWBAtMlm45AITA508Vg6KZiu8NaogxtI/OqBN8BHesjx3hNra4pZ9kmnRGZWRf66F0V5njZ1URopXDYrXIfM4SduREGmz4mc= ReplyTo: Patrick LeBoutillier <[EMAIL PROTECTED]> In_Reply_To: <[EMAIL PROTECTED]> MIME_Version: 1.0 References: <[EMAIL PROTECTED]> $MIMETrack: Itemize by SMTP Server on notes/Denic(Release 6.5.2|June 01, 2004) at 15.02.2005 16:57:06;MIME-CD by Notes Client on Wilhelm Pastoors/Denic(Release 6.0.3|September 26, 2003) at 15.02.2005 17:06:39;MIME-CD complete at 15.02.2005 17:06:40 SMTPOriginator: [EMAIL PROTECTED] $TKAttaConversion: DONE 0.000sec $TkFlag50: starting jobs # notes/Denic # 15.02.2005 16:57:06 # Process M01;jobs ended # notes/Denic # 15.02.2005 16:57:06 RouteServers: CN=notes/O=Denic RouteTimes: 15.02.2005 16:57:06-15.02.2005 16:57:07 DeliveredDate: 15.02.2005 16:57:07 $EncryptionStatus: 0 $SignatureStatus: 0 Wilhelm, About the debugger I have no idea. I've never used the perl debugger. When you installed Inline::Java, it asked you if you wanted to build the JNI extension. Did you say yes? If so make sure you check for any errors during the installation. Patrick On Tue, 15 Feb 2005 10:13:04 +0100, Wilhelm Pastoors/Denic <[EMAIL PROTECTED]> wrote: > Hi; > > I installed Inline-0.44 and Inline-Java-0.49 on > SunOS 5.9 Generic_112233-06 sun4u sparc. > > Here is some code of my perl-class which works > successfully when not called with the debug-option. > > use Inline Java => 'STUDY', > STUDY => ['JMSEnqueue'] , > SHARED_JVM => 1; > > sub new { > my $class = shift; > return JMSEnqueueProvider::JMSEnqueue->new($ldapURL,$ldap1,$ldap2); > } > 1; > > But I'm facing two problems: > > 1. I can't use my "perl -d" debugger anymore. > The program terminates before it begins to work > > This is part of the output I get: > > Global symbol "BEGIN" requires explicit package name at (eval > 479)[/usr/local/lib/perl5/site_perl/5.8.5/sun4-solaris/Inline/Java.pm:822] > line 2, <GEN1> line 4. > BEGIN not safe after errors--compilation aborted at (eval > 479)[/usr/local/lib/perl5/site_perl/5.8.5/sun4-solaris/Inline/Java.pm:822] > line 2, <GEN1> line 4. > at (eval > 479)[/usr/local/lib/perl5/site_perl/5.8.5/sun4-solaris/Inline/Java.pm:822] > line 2 > eval 'package ; > use vars qw(@ISA $INLINE $EXISTS $JAVA_CLASS $DUMMY_OBJECT) ; > > 2. JNI.so isn't build - neither perl nor I can > find it ;-) > > Are these known problems? > Is there an area where I do something wrong? > > Is there hope to get JNI running with j2sdk1.4.1_02 on SunOS 5.9? > > Sincerely > > Wilhelm > > -- ===================== Patrick LeBoutllier Laval, Québec, Canada