Results 1 to 2 of 2
  1. #1
    lenny is offline Member
    Join Date
    Jul 2007
    Posts
    40
    Rep Power
    0

    Default Use Perl function with java

    I have a java program designed to search websites for links, the user interface is java but the search function is Perl. I can't find anyway to start the Perl script from the java code without using the Microsoft .NET framework.
    I also need to pass the Perl script the name of the first file it's to search.
    Thanks

  2. #2
    mathias is offline Member
    Join Date
    Jul 2007
    Posts
    40
    Rep Power
    0

    Default

    You run other programs from within java using a newProcess command

    Java Code:
    System.newProcess(<name of perl script>);
    the name of that method might be off, I'd check the System API first

    I do agree with the previous post though, you most likely are using javascript, rather than JSP
    The above only works for java (in a web services case, JSP).
    Greetings.

Similar Threads

  1. Replies: 1
    Last Post: 01-07-2011, 07:20 AM
  2. How to use a function in java
    By olikhvar in forum New To Java
    Replies: 2
    Last Post: 02-16-2008, 02:57 AM
  3. function name
    By osval in forum Advanced Java
    Replies: 1
    Last Post: 08-06-2007, 08:56 PM
  4. Help with recursive function in java
    By cachi in forum Advanced Java
    Replies: 2
    Last Post: 07-31-2007, 06:51 PM
  5. Php explode function, equivalent java
    By fernando in forum Advanced Java
    Replies: 1
    Last Post: 07-31-2007, 05:44 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •