Game Development Reference
In-Depth Information
Figure 2-11 . Drag the separator bar upward to reveal the Compile Output area of the IDE (running the application
seen at right)
Click the divider line between the code editor pane and the Output tab , at bot-
tom, and, holding down the mouse button, drag this divider line upward, revealing the
Output tab contents, as demonstrated in Figure 2-11 .
The Output tab will contain different types of output in NetBeans, such as compile
operation output from Ant, run operation output (shown in the figure), profiler opera-
tion output (which you will be exploring in the next section), and even output from the
application itself.
You may have noticed in Figure 2-10 that the code for this bootstrap Java 8/JavaFX
application contains a (System.out.println("Hello World!"); Java state-
ment in line 25, so if you wanted to see the application that you are currently running
print to the Output pane (sometimes referred to in programming circles as the Output
Console ), click the Say “Hello World” button in the “Hello World!” application (run-
ning on top of the IDE).
Once you click this button, “Hello World!” will appear in the Output tab, under
the red text that says it is executing the InvinciBagel.jar file. A .jar (Java Archive)
file is the distributable format for your Java application. Part of the compile process
is creating this file, so if your compiled version works, you can have the .jar file
ready to distribute if your application design and programming are complete!
A .jar file does not contain your actual Java 8 code, but rather a compressed, en-
crypted “Java byte stream” version of the application, which the JRE can execute and
run (like NetBeans 8.0 is doing now). The path that is attached to the front of the In-
vinciBagel.jar file tells you where the compiled .jar file resides and where
 
Search WWH ::




Custom Search