I am trying to create an example with JFrame, but when i write JFrame in eclipse, it gets underscored by red line as if it is not defined, how can I solve this issue:
code:
package openCVExamples;
public class OpenCVTest {
public static void main(String[] args) {
JFrame j = new JFrame();
}
}
update:
when hover over JFrame keyword, eclipse says
:Access restriction: the type
JFrame is not accessible due to restriction on required library
c:?\programfiles\java\jre1.8.0_40\lib\rt.jar