Skip to Content
author's profile photo Former Member
Former Member

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

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jan 15, 2009 at 10:11 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 16, 2009 at 04:05 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 16, 2009 at 05:30 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 16, 2009 at 09:48 AM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.