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

Hello:

For my next side project I'm about to start converting over some java classes over to perl, I'm looking for any advise on how to convert, hopefully, straight from java .java files straight to .pm's

Know I'm sure this is probably a no go so if anyone has any hints on how to go about transposing java class files and code into useable perl modules/code

I'd love to here from yah

toodles

Edit ar0n 2001-07-17 -- removed <pre> tags

Replies are listed 'Best First'.
Re: converting java code to perl
by merlyn (Sage) on Jul 17, 2001 at 20:03 UTC
    I'm aware of a few different mechanisms for Java/Perl interfacing:
    • There's the original JPL (Java-Perl Lingo), included with all modern Perl distributions, that allow Java and Perl to live in the same process.
    • Java allows access to a remote JVM through remote procedure calls.
    • Inline::Java is like JPL, but simpler to operate.
    • B::JVM::Jasmin compiles Perl code directly to Java bytecodes.
    Not exactly what you were looking for but maybe it might be useful to see what's happening already.

    -- Randal L. Schwartz, Perl hacker

      thanks for the replies

      what im trying to do is
      transpose a whole java jar file of stuff
      over to perl modules

      so i guess what im sort of looking for is the exact reverse of
      of B::JVM::Jasmin

      take a look at http://www.web3d.org/TaskGroups/x3d/X3dIndex.html#Source
      in particular the vrmltox3d.tar
      is the one i want to take the source from and
      transpose to perl

      i have to check but i think there might be some vrml modules
      i can use for some parts already
Re: converting java code to perl
by malloc (Pilgrim) on Jul 17, 2001 at 19:43 UTC
    Hi,
    Check out this node for some helpful suggestions.
    Hope it helps,
    -malloc