Привет! Я использовал модуль javase
zxing.Я прочитал zxing начало работы , и я попытался скомпилировать core
и javase-модули (с JDK 1.5.0_22)
Я запускаю ant-скрипт в основной папке, у меня есть эта ошибка:
[javac] javac: invalid target release: 6
Если я изменю сценарий ant build.xml
в основной папке, заменив target=6
на target=5
и source=6
на source=5
У меня 42 ошибки компиляции:
init:
build:
[javac] Compiling 169 source files to D:\ZXing-2.0\zxing-2.0\core\build
[javac] D:\ZXing-2.0\zxing-2.0\core\src\com\google\zxing\MultiFormatReader.j
ava:52: method does not override a method from its superclass
[javac] @Override
[javac] ^
[javac] D:\ZXing-2.0\zxing-2.0\core\src\com\google\zxing\MultiFormatReader.j
ava:66: method does not override a method from its superclass
[javac] @Override
[javac] ^
[javac] D:\ZXing-2.0\zxing-2.0\core\src\com\google\zxing\MultiFormatReader.j
ava:157: method does not override a method from its superclass
[javac] @Override
[javac] ^
[javac] D:\ZXing-2.0\zxing-2.0\core\src\com\google\zxing\MultiFormatWriter.j
ava:40: method does not override a method from its superclass
[javac] @Override
[javac] ^
[javac] D:\ZXing-2.0\zxing-2.0\core\src\com\google\zxing\MultiFormatWriter.j
ava:48: method does not override a method from its superclass
[javac] @Override
[javac] ^
[javac] D:\ZXing-2.0\zxing-2.0\core\src\com\google\zxing\aztec\AztecReader.j
ava:52: method does not override a method from its superclass
[javac] @Override
[javac] ^
[javac] D:\ZXing-2.0\zxing-2.0\core\src\com\google\zxing\aztec\AztecReader.j
ava:57: method does not override a method from its superclass
[javac] @Override
[javac] ^
[javac] D:\ZXing-2.0\zxing-2.0\core\src\com\google\zxing\aztec\AztecReader.j
ava:89: method does not override a method from its superclass
[javac] @Override
[javac] ^
[javac] D:\ZXing-2.0\zxing-2.0\core\src\com\google\zxing\datamatrix\DataMatr
ixReader.java:57: method does not override a method from its superclass
[javac] @Override
[javac] ^
[javac] D:\ZXing-2.0\zxing-2.0\core\src\com\google\zxing\datamatrix\DataMatr
ixReader.java:62: method does not override a method from its superclass
[javac] @Override
[javac] ^
[javac] D:\ZXing-2.0\zxing-2.0\core\src\com\google\zxing\datamatrix\DataMatr
ixReader.java:89: method does not override a method from its superclass
[javac] @Override
[javac] ^
[javac] D:\ZXing-2.0\zxing-2.0\core\src\com\google\zxing\datamatrix\detector
\Detector.java:444: method does not override a method from its superclass
[javac] @Override
[javac] ^
[javac] D:\ZXing-2.0\zxing-2.0\core\src\com\google\zxing\maxicode\MaxiCodeRe
ader.java:58: method does not override a method from its superclass
[javac] @Override
[javac] ^
[javac] D:\ZXing-2.0\zxing-2.0\core\src\com\google\zxing\maxicode\MaxiCodeRe
ader.java:63: method does not override a method from its superclass
[javac] @Override
[javac] ^
[javac] D:\ZXing-2.0\zxing-2.0\core\src\com\google\zxing\maxicode\MaxiCodeRe
ader.java:84: method does not override a method from its superclass
[javac] @Override
[javac] ^
[javac] D:\ZXing-2.0\zxing-2.0\core\src\com\google\zxing\multi\ByQuadrantRea
der.java:46: method does not override a method from its superclass
[javac] @Override
[javac] ^
[javac] D:\ZXing-2.0\zxing-2.0\core\src\com\google\zxing\multi\ByQuadrantRea
der.java:52: method does not override a method from its superclass
[javac] @Override
[javac] ^
[javac] D:\ZXing-2.0\zxing-2.0\core\src\com\google\zxing\multi\ByQuadrantRea
der.java:95: method does not override a method from its superclass
[javac] @Override
[javac] ^
[javac] D:\ZXing-2.0\zxing-2.0\core\src\com\google\zxing\multi\GenericMultip
leBarcodeReader.java:55: method does not override a method from its superclass
[javac] @Override
[javac] ^
[javac] D:\ZXing-2.0\zxing-2.0\core\src\com\google\zxing\multi\GenericMultip
leBarcodeReader.java:60: method does not override a method from its superclass
[javac] @Override
[javac] ^
[javac] D:\ZXing-2.0\zxing-2.0\core\src\com\google\zxing\qrcode\QRCodeReader
.java:61: method does not override a method from its superclass
[javac] @Override
[javac] ^
[javac] D:\ZXing-2.0\zxing-2.0\core\src\com\google\zxing\qrcode\QRCodeReader
.java:66: method does not override a method from its superclass
[javac] @Override
[javac] ^
[javac] D:\ZXing-2.0\zxing-2.0\core\src\com\google\zxing\qrcode\QRCodeReader
.java:93: method does not override a method from its superclass
[javac] @Override
[javac] ^
[javac] D:\ZXing-2.0\zxing-2.0\core\src\com\google\zxing\multi\qrcode\QRCode
MultiReader.java:47: method does not override a method from its superclass
[javac] @Override
[javac] ^
[javac] D:\ZXing-2.0\zxing-2.0\core\src\com\google\zxing\multi\qrcode\QRCode
MultiReader.java:52: method does not override a method from its superclass
[javac] @Override
[javac] ^
[javac] D:\ZXing-2.0\zxing-2.0\core\src\com\google\zxing\qrcode\detector\Fin
derPatternFinder.java:557: method does not override a method from its superclass
[javac] @Override
[javac] ^
[javac] D:\ZXing-2.0\zxing-2.0\core\src\com\google\zxing\qrcode\detector\Fin
derPatternFinder.java:573: method does not override a method from its superclass
[javac] @Override
[javac] ^
[javac] D:\ZXing-2.0\zxing-2.0\core\src\com\google\zxing\multi\qrcode\detect
or\MultiFinderPatternFinder.java:80: method does not override a method from its
superclass
[javac] @Override
[javac] ^
[javac] D:\ZXing-2.0\zxing-2.0\core\src\com\google\zxing\oned\OneDReader.jav
a:47: method does not override a method from its superclass
[javac] @Override
[javac] ^
[javac] D:\ZXing-2.0\zxing-2.0\core\src\com\google\zxing\oned\OneDReader.jav
a:53: method does not override a method from its superclass
[javac] @Override
[javac] ^
[javac] D:\ZXing-2.0\zxing-2.0\core\src\com\google\zxing\oned\OneDReader.jav
a:87: method does not override a method from its superclass
[javac] @Override
[javac] ^
[javac] D:\ZXing-2.0\zxing-2.0\core\src\com\google\zxing\oned\OneDimensional
CodeWriter.java:40: method does not override a method from its superclass
[javac] @Override
[javac] ^
[javac] D:\ZXing-2.0\zxing-2.0\core\src\com\google\zxing\oned\OneDimensional
CodeWriter.java:53: method does not override a method from its superclass
[javac] @Override
[javac] ^
[javac] D:\ZXing-2.0\zxing-2.0\core\src\com\google\zxing\oned\UPCAWriter.jav
a:36: method does not override a method from its superclass
[javac] @Override
[javac] ^
[javac] D:\ZXing-2.0\zxing-2.0\core\src\com\google\zxing\oned\UPCAWriter.jav
a:42: method does not override a method from its superclass
[javac] @Override
[javac] ^
[javac] D:\ZXing-2.0\zxing-2.0\core\src\com\google\zxing\pdf417\PDF417Reader
.java:53: method does not override a method from its superclass
[javac] @Override
[javac] ^
[javac] D:\ZXing-2.0\zxing-2.0\core\src\com\google\zxing\pdf417\PDF417Reader
.java:58: method does not override a method from its superclass
[javac] @Override
[javac] ^
[javac] D:\ZXing-2.0\zxing-2.0\core\src\com\google\zxing\pdf417\PDF417Reader
.java:76: method does not override a method from its superclass
[javac] @Override
[javac] ^
[javac] D:\ZXing-2.0\zxing-2.0\core\src\com\google\zxing\pdf417\encoder\PDF4
17Writer.java:32: method does not override a method from its superclass
[javac] @Override
[javac] ^
[javac] D:\ZXing-2.0\zxing-2.0\core\src\com\google\zxing\pdf417\encoder\PDF4
17Writer.java:41: method does not override a method from its superclass
[javac] @Override
[javac] ^
[javac] D:\ZXing-2.0\zxing-2.0\core\src\com\google\zxing\qrcode\QRCodeWriter
.java:40: method does not override a method from its superclass
[javac] @Override
[javac] ^
[javac] D:\ZXing-2.0\zxing-2.0\core\src\com\google\zxing\qrcode\QRCodeWriter
.java:47: method does not override a method from its superclass
[javac] @Override
[javac] ^
[javac] Note: Some input files use unchecked or unsafe operations.
[javac] Note: Recompile with -Xlint:unchecked for details.
[javac] 42 errors
BUILD FAILED
D:\ZXing-2.0\zxing-2.0\core\build.xml:37: Compile failed; see the compiler error
output for details.
Спасибо