使用 exe4j_windows-x64_6_0_2将JAR转为EXE程序打开时出现以下错误 以下为日志提示,想请问下各位这是由于什么原因造成的,怎么去解决该问题 谢谢
java.io.FileNotFoundException: serial_parameter.properties (系统找不到指定的文件。)
at java.io.FileInputStream.open0(Native Method)
at java.io.FileInputStream.open(Unknown Source)
at java.io.FileInputStream.<init>(Unknown Source)
at java.io.FileInputStream.<init>(Unknown Source)
at com.mutouyizhi.ocr.Utils.getProperties(Utils.java:26)
at com.mutouyizhi.ocr.Utils.getServerSocket(Utils.java:101)
at com.mutouyizhi.ocr.LoopConnectServerRunnable.<clinit>(LoopConnectServerRunnable.java:13)
at com.mutouyizhi.ocr.Main.main(Main.java:19)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.exe4j.runtime.LauncherEngine.launch(LauncherEngine.java:85)
at com.exe4j.runtime.WinLauncher.main(WinLauncher.java:94)
java.lang.ExceptionInInitializerError
at com.mutouyizhi.ocr.Main.main(Main.java:19)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.exe4j.runtime.LauncherEngine.launch(LauncherEngine.java:85)
at com.exe4j.runtime.WinLauncher.main(WinLauncher.java:94)
Caused by: java.lang.NullPointerException
at com.mutouyizhi.ocr.Utils.getServerSocket(Utils.java:105)
at com.mutouyizhi.ocr.LoopConnectServerRunnable.<clinit>(LoopConnectServerRunnable.java:13)
... 7 more