Java Reference
In-Depth Information
Go down into HelloWorld :
Desktop/
$ cd HelloWorld
And now you're here:
code/
HelloWorld/
build.sh
bin/
Canary.inf
dist/
src/
HelloWorld.jar
helloworld/
helloworld/
HelloWorld.class
HelloWorld.java
Now list the files there. You'll see this:
$ ls
Canary.inf bin/ build.sh dist/ src/
My system (Mac OS X) is configured to show directories with a slash at the
end. (If yours isn't, try typing ls-F .) So here I have two files and three directories
in my current directory. File types are often represented by the last part of
the file name—its suffix. Here I have a shell script with an .sh suffix, and a
config file with an .inf suffix. Down in the src/ directory there's a helloworld sub-
directory; there I have a Java source file with a .java suffix (more about these
kinds of files as we go along).
To go down into the src directory, type cdsrc , and you're there.
$ cd src
$ ls
helloworld
Then down one more into helloworld :
$ cd helloworld
$ ls
HelloWorld.java
In the src/helloworld directory, there's the HelloWorld.java file—the “guts” of our
first plugin.
 
 
Search WWH ::




Custom Search