1

使用 maven shade 插件并运行可执行 jar 后,我的应用程序由于 FileNotFoundException 而失败。在应用程序开发过程中,我将文件放在 src/main/resources 中,因此我的路径定义如下“src/main/resources/maps/map.shp”。我应该更改代码中的所有路径吗?我应该怎么做?为什么会这样?

Exception in thread "main" java.io.FileNotFoundException: C:\Users\ilija\Desktop
\MavenizedCP\cp-map\target\src\main\resources\maps\ParcelsCountyRDMFinal5.shp (T
he system cannot find the path specified)
4

0 回答 0