Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

Accessing a Java class in Perl

  • 14-07-2005 10:41am
    #1
    Closed Accounts Posts: 3,105 ✭✭✭


    ok.. i'm using the "Inline" package.
    and i need to work out how to access a java class..
    i have to run it with a command line argument.
    can someone please help me with this, if anyone has good links examples or anything.
    thanks.


Comments

  • Registered Users, Registered Users 2 Posts: 68,317 ✭✭✭✭seamus


    Not sure what the inline package is, but I did a similar thing with Java/PHP before.

    Basically created a runnable Java class (i.e. one with a main() method) that took certain arguments, and outputted the data formatted a certain way. Then from PHP I opened a process stream with a system call to "java myClass arg1 arg2 arg3", etc and read in the data outputted by the java class.

    It's messy in my eyes, but it got the job done.


Advertisement