Question

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?

Was it helpful?

Solution

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?
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top