我正在尝试运行
中所述的突变聚类算法https://tinyheero.github.io/2015/08/26/TrAp.html
在运行Windows 10的笔记本电脑上运行java -jar TrApWithDependencies.jar --text figure1.txt
可以正常工作,但在AWS ubuntu上无法运行。我想在我的AWS实例上运行它,因为该算法非常消耗RAM,并且对于50行或更多行的输入数据将耗尽内存。
在Ubuntu Server 18.04 LTS上运行它会给我以下错误。我认为关键问题在于Jama.Matrix
Exception in thread "main" java.lang.reflect.InvocationTargetException
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader.main(JarRsrcLoader.java:58)
Caused by: java.lang.NoClassDefFoundError: Jama/Matrix
at klugerlab.trap.data.Solution.fitClones(Solution.java:703)
at klugerlab.trap.algo.MinimalClonesSolver.processTemplate(MinimalClonesSolver.java:168)
at klugerlab.trap.algo.MinimalClonesSolver.completeSolutions(MinimalClonesSolver.java:204)
at klugerlab.trap.algo.MinimalClonesSolver.runSolver(MinimalClonesSolver.java:250)
at klugerlab.trap.algo.Solver.run(Solver.java:229)
at klugerlab.trap.algo.Job.run(Job.java:97)
at klugerlab.trap.TrApMain.main(TrApMain.java:120)
... 5 more
Caused by: java.lang.ClassNotFoundException: Jama.Matrix
at java.base/java.net.URLClassLoader.findClass(URLClassLoader.java:471)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:588)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
... 12 more
我无权访问源代码,只有.jar文件。