Reference the Veracode Java API Wrapper from Eclipse

Veracode APIs

You can reference the Java API wrapper as a library from Eclipse. Adding the wrapper as a library enables you to call API functions without having to set up web requests and look up the required URL or query string parameters.

To reference the Veracode Java API wrapper from your Eclipse project:

  1. In Eclipse, select Window > Show View > Package Explorer.
  2. Right-click your project folder and select Build Path > Configure Build Path.


  3. Select the Libraries tab.
  4. Select Add External JARs....
  5. Locate and select the VeracodeJavaAPI.jar file.


  6. Click Open.
  7. Import the com.veracode.apiwrapper.wrappers package.


  8. Optionally, complete the following steps to display the API wrapper documentation in the Eclipse interface.
    1. In the Configure Build Path window, select the Libraries tab.
    2. Expand the VeracodeJavaAPI.jar node and select Javadoc Location: (None).


    3. Click Edit....
    4. Browse to the folder containing the documentation and, then, click OK.