当前位置: 动力学知识库 > 问答 > 编程问答 >

java - Gephi 0.9.1 - Open file NullPointerException error

问题描述:

Why do I get an NullPointerException error when I try to open a file for reading when using gephi 0.9.1?

try

{

File file = new File(getClass().getResource("series.gexf").toURI());

container4 = importController.importFile(file);

container4.getLoader().setEdgeDefault(EdgeDirectionDefault.DIRECTED);

container4.getLoader().setAllowAutoNode(false);

}

catch (Exception ex)

{

ex.printStackTrace();

return;

}

分享给朋友:
您可能感兴趣的文章:
随机阅读: