How to compile a Java file…
Index
It is not necessary to make a project under Kawa to compile Java files. Follow these steps to compile a single Java file under Kawa
- Open the Java file in the editor and select Build/Compile or the appropriate shortcut key to compile the file.
- If there are any errors in the file the output build window will list all the errors.
- Double click on any error line which has a line number to position the error cursor in the editor. Alternatively, select Next Error/Previous Error shortcut to move between different error messages.
- Please refer to
How to run an app or applet for more details on how to run the compiled class file.
- Kawa allows compiler options to be set for single Java files or non-project Java file also. This is set by right clicking on the root item "Kawa Projects" in the project tree and selecting
Compiler options to set default compiler options. The global compiler option is also used in the project but any project compiler option will supersede the global compiler option.