Wednesday, November 20, 2013

java: bad version number

got this when i tried running my newly complied java program:
Exception in thread "main" java.lang.UnsupportedClassVersionError: Bad version number in .class file

i checked my java compiler version:
# javac -version
javac 1.6.0_11


then i checked my java runtime version:
# java -version
java version "1.5.0_06"


toink!

remember to check and use correct/similar compiler and runtime versions.

No comments:

Post a Comment

SSH : No matching host key type found. Their offer: ssh-rsa,ssh-dss

Got this while connecting to my mikrotik router via ssh   Unable to negotiate with <ip address> port <ssh port>: no matching hos...