CIS133 Frequently Asked Questions


I've installed the Java program, why I can't find it in the Start menu?
I've installed the Java program, but when I double-click on it, it doesn't run.
How do I compile my Java code?
How do I run my Java program?
Why can't I print to the classroom printer?
My homework has DNC or DNR written on it, but no grade. What does that mean?

I've installed the Java program, why I can't find it in the Start menu?
The Java program is NOT a Windows program, it is a DOS program. Therefore, you will not see it under the Start menu. You need to go t the website and follow the directions for creating the JavaPrompt.

Once that is done, you cannot run it like a Windows program. You must run it as indicated in the answers to the next two questions.

I've installed the Java program, but when I double-click on it, it doesn't run.
See answer to question #1

How do I compile my Java code?
To compile your Java code:
  1. Double-click in the javaPrompt icon on your desktop to open a JavaPrompt DOS Window, if you haven't already done so.
  2. Change to the folder that your .java file is in. For example, if it is on your floppy disk, type a: and press the ENTER key. If it's in your My Documents folder, type cd\"My Documents" (with the quotes) and press the ENTER key.
  3. Type javac, followed by a space, followed by the fullname of your .java file, including the .java, and press the ENTER key
  4. If your Java prompt appears without any messages, then the code was successfully compiled and is ready to run. You will see a .class file in your folder with the same name as your .java file

How do I run my Java program?
To run your Java program:
  1. Double-click in the javaPrompt icon on your desktop to open a JavaPrompt DOS Window, if you haven't already done so.
  2. Change to the folder that your .class file is in. For example, if it is on your floppy disk, type a: and press the ENTER key. If it's in your My Documents folder, type cd\"My Documents" (with the quotes) and press the ENTER key.
  3. Type java, followed by a space, followed by the name of your .class file.
  4. If your program requires any command line arguments, type them after the name of your .class file, separated by spaces.
  5. Press the ENTER key.
  6. If there are no logical or run-time errors, your program will run.

Why can't I print to the classroom printer?
Sometimes, the computer "forgets" where the network printer is.

To reconnect:
  1. Click on "Start"
  2. Click on "Novell Network"
  3. Click on "Who Am I"
  4. A black DOS Window will open
  5. Check for a "User ID" line
  6. Press any key on the keyboard to close the window
If the "User ID" line had a username in it, then you have been successfully reconnected.

My homework has DNC or DNR written on it, but no grade. What does that mean?
DNC stands for "Does Not Compile."
DNR stands for "Does Not Run."


Refer to the sheet attached to the back of your code for the reason.