OS Commands Run Through JVM Fail With Java.io.IOException (Doc ID 1473621.1)

Last updated on JULY 09, 2013

Applies to:

Oracle Database - Enterprise Edition - Version 11.2.0.3 and later
Information in this document applies to any platform.

Symptoms

OS is on Windows and trying to call an executable "ls -la" which actually performs the function of dir command in Command Prompt.

While trying to call an OS command through the Java class loaded into the Database, getting the below error:

The executable in question can be anything not just the one mentioned above.

Changes

The path to the "ls.exe" executable is already added to the PATH environment variable.

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms