My Oracle Support Banner

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

Last updated on MARCH 26, 2019

Applies to:

Oracle Database - Enterprise Edition - Version and later
Oracle Database Cloud Schema Service - Version N/A and later
Oracle Database Exadata Express Cloud Service - Version N/A and later
Oracle Database Exadata Cloud Machine - Version N/A and later
Oracle Cloud Infrastructure - Database Service - Version N/A 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!

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.