Date: Mon, 06 May 2002 17:55:23 -0700 From: Ian Lauder <ian@ianlauder.com> To: freebsd-questions@FreeBSD.ORG Subject: Java not accessible from Perl script Message-ID: <5.1.0.14.2.20020506174727.00aa60b8@mail.gte.net>
next in thread | raw e-mail | index | archive | help
I have FreeBSD 3.3 server and just had the FreeBSD Java JDK 1.1.8 installed.
I can run the "java" executable from my normal login. The problem is that when I try to execute the "java" program from within a Perl script and read back the results it is not returning anything.
$PipeMsg = 'java |';
open(JAVACALL, $PipeMsg) || print 'Error opening java call';
while (<JAVACALL>) {
$RetVal = $_;
print "<br>Return = $RetVal";
}
This should just retrieve and display the java help output, but nothing is returned, it also doesn't retrieve anything if I pass in a java class and parameters. Which do work if I run them from the command line, outside the perl script.
What else do I have to configure on the server to get the Perl script to execute the java program?
Best regards,
Ian
http://www.ianlauder.com
ian@ianlauder.com
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5.1.0.14.2.20020506174727.00aa60b8>
