Join Peggy Fisher for an in-depth discussion in this video Exploring command level programming, part of Java Essential Training for Students.
- It is helpful to understand how to compile and run Java programs without using an integrated development environment. For this section, we will use Brackets as our text editor to write Java code and then compile and run the programs using the executables available from the Java Development Kit, or the JDK. All Java applications are compiled to bytecode that can run on any JVM, or Java Virtual Machine, regardless of the underlying computer architecture, making it platform independent.
A Java application can accept any number of arguments from the command line. This allows the user to specify configuration information when the application is launched. To write and test programs using the command prompt, it is important to locate the folder where you downloaded the Java JDK. This is required to compile and run Java programs on your machine. When you installed the JDK, along with your IDE such as NetBeans, the default directory for Windows should look similar to this, c:\Program Files\Java \jdk1.8.0 _31 We will use this information to set the path variables so we can compile and run our program from the command line.
To open a command prompt, we go to the Windows icon and type CMD.
- Getting started with parsing
- Reviewing data types
- Using decisions
- Creating user-defined methods
- Command-line debugging
- Exploring the Java API
- Creating and instantiating classes
- Working with interfaces
- Storing items with arrays
Skill Level Intermediate
1. Command Level Programming
2. Basics Review
4. Java API
5. Simulations and Algorithm Analysis
6. Classes and Objects
7. More on Classes
8. Data Structures
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.