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.
如何获取安装 Swing 应用程序的路径?
我想访问应用程序启动路径。这在 Java Swing 中怎么可能?
如果您想知道启动应用程序的目录,那么
String startDir = System.getProperty("user.dir");
会成功的。