0

我正在尝试在 Linux 机器上运行 NetLogo(版本 6.2.2)的无头实例。NetLogo 实例由一个由 PHP 脚本执行的 jar 文件创建。这在我的 Windows 机器上运行良好,但当我尝试在 linux 上执行相同操作时会引发此错误。

ERROR beemodel.Main:131 - org.picocontainer.PicoCompositionException: java.nio.file.AccessDeniedException: /usr/share/httpd/.netlogo
ERROR beemodel.Main:133 - org.picocontainer.injectors.ConstructorInjector$1.run(ConstructorInjector.java:353)
ERROR beemodel.Main:133 - org.picocontainer.injectors.AbstractInjector$ThreadLocalCyclicDependencyGuard.observe(AbstractInjector.java:270)
ERROR beemodel.Main:133 -org.picocontainer.injectors.ConstructorInjector.getComponentInstance(ConstructorInjector.java:364)
ERROR beemodel.Main:133 - org.picocontainer.injectors.AbstractInjectionFactory$LifecycleAdapter.getComponentInstance(AbstractInjectionFactory.java:56)
ERROR beemodel.Main:133 - org.picocontainer.behaviors.AbstractBehavior.getComponentInstance(AbstractBehavior.java:64)
ERROR beemodel.Main:133 - org.picocontainer.behaviors.Stored.getComponentInstance(Stored.java:91)
ERROR beemodel.Main:133 - org.picocontainer.DefaultPicoContainer.getInstance(DefaultPicoContainer.java:699)
ERROR beemodel.Main:133 - org.picocontainer.DefaultPicoContainer.getComponent(DefaultPicoContainer.java:647)
ERROR beemodel.Main:133 - org.picocontainer.DefaultPicoContainer.getComponent(DefaultPicoContainer.java:678)
ERROR beemodel.Main:133 - org.nlogo.headless.HeadlessWorkspace$.newInstance(HeadlessWorkspace.scala:51)
ERROR beemodel.Main:133 - org.nlogo.headless.HeadlessWorkspace$.newInstance(HeadlessWorkspace.scala:34)
ERROR beemodel.Main:133 - org.nlogo.headless.HeadlessWorkspace$.newInstance(HeadlessWorkspace.scala:32)
ERROR beemodel.Main:133 - org.nlogo.headless.HeadlessWorkspace.newInstance(HeadlessWorkspace.scala)
ERROR beemodel.Main:133 - beemodel.Simulation.runHeadless(Simulation.java:33)
ERROR beemodel.Main:133 - beemodel.Main.main(Main.java:123)

我的文件系统中没有 /usr/share/httpd/.netlogo 这样的文件,我不确定程序为什么要在那里寻找一个。我已经为 jar 文件和 /usr/share/httpd/ 目录授予了尽可能高的权限,我想知道这是否真的是权限问题或者我缺少的其他东西。任何帮助将不胜感激。如果需要,我可以提供更多信息。

4

0 回答 0