(Booksite) (COS 126) (CS Dept.) (Princeton)


Before you start

Before you start, you will need a JVM (Java Virtual Machine) which conforms to the Java 1.4 specification. If you followed the Hello, World instructions for COS 126, you alreay have it. Otherwise, go to java.com and click the Get It Now button.

Installing Visual X-TOY for Java 1.4 (~1.6 MB)

There two possible downloads. Launch the Web Start Application by clicking the first icon (and accept the security certificate). To download the JAR Application, right-click the icon and save it to your desktop. Then, launch it by double-clicking the desktop icon (or typing "java -jar toy_1.4.jar" at the command line).
Web Start Application
JAR Application

Q & A

Question: I'm running Windows but the Web Start application doesn't launch the X-TOY simulator. What should I do?
Answer: Windows patches have been known to break Java as a side effect. If this happens to you, go to java.com and click the Get It Now button.

Question: I think I've found a bug in Visual X-TOY what do I do?
Answer: Please make sure that none of the other questions in this section addresses the issue, then email btsang@princeton.edu.

Question: Sometimes 'Reset' clears stdin, and sometimes it doesn't. How does Visual X-TOY decide when to clear stdin and when not to?
Answer: Editing stdin in 'Edit Mode' changes the state to which stdin resets, whereas editing stdin in any other mode only changes the current state of stdin.

Question: When I open up files, sometimes Visual X-TOY opens a new window, and sometimes it reuses the current window. How does Visual X-TOY decide when to reuse the current window?
Answer: Whenever you open several files at once, Visual X-TOY always opens new windows. However, when opening a single file, Visual X-TOY will reuse the current window if and only if the file has not been changed since it was last saved.

Links

Source Code
Source Code Documentation (No Frames)