in reply to Calling Java using system()

Try adding '.exe' after the 'java' part. Ie:

my $out = system( "/users/sophix/Desktop/prottest3/prottest3/java.exe" . " -jar prottest-3.0.jar -i $name.aa -t $name.trees -o $name.out" + . "-all -verbose -all-matrices -threads 3 -G -F -all-distributions + -ncat 4" );

Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.

Replies are listed 'Best First'.
Re^2: Calling Java using system()
by sophix (Sexton) on Jun 24, 2011 at 19:50 UTC
    Hi,

    Having experienced before with some other applications that replacing works, I had tried replacing java with java.exe, and it does not work in this case.