This is a simple example of how to create a branchspec using P4Java. # To Setup Update the Perforce connection information in the code. # To Build javac -cp SimpleTestApp.java # To Run java -cp :. SimpleTestApp #swap the ':' for a ';' on Windows