Software Installation Instructions for
COP2800
Ballinger, July 2, 2009
Installation instructions for typical Windows XP systems. All software listed below also has versions and installation instructions for Linux and Macintosh systems. The only caveat is that at the time of this writing Java 6 was not yet available for Mac Leopard. This is not a problem since all course code is compatible with Java 5.0 (also called 1.5).
Linux Users: Although Sun offers installation instructions on the download site above, this site offers more step by step instructions: http://www.unix-tutorials.com/go.php?id=4023 .
Check the web site to get the current version -- you do not need JavaFX or Netbeans.
Installation instructions are also available on the java.sun.com website -- check to be sure there are no last minute changes
Create a system restore point
Online instructions often skip this step -- do it! In can prevent headaches in case you make a mistake setting the Environment Variables
Start – Programs – Accessories – System Tools – System
Restore
Select Create a restore point, click next
A simple installer, accept the defaults. It may take a
while for the installer to begin.
Add C:\Program Files\Java\jdk1.6.0\bin to the PATH
environment variable. (note: this will change with new releases)
Be very careful not to erase or overwrite any existing path
Have you created a restore point?
Right click on My Computer
Choose Properties
Click Advanced tab
Click Environment Variables button
In bottom window (labeled System variables) scroll down and select Path
Leaving the Environment Variables window open, use a Windows Explorer window to navigate to C:\Program files\java\jdk1.6.0_0\bin. Copy this path onto the clipboard from the address bar in the Windows Explorer window.
Return to the Environment Variables window
Double check that you have selected “Path” (not ClassPath, etc), click the Edit button.
Be very careful not to erase or overwrite any existing path
At the very end of the existing path (be sure you have used the right arrow key to scroll to the end), type a semi-colon and paste the path (C:\Program files\java\jdk1.6.0\bin) that you copied from windows explorer
It should look like: existing path info ……;C:\Program files\java\jdk1.6.0\bin
Check your work then click OK.
Click OK.
Here is a nice video showing this process, however be sure to create a System Restore Point before beginning.
J2SE 6.0 Documentation
This should be installed; otherwise you will need a live high-speed internet connection whenever you are programming.
Move the docs folder into C:\Program Files\Java\ .
Sometimes unzipping generates extra nesting folders; be sure that the docs
folder you are moving contains an index.html file and five folders. Actually you can place it anywhere you want; however, I find it useful to put it in this location.
Delete the empty folders created by unzipping.
Recommended step
Navigate to C:\Program Files\Java\docs\api
Right-click on index.html and choose send to desktop (create shortcut)
Rename the new shortcut on your desktop to Java APIs
BlueJ -- An IDE we will be start using in the 2nd or 3rd week of the course.
Check web site for upgrades: We want Official Release
version not Development version
A simple installer. Accept the defaults.
The installer will install the executable bluej.exe.
Execute this to run BlueJ.
If you have more than one Java version installed, BlueJ
will let you select your preferred version the first time it is executed.
(Choose the version installed above)
Tools – Preferences – Editor
Check Show line numbers
Tools – Preferences – Miscellaneous
Check Show unit testing tools
Close BlueJ
JEdit4.2 -- Optional
This is a programmer's text editor that is useful for small projects. It is a major step above notepad but is much simpler and does not impose the directory structure of the full-scale IDEs. Recommended if you do not already have TextPad or some other programmer's text editor.
Check web site for upgrades: Download the Stableversion (4.2 as of 7/0209) not the
Development version -- you may need to scroll down to find it. Choose the Windows Installer
A simple installer. Accept the defaults or choose not to
install the API’s in order to save space (8.8 MB).
Open JEdit
From the Plugins menu, choose Plugins Manager
Click the Download Options button
Select JEdit application directory radio button
Click the Update mirror list button
Select a North American mirror
Click Apply then OK
Click the Install Tab
Select the JCompiler and Java Core. (note: it will automatically select two additional
plugins that these two need)
Click the Install button
Close the dialog box
From the Plugins menu, choose Plugins Options
Select Java Core
Choose JCompiler from the drop down list next to "Preferred
service for classpath and sourcepath".
Click Apply then OK
Close JEdit
NetBeans -- Wait to download.
This one of the top three full-scale professional IDEs for Java. Since we won't be using it until the last month of the course -- if at all; wait to download it because a new version may be available by that time.
Check web site for upgrades: We want Stable version not
Development version (6.5.0 as of 12/28/08). Choose the Windows Installer
In the install wizard, respond to the License Agreement, then click Next.
Specify an empty directory within which to install NetBeans IDE. Note: This NetBeans IDE will not disrupt the settings of your other NetBeans installations because the IDE automatically creates a new user directory when launched (${HOME}/.netbeans/5.5.1).
Choose the JDK you want the IDE to use from the list of suitable choices (you should choose the SDK you installed above), then click Next.
Verify that the installation location is correct and that you have adequate space on your system for the installation.