Contents 1. Develop your project... 1 1.1. Install the latest version of the Oracle Java SE JDK... 1 1.2. Install the latest documentation for this version of the Oracle Java SE JDK... 3 1.3. Install the latest version of the NetBeans Integrated Development Environment (IDE)... 4 1.4. Install the 605.201 project package on your desktop... 7 1.5. Configure NetBeans and import the projects that you just downloaded... 7 2. Submit your project... 12 2.1. Install the latest version of SSH Secure Shell on your PC... 12 2.2. Configure SSH Secure Shell to access you class account... 13 2.3. Configure your class account... 15 2.4. Transfer your project to your class account... 15 2.5. Build and run your project in your class account... 18 1. Develop your project Project source code development can be done on any system. This section describes how to setup a Microsoft Windows platform to support the required development tasks. 1.1. Install the latest version of the Oracle Java SE JDK There are three Java Development Kit (JDK) editions and client and server Java Runtime Environment (JRE) editions. The JDK editions include client JRE releases. Standard Edition (SE) application development Enterprise Edition (EE) enterprise development Micro Edition (ME) Internet of Things (IoT) development 1. Browse to http://www.oracle.com/technetwork/java/javase/downloads/jdk10-downloads- 4416644.html
2. Accept the license agreement and download the installation package Accept Select 3. Right-click on the JDK.exe and select Run as administrator
4. Accept all of the defaults provided by the installation wizard. 1.2. Install the latest documentation for this version of the Oracle Java SE JDK 1. Browse to http://www.oracle.com/technetwork/java/javase/downloads/index.html 2. Select the download for Java SE Documentation Select 3. Accept the license agreement and download the JDK zip package. 4. Extract the zip into the Oracle Java SE JDK installation directory
A. Right-click on the JDK.zip and select Extract All B. Use Browse to select C:\Program Files\Java\jdk10.0.2 as the destination C. Select Extract 1.3. Install the latest version of the NetBeans Integrated Development Environment (IDE) 1. Download the Appache NetBeans 9.0.zip installation package from here. 2. As Administrator extract/copy the NetBeans-9.0 directory that is in the ZIP into the C:\Program Files directory. 3. Open the C:\Program Files\NetBeans-9.0\bin directory and right-click on the netbeans64.exe and select Run as administrator
4. Accept the license and all the defaults provided by the apache NetBeans installation wizard NOTE: Install nb-javac https://blogs.apache.org/netbeans/entry/what-s-nb-javac-in Either click this dialog as soon as it appears in the lower right when the NetBeans IDE first appears during the initial startup. Then accept the installation of nb-javac Or install it through the Plugins tool after the initial startup ends. Select Tools then Plugins.
Check the box in front of nbjacac Library and then select Install. Accept the license and the defaults. 5. Pin shortcut to Start Menu Right-click on netbeans64.exe and select Pin to Start.
1.4. Install the 605.201 project package on your desktop 1. Browse to http://dev1.jhuep.com/~tcs/605.201.html 2. Download the Parts1-5.zip 3. Move the Parts1-5.zip to your desktop 4. Right-click on the desktop Parts1-5.zip and select Extract All 5. Accept the default directory and select Extract 6. You now have a Parts1-5 directory on your desktop containing a number of project related subfolders 7. You can now delete the Parts1-5.zip from your desktop to avoid confusion with the folder 8. Now is a good time to download the Class Notes and Examples found in the Notes section and unpack both of them onto your Desktop. 1.5. Configure NetBeans and import the projects that you just downloaded 1. Double click on the NetBeans IDE icon in the Start Menu 2. Select the X on the Start Page tab to close the window Select X to close the Start Page 3. Uncheck Show On Startup to stop automatically rendering the Start Page window. You can redisplay it by selecting Start Page in the Help dropdown menu. 4. Select File and New Project
5. Select the Java Category and Java Project with Existing Sources Select Next> 6. Change the Project Name from JavaProject1 to 605.201 Select Next> 7. Select Add Folder
Select Desktop and browse to the Parts1-5/605.201/src directory Select Open Select Next> 8. Select Finish The 605.201 project is now in the Projects tab
9. Browse to and select the 605.201/Source Packages/edu.jhuapl.cs605201.part1/Room.java project file Right-click on the Room.java file and select Run File The following appears in the Output window when the installation is successful
Your part1 setup test program output
2. Submit your project All projects are graded on the Java source code submission that is properly deployed in your student account. This section describes how to setup a Microsoft Windows platform to support the required secure shell and file transfer access to your remote class account. Your username is your JHID and the default password is Cs605201 2.1. Install the latest version of SSH Secure Shell on your PC 1. Browse to http://dev1.jhuep.com/~tcs/605.201.html 2. Select the SSH client text to download the SSHSecureShellClient-3.2.9.exe 3. Right-click on the SSHSecureShellClient-3.2.9.exe and select Run as Administrator 4. Accept all of the defaults 5. There are now SSH Secure Shell Client and SSH Secure File Transfer Client icons on your desktop
2.2. Configure SSH Secure Shell to access you class account 1. Double-click on the SSH Secure Shell Client icon to execute 2. Select Add Profile from Profiles 3. Change Profile Name to 605201 and select the Add to Profiles button 4. Select Edit Profiles in Profiles
Select 605.201 in the left screen Add Host Name: dev1.jhuep.com User Name: enter your personal JHID identifier Select OK 5. Select 605201 in Profiles Select OK Enter the default password: Cs605201 Now you re in the command shell of your class account. It should look something like this
2.3. Configure your class account 1. Change your password At the command prompt type the command passwd Then press the enter key and follow the prompts 2. Create your project directory structure Enter the following 5 commands. NOTE: for each you can cut the bold italic text and paste it at the commend prompt, then press the enter key. dev1:~$ mkdir p Java/part1 dev1:~$ mkdir p Java/part2 dev1:~$ mkdir p Java/part3 dev1:~$ mkdir p Java/part4 dev1:~$ mkdir p Java/part5 2.4. Transfer your project to your class account 1. Select New File Transfer from the Window menu
The SSH File Transfer Client appears 2. The Local Name window shows your desktop and the Remote Name window shows your class account Select Select
3. Select 605.201/src/edu/jhupte/cs605201/part1 in the Local Name window and Java/part1 in the Remote Name window. 4. Drag the Room.java file from the Local Name window to the Remote Name window Drag from Drag to
2.5. Build and run your project in your class account 1. Select the SSH Secure Shell Client 2. Enter the build command for project 1 dev1:~$ build 1 3. Enter the run command for project 1 dev1:~$ run 1 Your part1 setup test program output The message Ready for room information. should be displayed