Rohit Bajaj
asked on
The type java.lang.Class cannot be resolved. It is indirectly referenced from required .class files
Hi,
I have the following file :
I am using eclipse to view this project.
I get red mark at the package line.
The error is :
he type java.lang.Class cannot be resolved. It is indirectly referenced from required .class files
What is the reason for this ?
Thanks
I have the following file :
package com.yatra.extremesearch.app;
import org.apache.log4j.Logger;
import org.springframework.context.support.ClassPathXmlApplicationContext;
public class ExtremeSearchApp {
private static final Logger logger = Logger.getLogger(ExtremeSearchApp.class);
public static void main(String args[]){
try {
logger.info("=====Starting Extreme search======");
new ClassPathXmlApplicationContext("classpath*:spring/root-context.xml");
} catch (Exception e) {
logger.error(e.getMessage());
}
}
}
I am using eclipse to view this project.
I get red mark at the package line.
The error is :
he type java.lang.Class cannot be resolved. It is indirectly referenced from required .class files
What is the reason for this ?
Thanks
Do you have a JDK path properly configured in Eclipse Java properties?
ASKER
I think it is properly configured.
I just removed entries from java build path libraries and landed myself into this trouble.
Anyway how do i check it ?
I just removed entries from java build path libraries and landed myself into this trouble.
Anyway how do i check it ?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
how do i add the entry for jre in eclipse build path library tab
ASKER
done
:)