Access restriction: The type ‘Application’ is not API (restriction on required library rt.jar)
Here is the code: here is the error: eclipse says this: Access restriction: The type ‘Application’ is not API (restriction on required library ‘/Library/Java/JavaVirtualMachines/jdk1.8.0_11.jdk/Contents/Home/jre/lib/rt.jar’)