jGRASP for Windows
- Double-click the "jGRASP" icon on the desktop.
- Close any windows containing source code our students have left behind.
- Select "File", "New File", "Java" from the menu.
- Type your code in the new window that appears.
- Repeat as necessary for any other source code files you wish to have.
- Before you compile for the first time, you must choose a filename for
your code. To do so, select "Save As" from the "File" menu of the window
containing your source code (not the application's "File" menu).
- Browse to the "Temporary Student Work" directory by selecting
"Desktop" from the "Look in" drop-down and double-clicking
"Temporary Student Work" from the file list. Enter a file name
in the "File name" field if jGRASP has not filled it in for you.
Finally, click "Save". (The next time you want to save you
can simply select "Save" from the "File" menu).
- Compile by selecting "Compile" from the "Compiler" menu (or by clicking
the green "+" icon). Any compiler errors will be displayed in the bottom pane.
- When you are ready to test, select the window that contains the source
code for your class with the main method, open that window's
"Run" menu, check "Run in MSDOS Window" if it is not already checked,
and then select
"Run" from the window's "Run" menu (or click the red running man icon).
To
tell the system that you are done providing keyboard input
(for programs that have to read to end-of-file), press
F6 at the beginning of a line and then ENTER.
Visual C++ 6.0 for Windows
- Select "Microsoft Visual C++ 6.0" from the "Microsoft Visual Studio 6.0"
submenu of the "Start" menu.
- Select "New..." from the "File" menu.
- Select "Win32 Console Application", type a name in the "Project name" field, click the "..." button next to the "Location" field and browse to
"C:\Documents and Settings\All Users\Desktop\Temporary Student Work",
and click "OK" and then "OK" again.
- Click "Finish" in the wizard that appears and then "OK" in the next
dialog box.
- Click the "File View" tab at the bottom left of the application.
- Right-click your project name in the left pane and select "Add Files to Project...".
- Type the name of your new file in the "File name" field, click "OK", and
then "Yes" when VC++ tells you the file does not exist.
- Expand the tree on the left by clicking the "+" next to your project and
then "Source Files"
- Double-click your new file and click "Yes" when VC++ tells you the
file does not exist.
- Repeat as necessary if you will be using more than one source code
files. Right-click "Header Files" to add header files.
- Type your code.
- Select "Build" from the "Build" menu to compile your code. Compiler errors will bedisplayed in the pane at the bottom.
- Select "Execute" from the "Build" menu when you are ready to test. To
tell the system that you are done providing keyboard input
(for programs that have to read to end-of-file), press
F6 at the beginning of a line and then ENTER.
- If, after closing VC++, you decide to come back and work on the same
problem, select "Open Workspace" from the "File" menu, browse to
"C:\Documents and Settings\All Users\Desktop\Temporary Student Files",
select your project directory and then double-click the ".dsw" file.
jar for Windows
These steps are necessary only if your solution is built from more than
one file.
- Select "Run" from the "Start" menu.
- Enter "cmd" in the "Open" field and click "OK".
- Type "cd c:\Documents and Settings\All Users\Desktop\Temporary Student Files" at the "C:\" prompt. (You may use the TAB key to have Windows attempt to
complete the directory names for you. For example, typing
"cd c:DocTAB\AllTAB\DeskTAB\TempTAB" should get the whole directory name spelled out.)
- (VC++ only) Type "cd PROJECT-NAME" at the "C:\" prompt, replacing "PROJECT-NAME" with the name of the project you gave to VC++.
- Type "jar cf problemX.jar FILENAMES" at the "C:\" prompt, replacing
"X" with the problem number and "FILENAMES" with a list of the source
code files and header files needed to compile your solution.
I/O Redirection in Windows
You may find it helpful to save your test inputs in a file and
use I/O redirection to avoid typing them in each time you test
your solutions.
- Use Notepad to create an input file and save it the
C:\Documents and Settings\All Users\Desktop\Temporary Student Files
directory (or your project subdirectory for VC++).
- Follow the steps for jar except for the last step.
- Type java ProblemX < name-of-your-input-file.txt at the command
prompt (or Project < name-of-your-input-file.txt for VC++).
- To save output in a file for printing, add > name-of-your-output-file.txt to the above command.
Submitting Solutions from Windows
- Double-click the "Internet Explorer" icon on the desktop.
- Type "http://gunpowder.cs.loyola.edu:4444/contest2004/login.jsp" in the
"Address" field and click "Go".
- Type your 8-digit team ID in the "Team ID Number" field and click
"Login".
- Select the problem you are submitting a solution for from the
"Problem" drop-down. Click the "Browse..." button and then the "Desktop" icon on the left of the "Choose file" dialog. Double-click "Temporary Student Work" and then the file you want to submit (VC++ only: double-click your project directory after "Temporary Student Work").
- Click the "Submit" button.
Remote Access to Linux Machines from Windows
- Run "X-Win32" from the "X-Win32 5.4" submenu of the "Start" menu.
- Click "Cancel" if a dialog box appears after the splash screen. You
should now have a blue "X" icon in the system tray in the lower right corner
of the screen.
- Open the "Novell-delivered Applications" window from the taskbar at the
bottom of the screen.
- Double-click "Putty (SSH)" and wait for Putty to start up.
- Click "Tunnels" in the "Category" tree on the left and check the
"Enable X11 forwarding" checkbox.
- Click "Session" in the "Category" tree. Click the "SSH" radio button
and type "lucy.cs.loyola.edu" in the "Host Name" field.
Click "Open".
- Click "Yes" in the "Security Alert" dialog.
- Enter the Linux username you were given at the "login as:" prompt
and then the Linux password you were given at the "password" prompt.
- If you start an X application and the window does not appear,
look on the taskbar to see if it is there and click it to maximize it.
- Available tools include: g++, javac, java, gdb, jdb, emacs, vi, pico,
and mozilla. g++ is version 2.95; g++-3.0 is version 3.0.4.
- Use Control-D to signal end-of-file when typing input from
the keyboard. Stop errant programs with Control-C.