简体   繁体   中英

Error building grails app

I have an Java version 1.6.0_37 and Grails 1.3.9 . When building my app I get a following error:

Compilation error: java.lang.UnsupportedClassVersionError: org/codehaus/groovy/grails/plugins/springsecurity/SpringSecurityUtils : Unsupported major.minor version 51.0

I've found out that the code 51 means a conflict with Java version 1.7. But I removed that Java version.

How do I fix this?

You need to recompile the org/codehaus/groovy/grails/plugins/springsecurity/SpringSecurityUtils class under JDK 1.6. It's source can be found here .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM