简体   繁体   English

错误:无法加载或查找主类语言

[英]Error: Could not load or find main class language

I am new to Mallet 我是Mallet的新手

I have installed Mallet in my computer. 我已经在计算机上安装了Mallet。 I have set the class path correctly (I verified it by printing the class path) 我已经正确设置了类路径(我通过打印类路径进行了验证)

I want to execute the following command mallet import-smvlight file1 file2.mallet 我要执行以下命令,槌槌import-smvlight file1 file2.mallet

Everytime I try running a command I get an error saying "Error: Could not find or load main class Language" 每次尝试运行命令时,都会出现错误消息:“错误:找不到或加载主类语言”

Can somebody please help me out with the same? 有人可以帮我吗? I am in deep trouble with this. 我对此深感困扰。

I installed mallet recently. 我最近安装了槌。 I haven't used the svmlight thing but simple version and typed the command 我没有使用svmlight的东西,而是简单的版本并输入了命令

bin/mallet --import-data filename output op.mallet

initially this command was giving error Could not load the main class - the reason I figured out was the directory where I installed mallet was not C:/ . 最初,该命令给出了错误信息Could not load the main class -我发现原因是安装槌的目录不是C:/ I had gone through one post saying that mallet needs to be installed in C:/ directory, so check this. 我看过一篇文章,说槌需要安装在C:/目录中,所以检查一下。 Once I did this, this error did not come. 一旦执行此操作,此错误就不会出现。

regards, 问候,

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM