Compiling and Running Programs

     
  1. Open command prompt or shell

  2. Change directories to directory where the .java file you want to compile is stored by typing cd .

  3. To compile: javac myClass.java

  4. To run: java myClass



Java Garage
Java Garage
ISBN: 0321246233
EAN: 2147483647
Year: 2006
Pages: 228
Authors: Eben Hewitt

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net