exe文件路径

Path of file in a exe

我有一个包含文件和主程序的 .exe。我的问题是如何使用 Java.

中的 main 调用或引用这些文件
File file = new File(".\File");
//This take the file which are in the same folder that exe.

但我想获取同一个.exe 中的文件。我不知道我是否解释得很好。希望有人能帮助我。

我主要复制一个目录下的文件,我要这个文件,放到.exe里,不要放在extern文件夹里。

谢谢。

评论:Understanding Directories and accessing your files