Alien has asked for the wisdom of the Perl Monks concerning the following question:

Would it be possible to have Java written GUI for perl code?

Replies are listed 'Best First'.
Re: Java cooperation
by Fletch (Bishop) on Feb 11, 2007 at 21:47 UTC
    1. When a distinguished but elderly scientist states that something is possible, he is almost certainly right. When he states that something is impossible, he is very probably wrong.
    2. The only way of discovering the limits of the possible is to venture a little way past them into the impossible.
    3. Any sufficiently advanced technology is indistinguishable from magic.
    Arthur C. Clarke

    It's entirely feasible to run a Perl process via a pipe from a Java GUI. Or interact with one via some RPC mechanism (RPC::XML or SOAP::Lite come immediately to mind).

      There is also JNI, Inline::Java, and with lots of manual work, translating from perl optrees to Java bytecode or the reverse.

      ⠤⠤ ⠙⠊⠕⠞⠁⠇⠑⠧⠊

Re: Java cooperation
by dewey (Pilgrim) on Feb 11, 2007 at 21:50 UTC
    A quick CPAN search for Java reveals many options for communication between Java and perl. If it's for an online application, you could choose to have an applet (the user interface) communicating with server-side perl through JavaScript. Could you tell us a little more about what you want to do?
    ~dewey
      I wanted to build a GUI for an application ( with Swing ) . I found Java::Swing . Thanks !