我有一個項目,我將其轉換爲可運行jar文件。我正在使用ini4j在我的ini文件中存儲一些配置。 它工作時,我簡單地設置目錄getConf = new Ini(new FileReader(path));,但它不會工作,當我使用getResourceAsStream() public class IniReader {
// When I set it like that, it works.
我正在嘗試使用ini4j。但我無法讀取文件。代碼: ini = new Wini(new InputStreamReader(new FileInputStream("./setup.ini"), "UTF-8"));
但它給我的錯誤: Unhandled exception type IOException
Unhandled exception type InvalidFileForma