get file name from path without exetension apache commons code example Example: how to get filename without extension in java FilenameUtils.removeExtension(fileNameWithExt);