Results 1 to 2 of 2

Thread: Java and perl

  1. #1
    Proshitness is offline Member
    Join Date
    Oct 2011
    Rep Power

    Default Java and perl

    Hi, can someone tell me please how can I execute a perl script using java?
    I have this code:
    Java Code:
    	public static void main(String[] args) {
    		try {
    			Process p = Runtime
    					.exec("C:\\Perl64\\bin\\perl.exe C:\\Users\\2566\\Desktop\\");
    		} catch (IOException e) {
    			// TODO Auto-generated catch block
    		 * ProcessBuilder pb = new ProcessBuilder(new String[] { "cmd", "/k",
    		 * "start" });
    and I can't seem to get it to run.
    This is quiet urgent so an answer asap would be appreciated.

  2. #2
    heatblazer is offline Senior Member
    Join Date
    Nov 2012
    Rep Power

    Default Re: Java and perl

    I`d suggest read more about perl and look for modules. have many topics about bindings with Java and Perl. Also, your code above will probably execute that script as process, it`s better be a thread from your Java. Here is something useful: The CPAN Search Site -

Similar Threads

  1. anyone with experience in Perl and Java help please?
    By GoodThing007 in forum New To Java
    Replies: 2
    Last Post: 02-10-2012, 07:41 PM
  2. Calling Perl from Java
    By Shabber102 in forum Advanced Java
    Replies: 12
    Last Post: 02-06-2012, 02:05 PM
  3. Including Perl in java
    By swati.jyoti in forum New To Java
    Replies: 1
    Last Post: 05-13-2010, 04:31 PM
  4. Perl in Java!
    By hakan123 in forum New To Java
    Replies: 5
    Last Post: 12-11-2009, 08:05 PM
  5. run perl script from java
    By maheshmhs in forum New To Java
    Replies: 0
    Last Post: 12-19-2008, 01:40 PM

Posting Permissions

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