调用jar程序,读取与jar同级的配置文件。
摘要:System.getProperty("user.dir") + "\\Mysettings.properties";//该方法在Alimonitor里取不到绝对路径 改成如下方法便可解决此问题: /** * 得到jar配置文件路径 * */ String GetPropertyFilePath()
阅读全文
posted @
2016-03-22 20:30
xuxu_dragon
阅读(2314)
推荐(0)
java.lang.UnsupportedClassVersionError
摘要:尝试运行出错,出错原因:/tmp/tmp_1458557049226652 exit 1, Exception in thread "main" java.lang.UnsupportedClassVersionError: autonavi/tinfo/nagiosMonitor/Main : U
阅读全文
posted @
2016-03-22 16:15
xuxu_dragon
阅读(360)
推荐(0)
jar包程序 读取properties文件
摘要:String proFilePath = System.getProperty("user.dir") + "\\Mysettings.properties"; Properties prop = new Properties(); MonitorProperties monitorProperti
阅读全文
posted @
2016-03-21 15:33
xuxu_dragon
阅读(393)
推荐(0)