Bit sleepy and uninterested, so expect the content here to be messy. First things first, you'll need to download the JDK (currently using jdk 1.6) and have a command prompt or a UNIX shell on your system. Once that's done, find the location of the bin folder of your JDK folder. @Home: C:\Java 1.6\jdk1.6.0_30\bin @Amity: C:\Program Files\Java\jdk1.6.0_30\bin ![]() (If C Drive is restricted through My Computer, Open Run, and type c:\) Copy this address and type the line below to direct to its folder. cd <copied_address_pasted> USEFUL DOS COMMANDS:
And as for compiling and execution, take example of a class called BiggerOf. Javac compiles and makes a .class file in the same directory as its java equivalent. Java executes that .class file, by default, from its source folder, ..bin/ (set the classpath to the source of the java application, and you can execute from any folder) (Screenshot of how to copy & paste into the command prompt) ![]() |