cancel
Showing results for 
Search instead for 
Did you mean: 

Class file is referencing a type outside the classpath???

Former Member
0 Kudos

Hi All,

I'm developing a EJB project in NWDS.

I'm getthing the below syntax error.

This compilation unit indirectly references the missing type com.sap.exception.BaseException (typically some required class file is referencing a type outside the classpath)

Can you please help me to resolve this?

Thanks in advance.

Sundar

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi Sundar,

You need to add the ejb20.jar file to your Project classpath.

If you are developing the project locally then the jar file can be directly added to the class path using the Project Properties --> Java build PAth --> Libraries tab --> Add External Jar.

If it is a DC development, the ejb20.jar can be found under the SAP-JEE software component of your track.

Hope it helps.

Regards,

Alka.

Former Member
0 Kudos

Sundar,

get the exception.jar file.

add to your project.

go to properties of your project.

add the file to your classpath by adding the jar file to Java build path.

rebuild your project.

This should work.

Regards,

Yogesh Varma

Former Member
0 Kudos

Hi Sundar,

I think you have created a package namely com.sap.exception inside your project which contains all the exception related files and BaseException class is missing from it.

Please check because this error shows you have missed or not added some class file which is used by your application.

Regards

Narendra

Former Member
0 Kudos

Hi,

You need to add the "exception.jar" file from SAP to the build path. If you are using a Java EE development component then you can add a DC dependency to "ENGINEAPI/com.sap.exception". Otherwise just add it to the build path.

Regards,

Satyajit