I installed swi-prolog by using $ sudo apt-get install swi-prolog and $ sudo apt-get install swi-prolog-java
However I can't compile anything on netbeans because it gives me this:
As you can see on the screenshot, I even tried importing jpl.jar to the libraries of the project, yet nothing seems to work.
There are some similar questions about this but all the answers are always related to Windows , I would like to get some help regarding this package for linux users.

@Tamara I looked inside jpl.jar and I guess you should use package org.jpl7 instead of just jpl.
Here is a piece of code that worked for me:
And output:
Check here for more examples https://github.com/SWI-Prolog/packages-jpl/tree/master/examples/java