![]() |
Install Java and Eclipse |
![]() |

| Vista Users Take Note: You may have to run Eclipse as an Administrator. Right Mouse Click on "eclipse.exe" → Run As Administrator → Run → Allow. There may be a better permanent solution as discussed on EclipseZone or tell the program to always run as an administrator as explained on Vista Forums. | |||||
JAVA |
JAVA HISTORYYou'll find the history of Java to be fascinating. Did you know that the original designer of Java was James Gosling from Calgary, Alberta? Pop on your earphones and watch and listen to the following flash presentation on the: History of Java from PublicStaticVoidMain. |
||||
| Task | Topic | Resources | Assignments | ||
|---|---|---|---|---|---|
Get |
Download |
Java SE Download Page Sun's Installation Notes |
Sun MicroSystems owns Java. The Sun Developer Network (SDN) is the single best source for information concerning Java. The abbreviation "IDE" stands for Integrated Development Environment. You need NOT download or install the Java installation bundle that includes the NetBeans IDE, but you are encouraged to do so to do so because the NetBeans IDE because it is one of the best IDEs (Integrated Development Environment) available. That said, at this point in time (June 2008), the Eclipse IDE will be used because your teacher believes that the Eclipse IDE is even better than the NetBeans IDE for learning. The Eclipse IDE is currently used and supported by more post-secondary institutions and professional Java programmers than any other IDE. When installing software, it is generally wise to use the default locations unless you have a particular reason to do otherwise. If you do save the software in locations other than the default locations, then you must ensure that all references to the software's path are changed everywhere. Pay particular attention to Sun's Installation Instructions. Most of you will use the instructions to install Java on a 32-bit Windows platform. When downloading Java or the Java Documentation, you must first accept the license agreement to download the product by clicking the appropriate "radio button". Configure a Working Windows Environment. Sun MicroSystems Installation Notes also explain how to update the path variable for Java. The notes say that updating the path variable is "optional". Disregard that advice and ensure that you do update the path variable to avoid having to type the very long path every time you compile or run a java program. |
||
| Task | Topic | Resources | Assignments | ||
Get |
Download |
Java SE Download Page Sun's Instructions To Install Java Documentation. |
The JDK API Documentation is comprehensive, logically organized and easily read. It is the Java Owner's Manual. Java is far too large to memorize. Learning to use Java's documentation will arm you with the same skills that are required to work with other modern systems of knowledge which are also organized by rules of logic and syntax. Such systems are extensively used in medicine, law, engineering, science, chess, music and virtually all academic pursuits. Return to Sun's Java Download Page. Scroll down the page to the section entitled, "Java SE 6 Documentation". Left-Mouse-Click the download button. Follow Sun's Installation Instructions for Documentation with the following exception. Sun says that you can store the documentation anywhere, but it is customary to store the "docs" directory in the "jdk" directory: the "jdk1.6.0_01" directory at the same location as are the directories "bin", "demo", "include", "jre", "lib" and "sample". After the documentation is installed, pin a shortcut in your start menu to the API Specification. This is the "Dictionary of Java". [See next paragraph.] You will use this resource often as you learn to program using Java. Pin Specs Shortcut to Start Menu. Navigate to the the API index file. The path to the file will look something like, C:\Program Files\Java\jdk1.6.0_01\docs\api\index.html. Ensure that you are in the api directory. --> Right-Mouse-Click the file and click "Create Shortcut". This will create a file called "Shorcut to index.html". --> Left-Mouse-Click that file and, while continuing to press the left mouse button, drag the name of the file to the start button which is usually located at the far left of the taskbar at the bottom of the screen. --> While continuing to press the left mouse button, the start menu will open. --> Continue to drag the shortcut name of the file to where you want it located on the start menu. --> Release the mouse button. --> Right-Mouse-Click the shortcut name ("Shortcut to index.html) and choose "Rename". Change the name to something like "Java 6u1 API" which translates as "Java Version 6 Update Number 1 Application Programming Interface". |
||
| Task | Topic | Resources | Assignments | ||
Get |
Install |
www.Eclipse.org Eclipse News Groups NCSU Eclipse Tutorial [csg] [web] UBC Eclipse Tutorial [csg] [web] Punahou Eclipse Tutorial [csg] [web] Enrique S. Valle Tutorial [csg] [web] java.net Eclipse Tutorial [web] UofM Eclipse 3.1 Tutorial [csg] [web] |
The Eclipse JDT (Java Development Toolkit) is reputedly used by more than half of all professional Java programmers. Eclipse itself is simply a "framework" into which all sorts of "plug-ins" may be integrated. All the plug-ins that we will use, including the JDT, are already integrated into Eclipse when you download it. It takes a bit longer to learn to use Eclipse to develope Java programs than an editor like TextPad, but the power and convenience of the many tools and plug-ins that work with Eclipse make it possible to learn and become a productive programmer sooner than with a less powerful environment. IBM spent $40 million U.S. dollars developing Eclipse and then gave it to the nonprofit Eclipse Foundation. Tools implement concepts. The more tools that you learn to use, the more concepts you will internalize. That makes you a better programmer and, more importantly, a more profound thinker. Read the North Carolina State University Tutorial, Getting Started Using Eclipse [csg] [web]. You must properly install Java before installing Eclipse since Eclipse uses Java. |
||
Install Omondo's EclipseUML Free Edition
Caveat: Diagrams created at home using Omondo's EclipseUML Free Edition cannot be restored with another installation of EclipseUML Free Edition, including the school's installation, and vice versa. This is a free edition and a studio edition of EclipseUML. The free edition will cover your modeling needs while learning UML. Students using only EclipseUML Free Edition should be prepared to do all of their UML diagrams exclusively on either their home or school computer. EclipseUML 2007 Europa Studio Edition, costing $3,490US for 10 academic licenses (25 December 2007), can restore EclipseUML Free Edition diagrams. |
|||||
| Task | Topic | Resources | Assignments | ||
Set |
Format |
|
Eclipse can automatically format source code according to specific rules that you give Eclipse. The menu command to do this is Source --> Format. The hot keys to do this are [Ctrl] + [Shift] + [ F ]. Code must be formatted such that it is most easily read. A general design principle for readability is "lots of white space." This course requires that you implement BIG JAVA's style for formatting code. You will now set the Eclipse JDT plug-in to optimize that design principle. Do this to import the style format used in the UBC course CPSC 211. Alternatively, you may labouriously set each format feature yourself by doing the following.
Launch Eclipse. --> In the top menu, click Project. -->
click Properties. --> Open the Java Code Style by clicking
on the [+] sign beside that label. --> Click Formatter -->
Place a check mark [ |
||
| Task | Topic | Resources | Assignments | ||
Get |
Import |
From Eclipse HELP: |
Sometimes you will have a java source code file that you developed in another application, like TextPad. Sometimes you will find java source code on the Internet or on a CD from the back of a Java book. How do you bring that source code into Eclipse?
|
||
| Task | Topic | Resources | Assignments | ||
Use |
Do |
|
|||
|
|
![]() gerry@comscigate.com |
|