This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
It's important for you to know, "where" your Java files are saved.
The easiest way I compile my files is:
3. I compile my Java file: javac example.java
4. I run my Java file: java example
You can also compile your files from your home directory using the whole path to the file, but I think it�s much quicker and easier to change into the directory and stay there for compiling and executing your Java files.