Here you can find the source of deleteJaasFile(String jaasPath)
private static void deleteJaasFile(String jaasPath) throws IOException
//package com.java2s; //License from project: BSD License import java.io.File; import java.io.IOException; public class Main { private static void deleteJaasFile(String jaasPath) throws IOException { File jaasFile = new File(jaasPath); if (jaasFile.exists()) { if (!jaasFile.delete()) { throw new IOException("Failed to delete exists jaas file."); }/*from ww w. j a v a 2 s. c o m*/ } } }