Assignment # 1

Saying Hello to Java

Due: Monday, August 31st by 4 PM.

Deliverables: Email all files that you create to cis3931@cs.fsu.edu by the due date, including a journal/diary of the steps you went through during this assignment. Since many of the assignments, including this one, involve writing Java applets it will greatly assist the grading of the assignments if you create HTML on your home page that includes the assignment's applets. Please include the web address of your applet in the journal/diary. The list of home pages for all students will be added to the "Student Work" link on the main class home page. Note that for future assignments that require you to create source code yourself rather than type in existing code you should take careful measures not to accidentally make your .java files world-readable within your HTML directory.

The journal is a document containing your documentation of your progress during the assignment. The easiest way to manage your journal is to create a text file (a name like "Journal.txt" would be suitable) in the same directory as the assignment and treat it like a diary -- record your efforts, trials and victories as you solve the problem. In cases where you are unable to completely solve the problem the journal is used to possibly enhance your grade by determining whether or not you were on the right track. In addition, the journal will contain any information that may be required by the assignment (such as the URL of your applet HTML in this assignment).

When emailing your files it can be problematic to faithfully re-create the file names. Here are detailed instructions that you can use for this and future assignments. If you use xi.cs.fsu.edu (which is running Solaris) you can create a single compress "tar" file that can then be emailed to cis3931@cs.fsu.edu.

cd location_of_P1_source
gnutar czvf ~/P1.tar.gz .

If you use an email client that supports attachments then you can just attach the file P1.tar.gz to your email submission. If you do not use an email client that supports attachments you will first have to convert the binary compressed "tar" file into a format suitable for an email message, such as uuencoding. Here is an example of encoding the P1.tar.gz file and sending it via a UNIX pipe to a mail client:

uuencode P1.tar.gz < P1.tar.gz | /usr/ucb/mail -s "P1.tar.gz" cis3931@cs.fsu.edu

If you choose to use some other operating system, such as Windows '95, Windows NT or Windows '98 be careful that you use a compression agent that correctly preserves both case sensitivity and the entire file name length, such as WinZip.

You will be asked to re-submit your assignment via email if the format you use is not correctly identified and/or formatted. Please do not email all the files separately.

Assignment: Work through Chapter 2 (page 9) and Chapter 3 (page 19) by creating, compiling and running the sample "Hello World" application HelloWorldApp.java and the applet HelloWorld.java. All the instructions for entering, compiling and executing the sample programs are included in the book. If you prefer, you can use the on-line tutorial instead of the book (such as the mirror copy at http://www.cs.fsu.edu/~jtbauer/cis3931/tutorial/getStarted/application/index.html and http://www.cs.fsu.edu/~jtbauer/cis3931/tutorial/getStarted/applet/index.html).

You can use one of the Java Development Kits (JDKs) that is on the CD-ROM on your own personal computer or use the JDK that is installed on xi.cs.fsu.edu (assuming you have gotten an account on the Computer Science network). The JDKs on the CD-ROM are version 1.0.2 (in folder JDK1.0.2) and version 1.1.5 (in folder JDK1.1.5). The JDK installed on xi.cs.fsu.edu is currently 1.1.6 (you can see this by typing in "java -version"). My advice is to find the environment that you are most comfortable in for your programming assignments, be it Solaris/UNIX on xi.cs.fsu.edu, Windows '95, Windows NT or Windows '98. If you want to use your home machine I recommend grabbing the latest production JDK (currently 1.1.6) from Sun at http://java.sun.com/products/index.html. Of course you can also choose to use one of the popular Java development environments such as Symantec's Visual Cafe, Microsoft's VJ++, etc. Just make sure that your programs compile and run without errors using the Sun JDK as the Java standard.