The PrologBeans examples for Java can be found in the directory corresponding to the file search path pbexamples, defined as if by a clause:
user:file_search_path(pbexamples, library('prologbeans/examples')).