on 07-31-2006 7:52 AM
Hi All
I trying to do a small java application in JDO.
I have written all required classes.But Still i am getting
the follwing error while running the Ant on build.xml
Buildfile: C:\WokSpaceForB1\GettingStartedJDOWeb\webContent\build.xml
enhance:
enhance.Employee:
[java] java.lang.NoClassDefFoundError: com/sap/tc/logging/LogController
[java] at com.sap.jdo.common.model.jdo.JDOModelFactoryImpl.createJDOModel(JDOModelFactoryImpl.java:66)
[java] at com.sap.jdo.enhancer.meta.model.EnhancerMetaDataJDOModelImpl.<init>(EnhancerMetaDataJDOModelImpl.java:64)
[java] at com.sap.jdo.enhancer.meta.model.EnhancerMetaDataJDOModelImpl.<init>(EnhancerMetaDataJDOModelImpl.java:85)
[java] at com.sap.jdo.enhancer.Main.initEnhancerMetaData(Main.java:446)
[java] at com.sap.jdo.enhancer.Main.createEnhancer(Main.java:461)
[java] at com.sap.jdo.enhancer.Main.process(Main.java:152)
[java] at com.sap.jdo.enhancer.Main.main(Main.java:117)
[java] Exception in thread "main"
[java] BUILD FAILED: file:C:/WokSpaceForB1/GettingStartedJDOWeb/webContent/build.xml:31: Java returned: 1
Total time: 1 second
Hi satya,
Seems to be a classpath problem.
As the stack trace says, the compiler cannot find the class <b>com/sap/tc/logging/LogController</b>. Please check the classpath of your project and see if the logging jars are added or not(Project->Properties->Java Build Path). If it is not there then you need to do that.
(Search for <b>logging.jar</b> in your NWDS installation directory and add it.)
Regards,
Guru.
PS: Reward points for helpfull replies.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Guruvinder
The jar file logging.jar is in many packages in my
NWDS installed directory.In that which have to add.I think
from any package we can add the jar file.
Even though i am adding the jar file to the project
still the same error is comming
ragards
Satyam
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Satya,
Goto Project->Properties->Java Build Path-> Add External Jar Files-> add the logging.jar that is present in the \plugins\com.sap.tc.ap\ folder.
The exact path on my machine was,
D:\Program Files\JDT\eclipse\plugins\com.sap.tc.ap\comp\SAP-JEE\DCs\sap.com\tc\logging\_comp\gen\default\public\default\lib\java\logging.jar
I hope this will solve the problem.
Regards,
Guru.
PS:Reward points for helpfull replies.
User | Count |
---|---|
84 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.