Running a Java Program

To see whether the Saluton program. does what you want, run the class with the Java Virtual Machine (JVM), the interpreter that runs all Java code. In NetBeans, choose the menu command Run, Run File. An output pane opens below the source editor. In this pane, if there were no errors, the program displays the output, as shown in Figure 2.3.

Figure 2.3. Running your first Java program.

Image

Note

You might be asking yourself why “Saluton mondo!” is a traditional greeting. The phrase means “Hello world!” in Esperanto, an artificial language created by Ludwig Zamenhof in 1887 to facilitate international communication. It’s only ...

Get Sams Teach Yourself Java™ in 24 Hours, Sixth Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.