From time to time I get this strange error message when I create a new maven project in STS:It has been suggested elsewhere to move this jar from the jdk indicating Apple did something stupid with jdk5, but clearly I don't have this problem in every project– like in Spring Roo projects – so why does it creep up in the first place?Incompatible .class files version in required binaries. Project 'web_flow_mvc' is targeting a 1.5 runtime, but is compiled against 'System/Library/Java/Extensions/AppleScriptEngine.jar' (from the container 'JRE System Library [J2SE-1.5]') which requires a 1.6 runtime
I tried to make STS ignore just this jar, but that doesn't seem possible as it's in the jdk. Can use some kind of filter mechanism to enforce STS to ignore this unnecessary jar?
Or, even better, how do I set up my maven projects so this problem doesn't occur?