My Oracle Support Banner

[Java SE] File.mkdirs() fails intermittently while creating the directories (Doc ID 2986776.1)

Last updated on NOVEMBER 21, 2023

Applies to:

Java SE JDK and JRE - Version 11 and later
Generic Windows

Symptoms

File.mkdirs() fails while creating a hierarchy of directories if another application (or thread) creates an intervening directory while mkdirs() is running. This can occur on multi-processor systems.
This was observed with Oracle Java and OpenJDK 11.0.3/11.0.14/20.

Cause

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
Symptoms
Cause
Solution
 Workaround
References


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