title: Create new Changelist Perforce Java API
body: <p>I am trying to write a method to create a new change list in perforce using the p4java api. I am able to connect to the server, get an IFileSpec list, sync files and check if files/folders exist.</p>
  
  <p>However, I am unable to create a new change list. I tried the method on <a href="http://kb.perforce.com/article/1342/common-usage-patterns-for-p4java" rel="nofollow">this</a> page with no luck... If anybody has an example they could share I would appreciate it!</p>
  
  <p>The part of code failing me is,</p>
  
  <pre><code>167: cannot find symbol
  symbol  : class OptionsServer
  location: class tools.test.PerforceSyncer
                      (OptionsServer)iServer
  </code></pre>