This unit introduces the basic Java platform (the Java language plus the Java package) and demonstrates how to set up a Java development environment.
After completing this unit, you should be able to
Conference participation is mandatory for this course and is worth 15% of your final mark.
Please follow the steps below.
This command should return the version of Java you have just installed. If you do not see a version message, or if you see a version other than what you just installed, then your installation of Java is incorrect. You may have to modify your system’s PATH to point to the java installation directory. You can obtain assistance installing the SDK by creating a discussion on the conference. However, as a graduate student in an Information Technology program, you are expected to be able to install and configure the SDK with minimal assistance.
Unit 2 contains further instructions on compiling your first Java application, together with some helpful troubleshooting advice.
For this course, unless otherwise directed by the instructor via the News conference, you should install and use the latest version of the Java SDK.
You will see the development kit referred to as either the JDK (Java Developer’s Kit) or the Java SDK (Software Development Kit). Both terms are used interchangeably in this course.
It is highly recommended you download the current version of the Java SDK from Oracle. While there are various other products on the market that may serve the purpose (i.e., Eclipse or Netbeans), it is your responsibility to ensure that the platform you choose supports the recommended Java features as specified by the instructor in the News conference.
It is highly recommended that you use SDK with pure text editors, such as Crimson Editor or Sublime Text. Using a programmer’s editor will allow you to focus on learning essential Java programming skills instead of learning the development tool. You will be able to code independently from any development tool (IDE) while avoiding bad habits in coding. Please also refer to Requirements for Assignment Programs. Every program you submit to the instructor must compile using the recommended version of Java with the command “javac *.java” from a command window. Programs should execute with the command “java Program” from a command window.
The “official” viewer for applets in this course is appletviewer.exe, which is included with the SDK. Your applet assignments must work with appletviewer.
Using a browser to test and debug applets is NOT recommended. Browsers contain caches that store code for speedy reuse. Unfortunately, recompiling an applet does not cause the browser to reload the program; instead, the browser will continue to execute the copy in its cache, causing much grief, frustration, and heartache.
It is further recommended that you do NOT use or alter the CLASSPATH variable for this course. CLASSPATH is a handy way to direct the Java compiler and run-time environment to the location of code that you use frequently, but its use in this course is not recommended. Any time you feel you require CLASSPATH, use the command-line options for javac and java instead.
Updated September 15 2020 by FST Course Production Staff