1

I'm trying to get MALLET running on a 64-bit Windows 10 Enterprise machine from the native command prompt (cmd.exe). (I tried doing everything with Git Bash, but got stuck even earlier in the process.)

What I've done:

environmental variables

  • Adjusted my path

adjusted path

  • Run ant within the MALLET folder (received BUILD SUCCESSFUL)
  • Run ant jar within the MALLET folder (received BUILD SUCCESSFUL)
  • Typed bin\mallet, which displays the MALLET commands

However, when I tried to create a .mallet file, using bin\mallet import-dir, I get the error message Error: Could not find or load main class cc.mallet.classify.tui.Text2Vectors.

I (and my students) will appreciate any help in figuring out how to get this running.

Brian Croxall
  • 249
  • 2
  • 8

1 Answers1

2

This looks like a classpath issue. I'm not sure how Java on Windows handles classpath now. Try setting %MALLET_HOME% to C:\Mallet-2.0.8, not the bin directory? The classes would be in %MALLET_HOME%\class also, perhaps try adding that to %PATH% or %CLASSPATH%?

David Mimno
  • 1,836
  • 7
  • 7
  • 2
    Changing the `%MALLET_HOME%` environment variable to `C:\mallet-2.0.8` did the trick (after restarting the computer). – Brian Croxall Mar 09 '21 at 17:51