Tag: ubuntu

增加JVM可用的堆空间:OutOfMemoryError:请求的数组大小超过VM限制Ubuntu 64Bit Neo4j 2.0

我的规格: -Ubuntu 64bit -Neo4j 2.0 -32 GB的Ram -AMD FX-8350八核处理器 问题: 我正在使用以下查询向我的Neo4j服务器发出请求: MATCH (being:my_label_2) RETURN being 并给我这个错误: OutOfMemoryError Requested array size exceeds VM limit StackTrace: java.lang.StringCoding$StringEncoder.encode(StringCoding.java:300) java.lang.StringCoding.encode(StringCoding.java:344) java.lang.String.getBytes(String.java:916) org.neo4j.server.rest.repr.OutputFormat.toBytes(OutputFormat.java:194) org.neo4j.server.rest.repr.OutputFormat.formatRepresentation(OutputFormat.java:147) org.neo4j.server.rest.repr.OutputFormat.response(OutputFormat.java:130) org.neo4j.server.rest.repr.OutputFormat.ok(OutputFormat.java:67) org.neo4j.server.rest.web.CypherService.cypher(CypherService.java:101) java.lang.reflect.Method.invoke(Method.java:606) org.neo4j.server.rest.transactional.TransactionalRequestDispatcher.dispatch(TransactionalRequestDispatcher.java:139) org.neo4j.server.rest.security.SecurityFilter.doFilter(SecurityFilter.java:112) 这适用于“my_label_1”,返回大约30k的结果 我认为是问题所在: 我没有足够的内存分配给我的JVM 尝试修复/我在网上找到的东西: 我阅读了手册所说的内容 Ubuntu论坛说要做什么 所以我试着去我的neo4文件夹(像往常一样使用cd)并以这种方式运行它: sudo bin/neo4j start -Xmx4096M 但是那没用。 当Neo4j启动时它确实警告我,我可能没有足够的空间: WARNING: Max 1024 open files allowed, minimum […]

如何在scala的构建工具(sbt)中修复“InvalidAlgorithmParameterException:trustAnchors参数必须为非空”?

在新的Ubuntu 17.10安装中,我根据文档安装了scala构建工具(sbt) : echo “deb https://dl.bintray.com/sbt/debian /” | sudo tee -a /etc/apt/sources.list.d/sbt.list sudo apt-key adv –keyserver hkp://keyserver.ubuntu.com:80 –recv 2EE0EA64E40A89B84B2DF73499E82A75642AC823 sudo apt-get update sudo apt-get install sbt 然而,当运行sbt时,要么只是为了获得它的版本,要么建立一个项目,我得到这个错误: Getting org.scala-sbt sbt 1.1.0 (this may take some time)… :: problems summary :: :::: WARNINGS module not found: org.scala-sbt#sbt;1.1.0 ==== local: tried /home/philipp/.ivy2/local/org.scala-sbt/sbt/1.1.0/ivys/ivy.xml — artifact org.scala-sbt#sbt;1.1.0!sbt.jar: /home/philipp/.ivy2/local/org.scala-sbt/sbt/1.1.0/jars/sbt.jar ==== […]

错误:缺少JavaFX运行时组件,并且需要在eclipse中运行此应用程序

我是JavaFX的初学者,并尝试在Ubuntu上运行Eclipse中的JavaFX。 我在我的电脑上安装了openjfx,但它给出了错误 缺少JavaFX运行时组件,并且需要运行此应用程序。 我搜索了很多但没有得到任何解决方案。

无法从w3c加载java类

我正在尝试使用ELKI( http://elki.dbs.ifi.lmu.de/ )进行OPTICS聚类。 我尝试用提供的gui运行集群,但后来我得到了这个exception: Error in starting visualizer window. java.lang.NoClassDefFoundError: org/w3c/dom/svg/SVGSVGElement at de.lmu.ifi.dbs.elki.visualization.gui.ResultWindow.(Unknown Source) at de.lmu.ifi.dbs.elki.visualization.gui.ResultVisualizer$1.run(Unknown Source) at […] Caused by: java.lang.ClassNotFoundException: org.w3c.dom.svg.SVGSVGElement at java.net.URLClassLoader$1.run(URLClassLoader.java:217) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:205) at java.lang.ClassLoader.loadClass(ClassLoader.java:323) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294) at java.lang.ClassLoader.loadClass(ClassLoader.java:268) at de.lmu.ifi.dbs.elki.visualization.gui.ResultWindow.(Unknown Source) at de.lmu.ifi.dbs.elki.visualization.gui.ResultVisualizer$1.run(Unknown Source) at […] 我将w3c.jar解压缩到/usr/share/java并进入程序的路径。 但它仍然给我同样的错误。 我有一个很旧的Ubuntu(10.04)与OpenJDK版本IcedTea6 1.13.3。 但我想那不是造成麻烦的吧? 该怎么办?

线程“main”中的exceptionjava.lang.IllegalStateException:在Ubuntu上运行Selenium Test时,驱动程序可执行文件不存在

我在eclipse中尝试过这段代码: import org.openqa.selenium.WebDriver; import org.openqa.selenium.firefox.FirefoxDriver; public class auto { public static void main(String[] args) { System.setProperty(“webdriver.gecko.driver”, “/root/Desktop/jarselenium/geckodriver.exe”); WebDriver driver = new FirefoxDriver(); driver.manage().window().maximize(); driver.get(“https://www.easybooking.lk/login”); //driver.manage().timeouts().implicitlyWait(25, TimeUnit.SECONDS); } } 执行时我得到了这个错误: Exception in thread “main” java.lang.IllegalStateException: The driver executable does not exist: /root/Desktop/jarselenium/geckodriver.exe 如何在ubuntu中设置geckodriver位置?