Java Setup for HCC Classrom, Open Lab (Windows XP version) [ For COP-2800 and COP-2805, 2005/Fall ] Note: Except if otherwise stated, all items that can be found under "C:\Documents and Settings\..." should be placed under the "All Users" folder. (This includes favorites, Sent To menu, Start menu, and Application Data.) Environment variable settings should go under "System" and not "User". 1. Prep computer: Remove all old JDK/JREs Remove old PATH environment variable entries for java or jdk Remove old CLASSPATH environment variable (if any) Remove old Java favorites Remove old Java Start Menu folder Install WinZip Add "Notepad" short-cut to "Send To" folder Create "C:\Temp" empty folder Create "C:\jdk" empty folder Create Start button Menu items: Programs\Java Programs\Java\J2EE Programs\Java\J2ME Create Favorites: Wayne Pollock Homepage (http://www.hccfl.edu/pollock/) Google (http://www.google.com/) Java folder Java\J2ME subfolder (Optional for Java: Install latest versions of all PuTTY tools, especially PuTTY, psftp, and pscp; and the WinSCP GUI wrapper for PuTTY tools.) 2. Visit http://java.sun.com/ Add favorite to Java folder. Click on "Popular Downloads: J2SE": Download the latest JRE (not JDK!), v5.0 Update 4 at this time. Download the latest J2SE documentation, V5.0 at this time. Go back to java.sun.com. Click on "Popular Downloads: J2EE 1.4 SDK. Download the latest "All-in-one" bundle Download the latest "J2EE 1.4 Tutorial" (Other tools are optional and not installed at HCC at this time.) 3. Install the JRE: Use custom install and install all components of everything, to the default location. Add a short-cut to Start\Programs\Java called "Java WebStart" to the C:\Program Files\Java\...\bin\javaws.exe 4. Go to the Java control panel: Under Updates tab, uncheck the "automatically check for updates" box. Under Advanced tab, check all 3 boxes under "Debugging" 5. Unzip the J2EE Tutorial to C:\jdk. Add Favorite to Java folder for C:\jdk\j2eetutorial\???\index.html (not sure of path) as "J2EE 1.4 Tutorial" 6. Unsip the J2SE documentation to C:\jdk. Add favorite for C:\jdk\docs\index.html to Java folder ("Java 5 Docs") Add favorite for C:\jdk\docs\api\index.html to Java folder ("Java 5 API JavaDocs") 7. Install the J2EE SDK: Install dir: C:\jdk\J2EE Set "Admin User Name" to "Admin" Set Admin Password to "cop 2805" (Note! Use all lowercase, 8 characters including a space.) Check the box "Don't prompt for Admin User" Make sure these port numbers are chosen: Admin port: 4848 HTTP port: 8080 HTTPS port: 8181 On the next install screen there are a bunch of checkboxes. Uncheck them all if any are checked: Register Application Server Create Samples Server ... Move the added Start menu Programs\Sun\Application Server\* items to the Java Start menu folder 8. Start the PointBase (database) server, verify it starts without reporting errors. It should report it is using port 9092. Start the Application server, verify it starts without errors. Open a browser window to http://localhost:8080/ and add to Favorites\Java with the name "Java Application Server - http-localhost-8080". Open a browser window to https://localhost:8181/ and add to Favorites\Java with the name "Secure Java Application Server - https-localhost-8181". This will cause the browser to prompt for a certificate: Click the "View Certificate" button. Install the Certificate using defaults. Back at the certificate prompt screen, accept the certificate. Open the browser window to http://localhost:4848/ and add to Favorites\Java with the name "Java Application Server Console". (Make sure to add only this path, and not the re-directed path!) Start-->Programs-->Java-->Stop Application Server. This should close the DOS window, if not type in it to close it. Start-->Programs-->Java-->Stop PointBase Server. This should close any remaining DOS windows, if not type in them to close them. 9. Add to Favorites\Java folder: C:\jdk\J2EE\...\quickStartGuide\index.html as "J2EE Quick Start Guide" C:\jdk\J2EE\docs\api\index.html as "J2EE 1.4 API JavaDocs" C:\jdk\J2EE\docs\list.html (not sure of path) as "J2EE 1.4 Sample Applications" 10. Update the System environment variable for PATH to include: C:\jdk\J2EE\jdk\bin;c:\jdk\J2EE\bin 11. Add "cmd" short-cut to Java start menu folder. Configure this short-cut to start in "C:\Temp" directory. Increate the default window size from 24 to 36 lines. Copy this short-cut to the QuickLaunch bar. Test the shortcut: launch it and type "java -version". 12. Visit http://www.junit.org/ and add to Favorites\Java folder. Download the latest version of JUnit (3.8.1 at this time). Unzip the JUnit archive to C:\jdk. [ *Red: don't do this part, but we probably should next year: * * Rename C:\jdk\junit3.8.1 to C:\jdk\junit * Then the directions below need the "3.8.1" dropped from the paths. ] Create (or add to the front of) a SYSTEM Environment variable named "CLASSPATH" this path: ".;C:\jdk\junit3.8.1\junit.jar" Add to Favorites\Java folder "C:\jdk\junit3.8.1\README.html#Getting" with the name "JUnit Docs". Add to Favorites\Java folder "C:\jdk\junit3.8.1\javadoc\index.html" with the name "JUnit API JavaDocs". Test JUnit: Launch "cmd" window: C:\Temp>cd \jdk\junit3.8.1 C:\jdk\junit3.8.1>java junit.swingui.TestRunner junit.samples.AllTests (This should display a GUI with about 119 test run with no errors. Close window. 13. Visit http://www.eclipse.org/ and add to Favorites\Java folder. Download latest Windows eclipse (currently 3.1). Unzip this to C:\Program Files Add short-cut to C:\Program Files\eclipse\eclipse.exe to Start button Java folder with name "Eclipse". From the www.eclipse.org page, click "community and then "Open Source Plug-ins". Locate and download the latest version of the following plug-ins, if compatible with the version of eclipse just installed: AnyEdit: http://andrei.gmxhome.de/anyedit/de.loskutov.anyedit.AnyEditTools_1.3.4.jar Move the AnyEditTools_1.3.4.jar file to C:\Program Files\eclipse\plugins CheckClipse: http://sourceforge.net/projects/checkclipse (scroll down and click download to get de.mvmsoft.checkclipse_1.6.0.zip) Unzip the file to ...\eclipse\plugins. XMLBuddy: http://xmlbuddy.com/ (click on download, accept license, download the file xmlbuddy_2.0.9.zip Unzip to ...\eclipse\plugins. (Easy Struts is not available for Eclipse v3 yet so don't download until it is.) 14. Configure Eclipse preferences: Launch eclipse. Select "C:\Temp\EclipseWS" as the default workspace folder, and check the box that says to always use it. Click Window-->Open Perspective... to show Java persepctive screen. Click Window-->Preferences... Appearence-->label decorations: Check CVS box Install/Update-->Automatic Updates...: uncheck Save and close preferences. Right-click on toolbar-->customize Under commands tab: check "CVS" box Under Help menu, chose Software Updates-->Find and Install. Select "Find New features" click Next. Select (check the boxes) for all available update sites. Click finish. Click OK button. Wait a while, then when a list appears: Select VE Select UML2 Click "Select Required" button. Now install by clicking through the various screens that appear to approve the selections, agree the lisences, and select a mirror site. [Customize other settings here when and if I think of any!] 15. Visit java.sun.com, click the J2ME (Mobile/Wireless) link. Click on "Downloads" link. Download the latest J2ME Wireless Toolkit (v. 2.2 at this time). Run the installer: It will first locate your JRE, click "Next". Install in C:\jdk\J2ME. Put Start menu group (same name) under Java (i.e., Java\J2ME Wireless Toolkit"). Add seven favorites under Java\J2ME: Name: Location: J2ME Documentation C:\jdk\J2ME\index.html ??? J2ME User's Guide C:\jdk\J2ME\???\index.html J2ME Customization Guide C:\jdk\J2ME\???\index.html J2ME RPC API JavaDocs C:\jdk\J2ME\???\index.html J2ME XML API JavaDocs C:\jdk\J2ME\???\index.html J2ME MIDP API JavaDocs C:\jdk\J2ME\???\index.html J2ME MM API JavaDocs C:\jdk\J2ME\???\index.html 16. Clean up: Make sure all the start button entries "Java\*" are under the "Default User". Make sure all PATH abd CLASSPATH environment variables are under SYSTEM and not User. Make sure the Favorites entries are under the "Default User". Make sure (will have to move this one) "Application Data\Sun" is under the Default User. Make sure all the SendTo menu tiems are under the Default User.