8.6.2 Compiling and Running Files

You can open any java file and compile and run the same using the tool. The options used to compile and run the files are similar to that of the screens. Since there is no intelligence to resolve the build type of the file, you must select it manually from the Build Type menu item. The package name for a file can be set same as the project package or different from the project package name.

 

The java files can either be compiled separately and then run or directly compiled and run with a single option.

 

You can compile the file in either of the two ways mentioned below.

 

 

Thus the file is compiled. The log messages and the error messages (if any) are displayed in the Status window. You can toggle the visibility of the Status Window by selecting the Status Window menu item from View menu or by pressing F7 key.

 

You can run the compiled file in either of the two ways mentioned below.

 

 

Thus the file is run and the output is shown as an applet.

 

You can directly compile and run the file by selecting the Compile and Run menu item from the Build menu.



Copyright © 2011 ZOHO Corp. All Rights Reserved.