The majority of this post is from Wikipedia. Classpath is a parameter—set either on the command-line, or through an environment variable—that tells the Java Virtual Machine or the Java compiler where to look for user-defined classes and packages. Contents 1 Overview and architecture 2 Setting the path to execute Java programs 2.1 Supplying as application … Continue reading Java classpath and external library (with some personal notes as well)
Here is an example if you are going to use OpenJDK. This helps when it's too slow to load a Java IDE to compile the source files (For example, on Raspberry Pi platform; I've tried Geany and Netbeans. It takes forever to load...). From Terminal install the open jdk sudo apt-get install openjdk-7-jdk Write program … Continue reading How to compile and run a Java program in command prompt?