Skip to content
themaddoctor1 edited this page Nov 16, 2014 · 1 revision

In order to use the Quantum VM, one can choose to either run it as a .JAR file, or in an IDE such as Netbeans or Eclipse.

###Execute in an IDE

To run the program in an IDE, one must modify the value of debugLocation in the main method of the ScriptLauncher class. It was placed on the first line of the method in order to make it easier to find. To change the default name of the file, one can change value of the name variable in the try-catch statement used to see if the user inputed a filename.

###Execute as a .JAR File

Because the program requires a text output to run, the QuantumComputerSimulation.jar file must be executed via the Command Prompt in Windows (or the equivalent on other Operating Systems that use Java). For command prompt, one way I know of that will work is to use the following to go to the directory of the file:

cd <directory>

and then execute the program by typing in:

java -jar QuantumComputerSimulation.jar

The user can also enter in parameters to change the filename and directory to read the script from (the first parameter is the filename, and the second is the directory).

Clone this wiki locally