Re: [Java] Calling perl from an ActionListener

2003-11-25 Thread Patrick LeBoutillier
Mark, Did the test suite run ok? Try deleting your _Inline directory. Had you by any chance compiled this code before? Maybe something happened and the cache is screwed up. Pat On Tue, 2003-11-25 at 12:10, Mark Fowler wrote: > On Mon, 24 Nov 2003, Patrick LeBoutillier wrote: > > > I uploaded

Re: [Java] Calling perl from an ActionListener

2003-11-25 Thread Mark Fowler
On Mon, 24 Nov 2003, Patrick LeBoutillier wrote: > I uploaded Inline-Java-0.44-RC3.tar.gz which should fix the problem. Thanks. I've got another one though :-). It makes, passes tests and installs fine, but when I try to run the script you posted in the announcement elsewhere in this thread I g

Re: [Java] Calling perl from an ActionListener

2003-11-24 Thread Patrick LeBoutillier
Mark, I uploaded Inline-Java-0.44-RC3.tar.gz which should fix the problem. Cheers, Patrick On Mon, 2003-11-24 at 06:22, Mark Fowler wrote: > On Fri, 21 Nov 2003, Patrick LeBoutillier wrote: > > > Hi all, > > > > I believe I finally found a working solution for this problem. > > It basically f

Re: [Java] Calling perl from an ActionListener

2003-11-24 Thread Patrick LeBoutillier
Mark and all, My bad. I just realized I forgot to add the new files to the MANIFEST... I'll fix it and post RC3 soon... Sorry about that, Patrick > On Fri, 21 Nov 2003, Patrick LeBoutillier wrote: > >> Hi all, >> >> I believe I finally found a working solution for this problem. >> It basically

Re: [Java] Calling perl from an ActionListener

2003-11-24 Thread Mark Fowler
On Fri, 21 Nov 2003, Patrick LeBoutillier wrote: > Hi all, > > I believe I finally found a working solution for this problem. > It basically follow the original design I posted a few days back: Great! I finally got a free five minutes to try it out today, and I'm having a few problems. I downlo

Re: [Java] Calling perl from an ActionListener

2003-11-21 Thread Michael Roberts
Damn, that is just so cool. Michael Patrick LeBoutillier wrote: Hi all, I believe I finally found a working solution for this problem. It basically follow the original design I posted a few days back: Definitions: - TCP: A Java thread that communicates with Perl. All Perl actions done on Java o

Re: [Java] Calling perl from an ActionListener

2003-11-21 Thread Patrick LeBoutillier
Hi all, I believe I finally found a working solution for this problem. It basically follow the original design I posted a few days back: Definitions: - TCP: A Java thread that communicates with Perl. All Perl actions done on Java objects obviously occur through a TCP. New Interface (not final):

Re: [Java] Calling perl from an ActionListener

2003-11-20 Thread Patrick LeBoutillier
Mark, Thanks for the feedback. That's exactly the kind of design I was looking at implementing. I'll keep your point #2 in mind, as my thinking process has not quite reached that stage yet:) Thanks, Patrick On Thu, 2003-11-20 at 09:25, Mark Fowler wrote: > On Thu, 20 Nov 2003, Patrick LeBoutil

Re: [Java] Calling perl from an ActionListener

2003-11-20 Thread Michael Roberts
Ah, sorry, I'd misunderstood but it's clear now. I thought *Perl* was waiting in wait_for_callbacks(), but instead that is (as you said) a method, thus it's in the Java thread which is representing Perl, right? So what you now want to do is to provide "Perl services" from that thread for othe

Re: [Java] Calling perl from an ActionListener

2003-11-20 Thread Mark Fowler
On Thu, 20 Nov 2003, Patrick LeBoutillier wrote: > suggestions I had a long think about this when I couldn't get it to work and came to roughly the same conclusions as you. Here's what I came up with, just incase you're still looking for feedback. 1) The simpliest implementation is a MainLoop

Re: [Java] Calling perl from an ActionListener

2003-11-20 Thread Patrick LeBoutillier
Jay, In your case it would work because it's your custom class that makes the callbacks, and your custom class, being inlined in Perl, is created by the thread that communicates with Perl. The restriction would apply only to object creation, not method invocation. I worked on it a bit more last

Re: [Java] Calling perl from an ActionListener

2003-11-20 Thread Jay Strauss
I'm not sure if it would work in my case: My perl will: - create instance of custom class - create instance of vendor class, passing it my custom class - call method in vendor's class which starts a new thread - new thread calls, custom class' methods - custom class method makes callbacks to perl

Re: [Java] Calling perl from an ActionListener

2003-11-19 Thread Patrick LeBoutillier
Mark, On Tue, 2003-11-18 at 18:31, Mark Fowler wrote: > I'm getting a java.lang.UnsatisfiedLinkError 'jni_callback'. This only > happens from within the actionPerformed method (it works fine if I try > calling the same thing in the constructor,) so I'm guessing it's a problem > with calling back

[Java] Calling perl from an ActionListener

2003-11-18 Thread Mark Fowler
Hi. I'm trying to call a Perl function whenever someone clicks on a button in Java. Here's the example code: http://2shortplanks.com/temp/inline_java_test.pl.txt I'm getting a java.lang.UnsatisfiedLinkError 'jni_callback'. This only happens from within the actionPerformed method (it works f