开发者

path of installation

I have a problem. Im doing an installer for my program, but how I tell to class which is the path of installation

new FileInputStream("pathInstallation/DESTest.txt")

开发者_Python百科Greetings


how I stick the path on the classpath?

Use Class.getResource or Class.getResourceAsStream methods.

The resource is any file which is located next to your compiled .class file. Pass the name of the file (without the path) to one of these methods and read its content.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜