amazon web services - MTurk Command Line Tools Error: Bad version number in .class file -
i using mechanical turk command line tools on windows. when try run command (e.g., getbalance, createqualificationtype), following error:
exception in thread "main" java.lang.unsupportedclassversionerror: bad version number in .class file
any clues @ fix appreciated!!
i have tried updating key , secret key no avail.
note: can commands using -help, cannot run commands themselves.
this error occurs whether running either jre 1.5.0_06-b05, 1.5.0_22-b03, or 1.7.0_17-b02. command line tools documentation states, "you must have java jre 1.5.x (jre 5). command line tools not 100% compatible jre 6."
since using version of command line tools packaged jre, have uninstalled jre. same error.
unsupportedclassversionerror
means trying use java class compiled newer jdk on older java runtime environment. example, have class compiled jdk 7, , trying use on java 6 or older runtime environment.
java downwards compatible; newer java runtime environments can run java classes compiled older versions without modifications, not other way around.
check version class trying use compiled, , use java runtime environment same version or newer run class.
you can check java runtime environment , jdk versions with:
java -version javac -version
Comments
Post a Comment