tornado711 wrote
... running the hardware simulator in CMD. However, I'm having trouble with that! I've searched for an executable to run. There are some Jar files but attempting to run those will simply return an error. I could use a hand on getting the hardware simulator to run in CMD so that I can see the full error log, as I do not have much experience with terminal related work. Thanks in advance!
The file that you want to run in HardwareSimulator.bat. It's a batch script that sets runs the Java files.
You can run the batch file using its full path
D:\nand2tetris\projects\01> D:\nand2tetris\tools\HardwareSimulator And.tst
In HDL file D:\nand2tetris\projects\01\And.hdl, Line 18, Can't connect part's output pin to gate's input pin: load And.hdl
D:\nand2tetris\projects\01>
It is easier if you add the D:\nand2tetris\tools directory to your PATH variable. Then you just need to type HardwareSimulator
D:\nand2tetris\projects\01> HardwareSimulator Not.tst
End of script - Comparison ended successfully
D:\nand2tetris\projects\01>
Here's description on adding directories to your PATH variable
https://www.java.com/en/download/help/path.xml
Close and restart CMD and confirm that your PATH variable now contains the nand2tetris\tools directory.
D:\nand2tetris\projects\01>path
PATH=d:\nand2tetris\tools;c:\usr\binw;c:\bin;c:\programdata\oracle\java\javapath;c:\python3.4;c:\python2.7;c:\windows\
system32; . . .
D:\nand2tetris\projects\01>
--Mark