1)Most of the examples use files from the assets folder. Relative paths will break if you (re)move this folder or these files. 2)Some examples use -cp with a relative path to point to the source files in the src folder. To make sure this works correctly, put the examples folder next to your src folder.