My bean gets a class injected which will be used in the (Java 6) owner class. However, the injected class is compiled in Java 7.

I currently get a Unsupported major.minor version 51.0 error, indicating this isn't possible. However, I've been wrong before. Any insight/sources on this subject?

有帮助吗?

解决方案

What you are trying to do is actually not possible. If you have no more alternative than using that class, consider one of these two options:

  • Is it possible for you to update your java production environment to a more recent version?
  • Is it possible for you to decompile your injected java class and build it for java 6?
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top