阅读背景:

关于在java应用程序中引用外部文件

来源:互联网 

I am writing a java application, in which I am automatically importing external csv files in background to do the computation. But the problem is that I am using "absolute" file path in my java program, the generated jar file will not work in another computer. Is there anyway in java to use a kind of "working directory path" so that I can still run the jar file in another computer as long as I put the csv files I'd like to import in the same folder with the jar file?I am writing a java application, in which I am




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: