Presentation is loading. Please wait.

Presentation is loading. Please wait.

Using This PowerPoint This PowerPoint presentation assumes your Computer Science teacher has provided you with the InstallingJava folder, which contains.

Similar presentations


Presentation on theme: "Using This PowerPoint This PowerPoint presentation assumes your Computer Science teacher has provided you with the InstallingJava folder, which contains."— Presentation transcript:

1

2 Using This PowerPoint This PowerPoint presentation assumes your Computer Science teacher has provided you with the InstallingJava folder, which contains the necessary files to install the JDK (Java Development Kit) and jGRASP.

3

4 The Need for File Extensions In this class, we will frequently be working with multiple files that have the same name, but have a different extension. See Java0408 below: In the next several slides, there are 3 different sets of directions for showing file extensions: 1)Windows 7 2)Windows 8 3)Mac

5

6 Open any window. Click Organize.

7 Click Folder and search options.

8 Click View

9 Remove this checkmark.

10 Click OK.

11 Now, file extensions like.docx,.pptx,.exe,.java,.html,.bat and.class will show up.

12

13 Select Desktop. It is the tile in the lower-left corner.

14 Open any window and click View.

15 Check File name extensions.

16

17 Go to Finder and select Preferences.

18 Select the Advanced tab and check Show all filename extensions.

19

20 Frequent JDK Updates This PowerPoint presentation was created in August 2014. At the time, the latest version of the JDK was Java Version 8 Update 11. It is very likely that you will use a newer version of the JDK when you install. There will only be a slight difference between the appearance of your screen and this presentation.

21 Open the appropriate folder: Windows or Mac.

22 Double Click the appropriate JDK. For 32-bit Windows For 64-bit Windows For Mac

23 How do I know if my Windows computer is 32-bit or 64-bit? Right-click Computer and select Properties. Look at System type :

24 NOTE: if you do not have a Computer icon on your desktop, you can also right-click it in the Start Menu.

25 In Windows, you will be asked for permission to install. Go ahead and “Allow” it. The next few slides show the installation of JDK Version 8 Update 11 for a 32-bit Windows platform. The process is similar for all JDK versions and platforms.

26

27

28

29

30

31

32

33 Load your web browser. The message below may appear. If so, select Enable to allow Java programs to execute in your browser.

34

35 Double Click the appropriate jGRASP for your platform. For Windows For Mac

36 As before, Windows will be asked for permission to install. “Allow” it again. The next few slides show the installation of jGRASP Version 2 Update 15 for a Windows platform. As with the JDK, the process is similar for all jGRASP versions and platforms.

37

38

39

40

41

42

43

44

45

46 Double Click the jGRASP icon.

47 This window only shows up the first time. To avoid potential headaches Don’t Allow this feature.

48 If jGRASP informs you that a new update is available, go ahead and accept it.

49 This is the jGRASP IDE with no files loaded.

50 Click Settings. Scroll to Compiler Settings and select Workspace.

51 Select the Compiler tab followed by the HTML tab.

52 Highlight the code in this window and press -.

53 Click here to remove the small square. By doing this, we are indicating that we do NOT want the default width and height.

54 After you click the square the default code will vanish. Click in the empty white space and press - to paste or velcro the text you copied earlier.

55 Now change the width to 1000 and the height to 650.

56 NOTE: If you were not able to copy and paste the text, then you need to manually type the code above EXACTLY as it appears in the white box.

57 Select the Font tab.

58 Do NOT alter these Default values!

59 If you have difficulty reading small text you may alter these values:

60 First, de-select these default boxes.

61 With the boxes de-selected, you can make the text bigger. Do NOT make it smaller than 10. When done, click Apply followed by OK.

62

63 Click the Open File icon.

64 Browse to Programs02 or Programs02B.

65

66

67

68 Open Java0201.java

69 Now Java0201.java is loaded in the Edit Window.

70 Click this icon to see all of the files in the same folder as the loaded file.

71 NOTE: Files can be loaded directly from this window.

72 Click this icon to show the line numbers. Visible line numbers are very useful when your program has errors.

73

74 Click the green Plus Sign ( + ) to compile the program.

75 The message below indicates that the compiler is finished compiling. The fact that there are no errors and the Java0201.class bytecode file has been created indicates the compiling was successful.

76 NOTE: You will not see the.class file in the File Window unless this is set to All Files.

77 Click the red Running Man icon to “run” or execute the program.

78 For some programs, you may have to drag the border between the top and bottom windows up to see the entire output.

79 NOTE: Now that both the JDK and jGRASP are installed, and we have an understanding of how to function in jGRASP, we now wish to focus on the actual Java programs. A GUI display like this might look nice, but only a small part of the screen is devoted to the program. GUI displays also take up considerable memory and are not at all practical for a textbook with hundreds of examples. A different format will be used to view all remaining programs in both the textbook and the PowerPoint slides.


Download ppt "Using This PowerPoint This PowerPoint presentation assumes your Computer Science teacher has provided you with the InstallingJava folder, which contains."

Similar presentations


Ads by Google