Skip to main content

preZero extension for Eclipse

Set up Java

Eclipse comes with Java 17 by default, but the extension requires Java 20. Download Java 20 and make it available by updating the -vm-parameter in eclipse.ini:

-vm
/Library/Java/JavaVirtualMachines/jdk-20.jdk/Contents/Home/bin

On macOS, find the eclipse.ini at /Applications/Eclipse.app/Contents/Eclipse/eclipse.ini. On Windows, eclipse.ini is located in the same directory as eclipse.exe.

Install the plugin

  1. Obtain the preZero plugin for Eclipse archive file from Qwiet AI.

  2. Launch Eclipse.

  3. Go to Help > Install New Software....

  4. In the Install window that opens, click Add....

  5. The Add Repository prompt appears; click on Archive.... Navigate to where you downloaded the archived extension folder. Select the ai.qwiet.prezero.zip folder, and click Open.

  6. Provide a Name to use with the extension. Then, click Add.

  7. Check the box to the left of preZero SAST, and click Next >.

  8. Review the list of items to install, and click Finish to proceed.

  9. In the Trust window that appears, click Select All > Trust Selected to proceed.

  10. click Restart Now to apply the software update when prompted.

If you've successfully installed the extension, you'll see qwiet.ai preZero in the toolbar:

Analyze an application

Open up the application of your choice.

In the toolbar, select qwiet.ai preZero > Run Analysis.

If you haven't already authenticated with Qwiet, you'll be prompted to do so. Follow the prompts to complete this process.

Eclipse will indicate that the analysis is running:

When done, you'll see the results displayed in the Problems tab at the bottom of the IDE:

Double-clicking on an individual item in the Problems tab will take you to the source code location where the issue occurs.

Filtering results

You can filter specifically for issues identified by preZero so that only those are displayed in the Problems tab. To do so:

  1. Click on the filter in the top-right of the IDE's bottom pane.
  2. In the options window that opens, make the following changes:
    1. Under Configurations, select Errors/Warnings on Project.
    2. Under Scope, select No filter, show all elements.
    3. Under Types, select Language Servers.
  3. Click Apply and Close to proceed.