linux - 在命令行中使用 weka

标签 linux ubuntu classpath weka

我正在尝试在命令行中使用 weka,但我什至无法开始。我有这个错误;

$ java weka.core.Instances data/soybean.arff

Exception in thread "main" java.lang.NoClassDefFoundError: weka/core/Instances
Caused by: java.lang.ClassNotFoundException: weka.core.Instances
    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:321)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
Could not find the main class: weka.core.Instances. Program will exit.

当我用谷歌搜索时,我认为这是关于类路径的东西,但我什至不熟悉这些东西。我在 windows 机器上使用 weka,我需要习惯 linux 系统(我是 linux 上的新手)。所以,请详细说明。

谢谢

最佳答案

它不是您应该使用的标准终端。相反,当您在“Weka GUI Chooser”中时,您应该选择底部选项“Simple CLI”。这将打开相应的界面。

The bottom option is the one you want.

关于linux - 在命令行中使用 weka,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19752518/

相关文章:

linux - rsync - 复制同名文件

Android Studio 打开JDK 报错Ubuntu 16.04

java - 部署后,Spring 不再找到 .Jar 之外的 JDBC.Properties

java - 在兄弟目录中加载外部属性文件

c - 使用Netfilter在两个网络设备之间转发数据包

android - 无法在 Android Studio 中运行虚拟机

linux - Is "who' s your daddy?"Linux 中的命令?

ubuntu - net/http : request canceled while waiting for connection (Client. 等待 header 时超时)

在 Ubuntu 16.10 上使用 "Error: No available targets are compatible with this triple"将 C 程序编译为 WebAssembly 程序

java - jdbc 不在类路径错误