Presentation is loading. Please wait.

Presentation is loading. Please wait.

A Short DOS Presentation

Similar presentations


Presentation on theme: "A Short DOS Presentation"— Presentation transcript:

1 A Short DOS Presentation
Review

2 PCs before Windows DOS Text based operating system
Disk Operating System Text based operating system No mice allowed!

3 DOS 101 Documents are stored in files Files are stored in directories
In the Windows & Mac worlds, these are called "Folders" Directories are stored on disks Usually denoted with an upper case letter, followed by a colon A: B: C:

4 Getting to DOS

5 The DOS Window

6 Before we get started, here are two useful commands
While in DOS, this key will allow you to repeat the last action doskey This DOS function remembers all your commands You use the up & down arrow keys to access them

7 Getting to doskey

8 Clearing the screen

9 Getting to the Floppy drive

10 Looking Around Short File Name Long File Name Size Date/Time
Disk Information

11 Compiling & Running Java

12 Program Development Integrated Development Environment
Many tools available Writing, compile, debugging source code “friendly” Can be expensive Command-line tool Java Development Kit Free!! Look for most recent version

13 Edit You can use either a Java IDE, or Windows notepad to develop your code

14

15 javac myClassName.java
Compile We use DOS and the Java compiler to create bytecode that can be interpreted The command to compile the program There are, of course, many variations on this command. We'll see some over the time, the rest are in the documentation javac myClassName.java

16 The .java file is plain text
We use the file extension here.

17 When we run javac, the .class file is automatically created

18 Load, Verify, Execute java myClassName
These three phases take place all at once To execute the class file, we type: There are, of course, many variations on this command. We'll see some over the time, the rest are in the documentation java myClassName

19 We don't use the file extension here!

20 Saving your output to a text file
We would like to save our output to a file We do this from a DOS window using the "redirect" command: java myClassName > myClassNameOUT.txt The “redirect” symbol is the “greater than” symbol on your keyboard – usually located above the period (“.”)

21 Using your output file Or
You can use the DOS command "type" to see what is in your file Note – You can not print directly from DOS in the labs Or You can open WordPad, notepad, or other word processor and read the file directly Using this method, you can also print your file.

22


Download ppt "A Short DOS Presentation"

Similar presentations


Ads by Google