How to work with packages
Index
There are two methods to handle packages under Kawa.
- The first and the old method is to store all the files under a project in the project directory. This includes all the package files. But it is necessary to set the output directory option under compiler options to point to the project directory. This will create all the packages under the project directory. Menu option Build/Compile *.java will always issue "javac *.java" in the project directory to rebuild the entire project.
- The second and the preferred method is to store the project files in different directories and use different folders under Kawa to point to these files. Build/Rebuild All now checks the entire project files for dirty files and issues the javac command for dirty files only. Also, new commands like Rebuild Folder and Compile *.java folder commands make maintaining a package a breeze under Kawa now. Please refer to
How to Rebuild Folder files only and How to compile modified Java files only for more details on these new commands.