Skip to Content
avatar image
Former Member

error: package does not exist during compilation in jersey project

I am running a java jersey maven webservice on Eclipse and I need to use the SAP Java Conector to connect to an SAP system. I have added the PATH and CLASSPATH variables correctly and added the sapjco3.jar to the project as an external Jar and I am getting no errors in Markers. Only during compilation in maven install, I get this error for all sapjco imports:

error: package does not exist.

Am I missing something?

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Jan 15, 2018 at 10:07 AM

    Hello, Mohanad. This issue is cause Maven cannot find this jar file in your local Maven repository.

    You could try to fix it by following steps:

    1. Install sapjco3.jar to the local Maven repository.

    mvn install:install-file -Dfile=sapjco3.jar -DartifactId=sapjco3 -Dversion=0.0.1 -Dpackaging=jar

    2. Add new dependency in the pom.xml

    Add comment
    10|10000 characters needed characters exceeded