Java app example + Authentication error fix