HP OpenVMS Systems

ask the wizard
Content starts here

Java failure on exec call?

» close window

The Question is:

I am running Java version 1.2.2-3 on an Alpha system running OpenVMS 7.2-1.
 When using the following code snippet to execute a DCL command from within
 Java I receive an IOException with the following error message:
Child creation error: no such file or directory.
This error occurs regardless of the command that I enter in the .exec() call.
  Runtime rt = Runtime.getRuntime();
  String command = "show logical EO_AIRF";
  Process envProcess = rt.exec(command);
} catch (IOException e)
 This code executes on both unix and Windows NT (with the appropriate change to
 the command) . Anay help would be greatly appreciated.

The Answer is :

  This is a known and documented restriction in Java 1.2.2 on OpenVMS.
  You cannot exec() a DCL verb in the OpenVMS Java environment.
  For details of this and for a potential workaround, please view the
  Java 1.2.2 release notes for OpenVMS, available via:

answer written or last revised on ( 7-AUG-2001 )

» close window