This script must be added to Manage External Tools -> (Left Bottom) Add a new tool at your gedit text editor. Just create a tool and give it a shortcut for example Ctrl+Shift+B. If you cannot find this menu go to the Preferences -> Plugins and approve External Tool. Your source files(.java files) must be located at src directory under the project directory(You can change this by modifying script). Compiled files will be located at your_project_dir/bin