Software Installation Instructions for
COP2800
Ballinger, May 28, 2010
Installation instructions for typical Windows 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).
Java SE Development Kit (JDK) 6.0 -- This must be installed!
(Java 5.0 or later is required for this course, Windows Vista or Windows 7 users need Java 6.0 or later)
Although we may not use Netbeans this semester, I suggest you download and install the JDK 6 with NetBeans bundle. Netbeans is a professional level IDE with many advanced features.
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. If you wish to save space or time you do not need the Netbeans bundle but you must download the JDK.
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.
Have you created a restore point? If not go back to step 3!
Add C:\Program Files\Java\jdk1.6.0\bin to the PATH
environment variable. (note: this will change with new releases)
Right click on My Computer
Choose Properties
Click the Advanced tab (XP) or the Advanced System Settings link (Vista and later)
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
(note your path will be different because of version numbers --for example currently mine is C:\Program Files (x86)\Java\jdk1.6.0_18\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.3 -- 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 Notepadd++. TextPad or some other programmer's text editor.
Check web site for upgrades: Download the Stableversion (4.3.2 as of 5/28/2010) not the
Development version -- you may need to scroll down to find it. Choose the Windows Installer
A simple installer. Accept the defaults or you may choose not to
install the API’s in order to save space.
Open JEdit
From the Plugins menu, choose Plugins Manager
Click the Download Options button at the bottom of the screen
Select JEdit application directory radio button (allows all users access to plugins)
Click the Update mirror list button
In computing, a mirror is an exact copy of a data set. Mirror sites are most commonly used to provide multiple sources of the same information, and are of particular value as a way of providing reliable access to large downloads. See wikipedia for more.
Select a North American mirror
Click Apply then OK
Click the Install Tab
Select the Console plug-in. (note: it will automatically select additional
plugins that it may need)
Click the Install button
Possible errors
Mirror not responding or similar -- fix by repeating above steps and selecting a different mirror.
Access denied to application directory -- fix by installing the plug-ins in the settings directory which will only be available to the current user -- for home users this is probably the best or if you want multiple users to use the plug-ins, eixt JEdit, right-click on the program and then "Run as Administrator"
Close the dialog box
From the Plugins menu, choose Plugins Options
Select Console
Choose Compile & Run from the drop down list
Scroll through the list of modes to find java and select javac as the compiler
Optional
Toolbar Options enable the toolbar and the languages you want to support.
(For on-campus installations please enable toolbar and select only the java and javac buttons)
Click Apply then OK
Close JEdit
NetBeans
This one of the top three full-scale professional IDEs for Java. If you did not install the JDK and NetBeans bundle you can choose to install NetBeans at a later time