This is a simple example of how to capture submit errors. This will attempt to submit a file that doesn't exist, returning a "No files to submit" error # To Setup Update the Perforce connection information in the code as well as the depot path. # To Build javac -cp SimpleTestApp.java # To Run java -cp :. SimpleTestApp #swap the ':' for a ';' on Windows