on 01-15-2009 2:20 PM
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
82 | |
10 | |
10 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.