Mallet installation - Command Prompt error, environmental variable

363 Views Asked by At

I am using a windows computer to install Mallet. I've found some difficulties when using the command prompt. I followed all the guidelines of installation but everytime I put the bin\mallet on cmd (Figure 2) following cd C:\mallet it states that mallet requires an environment variable MALLET_HOME. As you can see on Figure 1 I did that already but still not working. What am I doing wrong? Thanks in advance.

Figure 1 enter image description here

Figure 2 Figure 2

2

There are 2 best solutions below

0
K J On

Your command usage is odd but working since you get the correct reply !

This is one of those frustrating cases where installation instructions fail to consider first time users of their software.

enter image description here

You start a command and it does not work, so you follow the instructions diligently and add an environment setting then go back to where it did not work then it is correctly running because you see an error message.

MALLET requires an environment variable MALLET_HOME.

but you already did that so now what?

You need to restart the cmd processor Usually thats easy close the one your in and start another. However in some odd cases, I have found that not to be enough, and a log out/log in has resolved some installer using additional setx manipulation.

In short If you are confident you installed into C:\mallet Start a NEW cmd shell

0
Louise On

Odd computer that I have. Your answers were applicable and may be useful for other people experiencing the same problem, thanks for your help. In my case, I had to run as administrator on the cmd and it worked!!! Feel abit silly now ahahah!