【发布时间】:2017-03-20 11:08:50
【问题描述】:
正如您在此处看到的,该文件在源文件夹中的项目中明显可用,但是在运行程序时我收到的文件不存在异常。下面我发布了完整的错误:
com.interactivemesh.jfx.importer.ImportException: StlMeshImporter read(File file) : file doesn't exist !
at com.interactivemesh.jfx.importer.stl.StlMeshImporterImpl.read(Unknown Source)
at com.interactivemesh.jfx.importer.stl.StlMeshImporter.read(Unknown Source)
at minimalist.TriangleMeshTest.start(TriangleMeshTest.java:30)
at com.sun.javafx.application.LauncherImpl.lambda$launchApplication1$162(LauncherImpl.java:863)
at com.sun.javafx.application.PlatformImpl.lambda$runAndWait$175(PlatformImpl.java:326)
at com.sun.javafx.application.PlatformImpl.lambda$null$173(PlatformImpl.java:295)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.javafx.application.PlatformImpl.lambda$runLater$174(PlatformImpl.java:294)
at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95)
at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
at com.sun.glass.ui.win.WinApplication.lambda$null$148(WinApplication.java:191)
at java.lang.Thread.run(Unknown Source)
【问题讨论】:
-
注意绝对路径和相对路径的区别。请参阅:stackoverflow.com/questions/23896840/… 和 stackoverflow.com/questions/3204955/…
标签: file exception javafx import stl