基于JAVA平台下开发arcgis runtime100.14,如何加载本地的slpk三维场景文件;下面是我的代码。但是没有成功,运行后会界面闪退
try {
stage.setTitle("Add An Integrated Mesh Layer Sample");
stage.setWidth(800);
stage.setHeight(700);
// create a JavaFX scene with a stack pane and set it to the stage
StackPane stackPane = new StackPane();
Scene fxScene = new Scene(stackPane);
stage.setScene(fxScene);
stage.show();
// create a scene
ArcGISScene scene = new ArcGISScene();
// create a scene view and set the scene to it
sceneView = new SceneView();
sceneView.setArcGISScene(scene);
// create an integrated mesh layer of Girona, Spain and add it to the scene's operational layers
IntegratedMeshLayer integratedMeshLayer = new IntegratedMeshLayer("file:D:\\1.slpk");
scene.getOperationalLayers().add(integratedMeshLayer);
// set a camera position on the scene view
sceneView.setViewpointCamera(new Camera(lat,lon , 200.0, 350, 65.0, 0));
// add the scene view to the stack pane
stackPane.getChildren().add(sceneView);
} catch (Exception e) {
// on any error, display the stack trace.
e.printStackTrace();
}