Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个带有 JTree 的应用程序将在某个目录中显示该文件。在我将此应用程序导出到 jar 文件后。JTree 无法从目录中读取文件。任何想法?
您是否将文件捆绑到 jar 中?如果您试图让您的应用程序以 .jar 格式运行,则不能使用该 jar 中不存在的资源。