I compiled with 1.7 jdk a webApp it works fine at local server but when I upload to my VPS I got an error "UnsuportedClassVersionError Unsuported major.minor version 51.0" my server has jdk 1.7 too so I don't know whaty's wrong.

local: Java -version java version 1.7.0_21

VPS java -version java version 1.7.0_03

有帮助吗?

解决方案

I don't know if it's a matter of the difference of the latest 2 numbers, but I compilde again with 1.6 and the web apps works fine.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top