Presentation is loading. Please wait.

Presentation is loading. Please wait.

Java Programming, Second Edition Appendix A Working with Java SDK 1.4.

Similar presentations


Presentation on theme: "Java Programming, Second Edition Appendix A Working with Java SDK 1.4."— Presentation transcript:

1 Java Programming, Second Edition Appendix A Working with Java SDK 1.4

2 In this chapter, you will: Configure the Java System Development kit Use Notepad to save and edit source code Use the DOS prompt to compile source code Use TextPad to work with Java Use TextPad to save and edit source code

3 Configuring Windows to Work with the SDK You must add the Java bin directory to the command path of your operating system (OS) One way to update the OS path for Windows 95 and 98 is to use a procedure to edit the OS Path or set the OS Path command in the autoexec.bat file

4 Using Notepad to Save and Edit Source Code To start Notepad using Windows 95/98/2000, click the Start menu, select the programs folder, select Accessories, and then select Notepad Saving source code in Notepad requires that the Java source file be saved with a.java extension

5 Using the DOS Prompt to Compile Source Code Windows 95 and 98: Click Start, click Programs, and then click MS-DOS Prompt Windows 2000: Click Start, click Programs, click Accessories, and then click Command Prompt Windows XP: Click Start, click All Programs, click Accessories, and then click Command Prompt At the command prompt, change from the default drive prompt to the drive where your application is stored To compile an application, you type the javac command to start the Java compiler

6 Using TextPad to Work with Java This text editor is designed for working with Java You can download a trial version from http://www.textpad.com http://www.textpad.com Note that TextPad runs only under the Windows operating system

7 Using TextPad to Save and Edit Source Code To enter and edit source code, you can use the same techniques that you use when working with any other Windows text editor

8

9

10

11

12 How to use TextPad to Run an Application Once you’ve completed the source code for an application, you can run that application by pressing [Ctrl]+2 or clicking Run Java Application from the tools menu


Download ppt "Java Programming, Second Edition Appendix A Working with Java SDK 1.4."

Similar presentations


Ads by Google