Ok so when i use ClassLoader.getSystemResourceAsStream
it will only work sometimes, sometimes it will find the file and it will return true and then sometimes it will return false here is my code
InputStream ffmpegStream = ClassLoader.getSystemResourceAsStream("bin");
InputStream ffplayStream = ClassLoader.getSystemResourceAsStream("bin//ffplay.exe");
InputStream ffprobeStream = ClassLoader.getSystemResourceAsStream("bin//ffprobe.exe");
File MainConfigFile = new File(this.getMainConfigLocation());
File FFMPEGFile = new File(ffmpegStream.toString());
File FFMPEGFileInstallLocation = new File(FFMPEGInstallDirectory);
File FFPLAYFile = new File(ffplayStream.toString());
File FFPLAYFileInstallLocation = new File(FFPlayInstallDirectory);
File FFPROBEFile = new File(ffprobeStream.toString());
File FFPROBEFileInstallLocation = new File(FFProbeInstallDirectory);
FFMPEGFile.renameTo(FFMPEGFileInstallLocation);
FFPLAYFile.renameTo(FFPLAYFileInstallLocation);
FFPROBEFile.renameTo(FFPROBEFileInstallLocation);
System.out.println(FFMPEGFile.exists());
System.exit(0);