Java Reference
In-Depth Information
Try This Yourself
Let's make sure you can create a file, edit it, and save it. You're not quite
ready for a full plugin yet, so let's start with a simple test file.
In the editor's menu, start with File -> New File to create an empty text window
that you can type into.
Before you start typing, save the file by name. Select the menu item File->Save
As and save the file as CreeperTest.java on your Desktop. Just like that—with a
capital C and T, and lowercase other letters. Now that you've saved the file,
your editor will know you're going to type in Java code.
Type in the following text, just like I did:
Be sure to copy the text exactly , starting with “public class” through to the
last “}”—including all punctuation, spelling, capitalization, and spacing—but
not the line numbers, since those are part of the editor. Use the Delete key
(sometimes labeled “backspace”) to erase any mistakes.
Now select File->Save to save the file with your text.
Ta-da! Now you have a file with Java source code.
And the computer has no idea what to do with it. It's just a file of text; as far
as your computer knows, it could be a recipe for snacks or an essay or a list
of game cheats. We need to fix that next.
What you need now is Java itself.
Windows Paths
A reminder: when we're using the bash shell from BusyBox, all directories use a for-
ward slash (“/”). But the rest of the Windows system will still use backslashes (“\”).
So what Windows and the installation programs call this:
C:\Users\yourname\Desktop\server
we'll call C:/Users/yourname/Desktop/server
 
 
 
Search WWH ::




Custom Search