Java Reference
In-Depth Information
An entry in CLASSPATH
Fully qualified name of the class
with a dot replaced by a backslash
The file extension
added by JVM
C:\javaprograms + com\dojo\intro\Welcome + .class
C:\javaprograms\com\jdojo\intro\Welcome.class
The absolute path of the class file
Figure 2-7. The process of finding a class file when the class is run
Using NetBeans IDE
You can use the NetBeans IDE to write, compile, and run Java programs. In this section, you will walk through the
steps of working with NetBeans. First, you will learn how to create a new Java project, write a simple Java program,
compile, and run it. At the end, you will learn how to open the NetBeans project for this topic and use the source code
for this topic.
It is assumed that you have installed NetBeans 7.4 or later. You can download it from www.netbeans.org . The
NetBeans IDE comes in different bundles: Java SE, Java EE, C/C++, HTML5 & PHP, and “All.” For running all examples
in this topic, you need Java SE or “All” bundle.
at the time of this writing, netBeans iDe 8.0 is in its beta release. By the time you read this chapter, the final
release version 8.0 should be available. in this section, i will use the netBeans 8.0 beta version.
Note
Creating a Java Project
When you start the NetBeans IDE, the startup page is displayed as shown in Figure 2-8 . The startup page contains
useful links for developers, such as links for tutorials for Java, JavaFX, C++, etc. If you don't want the startup page to
display every time you start the IDE, you need to uncheck the “Show on Startup” checkbox in the upper-right corner of
the startup page. You can close the startup page by clicking the X icon displayed in the Start Page tab.
 
 
Search WWH ::




Custom Search