Install Java Compiler: Go to http://java.sun.com/, under "Popular Downloads:" click "Java SE". In the box labeled "JDK 6u1" click the "Download" button. On the "Java(TM) SE Development Kit 6 Update 1" page, click "Accept License Agreement". In the box labeled "Windows Platform - Java(TM) SE Development Kit 6 Update 1" click "Windows Offline Installation, Multi-language" to download and run "jdk-6u1-windows-i586-p.exe", accepting all defaults. Delete "jdk-6u1-windows-i586-p.exe" when you are finished with the installation.
Prepare Java Compiler For Command-line Compiling: Open Windows Explorer (under Start->All Programs->Accessories) and navigate to "C:\Program Files\Java\jdk1.6.0_01\bin". You should see these files: java.exe, javac.exe, jar.exe, and others. In the "Tools" menu choose "Folder Options...", click the "View" tab, and deselect "Hide extensions for known file types". Close Windows Explorer.
Open Notepad (under Start->All Programs->Accessories) and enter 3 lines of text:
@echo off
path=C:\Program Files\Java\jdk1.6.0_01\bin;%path%
set classpath=
Save the file in your "c:\windows" folder as "java6.bat".
Use quote marks around the filename in the "Filename:" box when saving the file.
Get the JNotePad2 Editor: Go to the class website and download the "JNotePad 2 Code Editor" as JNotePad.jar onto your desktop or quick launch bar. No futher installation is required -- just double-click the file's icon to run JNotePad.
Get the Hesky Pad Editor (for use with an SSH client): Go to the class website and download the Pad Editor's installation file. Run it to install Pad, and delete it after installation is completed. The first time you run Pad, deselect the checkmark that causes user tips to show every time Pad starts. In the "View" menu, deselect "Clipboard" -- all you need are "Toolbar" and "Status Bar". In the "Options" menu select "Options". Click the "Editor" icon, and select "Display tabulators as spaces, replacing tabs with 2 spaces. Click the "Associations" icon, and add JAVA as an association. Now, when you double-click a .java file, it will load in Pad. So to load it in JNotePad instead, open JNotePad first, and drag/drop the .java file into JNotePad's window. Click the "Ok" button to close the popup window, and close Pad.
Compile and Run: Open Command Prompt (under Start->All Programs->Accessories) and navigate to the folder that contains your "compsci61b" folder, where your files for this class will be stored. Enter the command "java6" to prepare the command-line compiler. (Use the command "cd.." to navigate to the root of a drive, and "cd xxx", e.g., to navigate into a folder named "xxx". Continue to use "cd {subfoldername}" to drill-down through the folder structure. To change to another drive, use the command, e.g., "d:".) Now you can enter compile and run commands.
To avoid retyping any commands, use the up and down arrows to cycle through previously-entered commands, or press the F7 key for a menu of previously-entered commands.
Install SSH Secure Shell: Go to the class website, and click "SSH Secure Shell". Then download and install the "SSH Secure Shell 2.4 for Windows" (SSHSecureShellClient-3.2.9b283.exe), accepting all defaults. Delete "SSHSecureShellClient-3.2.9b283.exe" after installation is completed.
Firewall Issues: SSH Secure Shell uses port 22. If your firewall is blocking port 22, make an exception for it for TCP/IP access. Or just turn off your outgoing firewall.
Setup a Profile: Start SSH Secure Shell with the "SSH Secure Shell Client" icon. Click the "Profiles" icon, and select "Add profile...", and type a label to identifly your connection -- e.g., "cs61b". Click the "Profiles" icon, and select "Edit profile...", and choose your new connection. For "Host name", use "solar.eecs.berkeley.edu" (or whatever URL was provided to you by the TA in lab). For "User name", use "cs61b", and click the "Ok" button to save the profile.
Connect to the UNIX Server: Click the "Profiles" icon, and select your profile. At the password prompt, enter the password given to you for your student account. You should see a window and a prompt. If you can enter the command "javac" and see some output about possible options, you are doing it right!
Share files with the UNIX Server: With the "SSH Secure Shell" running, use the "Window" menu's "New File Transfer" option for a window that will let you drag and drop files between the UNIX server and your local computer.
Editing and Compiling: It's easier to edit files directly on the server, rather than to edit them locally and transfer them before every compile statement. Right-click over any remote file and choose "open" from the popup menu to open the file for editing. This downloads a copy of the file to your temporary file folder -- you actually edit this copy, and when you save, the saved copy gets copied back to the server over your old copy.
Enter your compile and run commands on the UNIX comand line in the SSH window. To avoid retyping any commands, use the up and down arrows to cycle through previously-entered commands.
Logging Off: Don't just close the "SSH Secure Shell" window -- enter the command "exit" first, so that the server does not keep your session open. This will save server resources for others to share after you are done.
Verify Java Compiler Installation: OS X should already have Java SE installed. Start the "Terminal" application -- use Spotlight to find it, if you have to. Enter the cammand "javac" to verify that the compiler is available, and the command "java -version" to see the version number. If the version is 1.5 or higher, it's Java SE.
Get the JNotePad2 Editor: Go to the class website and download the "JNotePad 2 Code Editor" as JNotePad.jar onto your desktop or quick launch bar. No futher installation is required -- just double-click the file's icon to run JNotePad.
Get the TextEdit Editor (for use with an SSH client): Start the "TextEdit" application -- use Spotlight to find it, if you have to. In the "Format" menu, make sure that the "Make Rich Text" option is showing -- if it is the "Make Plain Text" option, select it. Unfortunately, TextEdit wraps text -- so use shorter lines and wider windows when editing.
Compile and Run: Enter compile and run commands in the Terminal window. To avoid retyping any commands, use the up and down arrows to cycle through previously-entered commands.
Install SSH Secure Shell: Go to the class website, and click "SSH Secure Shell". Then download and do a full install of "XonX" (XFree66_4.3.0.dmg) from SourceForge.net, accepting all defaults. Delete "XFree66_4.3.0.dmg" after installation is completed.
Setup a Profile: Start SSH Secure Shell. Click the "Profiles" icon, and select "Add profile...", and type a label to identifly your connection -- e.g., "cs61b". Click the "Profiles" icon, and select "Edit profile...", and choose your new connection. For "Host name", use "solar.eecs.berkeley.edu" (or whatever URL was provided to you by the TA in lab). For "User name", use "cs61b", and click the "Ok" button to save the profile.
Connect to the UNIX Server: Click the "Profiles" icon, and select your profile. At the password prompt, enter the password given to you for your student account. You should see a window and a prompt. If you can enter the command "javac" and see some output about possible options, you are doing it right!
Share files with the UNIX Server: With the "SSH Secure Shell" running, use the "Window" menu's "New File Transfer" option for a window that will let you drag and drop files between the UNIX server and your local computer.
Editing and Compiling: It's easier to edit files directly on the server, rather than to edit them locally and transfer them before every compile statement. Right-click over any remote file and choose "open" from the popup menu to open the file for editing. This downloads a copy of the file to your temporary file folder -- you actually edit this copy, and when you save, the saved copy gets copied back to the server over your old copy.
Enter your compile and run commands on the UNIX comand line in the SSH window. To avoid retyping any commands, use the up and down arrows to cycle through previously-entered commands.
Logging Off: Don't just close the "SSH Secure Shell" window -- enter the command "exit" first, so that the server does not keep your session open. This will save server resources for others to share after you are done.
Verify Java Compiler Installation: Some installations of UNIX and Linux OSs already have Java SE installed. Enter the command "javac" to verify that the compiler is available, and the command "java -version" to see the version number. If the version is 1.5 or higher, it's Java SE.
Get the JNotePad2 Editor (X-Windows only): If you have a GUI interface, you can use JNotePad. Go to the class website and download the "JNotePad 2 Code Editor" as JNotePad.jar onto your desktop or quick launch bar. No futher installation is required -- just double-click the file's icon to run JNotePad.
Compile and Run: Enter compile and run commands. To avoid retyping any commands, most OSs let you use the up and down arrows to cycle through previously-entered commands.
[ Home | Contact Prof. Burns ]