My Oracle Support Banner

OS Commands Run Through JVM Fail With (Doc ID 1473621.1)

Last updated on AUGUST 04, 2018

Applies to:

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


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.


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


To view full details, 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 a vibrant support community of peers and Oracle experts.