To run the program from cmd the, you need to be in the right directory. From there the following line is needed: java -jar SAT.jar -Sn file.txt In this line n = the heuristic and file.txt is the file with the problem thats needs solving. The program will make a txt file with the answerset in SAT/answerset.txt