Uploaded image for project: 'Batik'
  1. Batik
  2. BATIK-1033

batik does not compile, reports 43 errors

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Cannot Reproduce
    • Affects Version/s: 1.7
    • Fix Version/s: None
    • Component/s: None
    • Labels:
    • Environment:
      Ubuntu 12.10 64 bit, Sun JDK 1.7.0_09

      Description

      trying to compile batik after downloading the sources in a zip file, it results in the following:

      $ ./build.sh compile
      Buildfile: build.xml

      init:
      == Apache Batik 1.7 build file ================================

      JAVA_HOME: /usr/lib/jvm/java-7-oracle
      VM: 23.5-b02, Oracle Corporation

      compile-prepare:
      debug off, optimize on, deprecation on

      compile:
      Compiling 1458 source files to /home/akos/src/aviation/geoserver/src/batik-1.7/classes
      /home/akos/src/aviation/geoserver/src/batik-1.7/sources/org/apache/batik/ext/awt/image/codec/jpeg/JPEGImageWriter.java:30: error: package com.sun.image.codec.jpeg does not exist
      import com.sun.image.codec.jpeg.JPEGCodec;
      ^
      /home/akos/src/aviation/geoserver/src/batik-1.7/sources/org/apache/batik/ext/awt/image/codec/jpeg/JPEGImageWriter.java:31: error: package com.sun.image.codec.jpeg does not exist
      import com.sun.image.codec.jpeg.JPEGEncodeParam;
      ^
      /home/akos/src/aviation/geoserver/src/batik-1.7/sources/org/apache/batik/ext/awt/image/codec/jpeg/JPEGImageWriter.java:32: error: package com.sun.image.codec.jpeg does not exist
      import com.sun.image.codec.jpeg.JPEGImageEncoder;
      ^
      /home/akos/src/aviation/geoserver/src/batik-1.7/sources/org/apache/batik/ext/awt/image/codec/jpeg/JPEGRegistryEntry.java:39: error: package com.sun.image.codec.jpeg does not exist
      import com.sun.image.codec.jpeg.JPEGCodec;
      ^
      /home/akos/src/aviation/geoserver/src/batik-1.7/sources/org/apache/batik/ext/awt/image/codec/jpeg/JPEGRegistryEntry.java:40: error: package com.sun.image.codec.jpeg does not exist
      import com.sun.image.codec.jpeg.JPEGImageDecoder;
      ^
      /home/akos/src/aviation/geoserver/src/batik-1.7/sources/org/apache/batik/ext/awt/image/codec/jpeg/JPEGRegistryEntry.java:41: error: package com.sun.image.codec.jpeg does not exist
      import com.sun.image.codec.jpeg.TruncatedFileException;
      ^
      /home/akos/src/aviation/geoserver/src/batik-1.7/sources/org/apache/batik/ext/awt/image/codec/tiff/TIFFEncodeParam.java:26: error: package com.sun.image.codec.jpeg does not exist
      import com.sun.image.codec.jpeg.JPEGEncodeParam;
      ^
      /home/akos/src/aviation/geoserver/src/batik-1.7/sources/org/apache/batik/ext/awt/image/codec/tiff/TIFFEncodeParam.java:110: error: cannot find symbol
      private JPEGEncodeParam jpegEncodeParam = null;
      ^
      symbol: class JPEGEncodeParam
      location: class TIFFEncodeParam
      /home/akos/src/aviation/geoserver/src/batik-1.7/sources/org/apache/batik/ext/awt/image/codec/tiff/TIFFEncodeParam.java:306: error: cannot find symbol
      public void setJPEGEncodeParam(JPEGEncodeParam jpegEncodeParam) {
      ^
      symbol: class JPEGEncodeParam
      location: class TIFFEncodeParam
      /home/akos/src/aviation/geoserver/src/batik-1.7/sources/org/apache/batik/ext/awt/image/codec/tiff/TIFFEncodeParam.java:318: error: cannot find symbol
      public JPEGEncodeParam getJPEGEncodeParam()

      { ^ symbol: class JPEGEncodeParam location: class TIFFEncodeParam /home/akos/src/aviation/geoserver/src/batik-1.7/sources/org/apache/batik/ext/awt/image/codec/tiff/TIFFImage.java:48: error: package com.sun.image.codec.jpeg does not exist import com.sun.image.codec.jpeg.JPEGCodec; ^ /home/akos/src/aviation/geoserver/src/batik-1.7/sources/org/apache/batik/ext/awt/image/codec/tiff/TIFFImage.java:49: error: package com.sun.image.codec.jpeg does not exist import com.sun.image.codec.jpeg.JPEGDecodeParam; ^ /home/akos/src/aviation/geoserver/src/batik-1.7/sources/org/apache/batik/ext/awt/image/codec/tiff/TIFFImage.java:50: error: package com.sun.image.codec.jpeg does not exist import com.sun.image.codec.jpeg.JPEGImageDecoder; ^ /home/akos/src/aviation/geoserver/src/batik-1.7/sources/org/apache/batik/ext/awt/image/codec/tiff/TIFFImage.java:108: error: cannot find symbol JPEGDecodeParam decodeParam = null; ^ symbol: class JPEGDecodeParam location: class TIFFImage /home/akos/src/aviation/geoserver/src/batik-1.7/sources/org/apache/batik/ext/awt/image/codec/tiff/TIFFImage.java:141: error: cannot find symbol JPEGDecodeParam decodeParam, ^ symbol: class JPEGDecodeParam location: class TIFFImage /home/akos/src/aviation/geoserver/src/batik-1.7/sources/org/apache/batik/ext/awt/image/codec/tiff/TIFFImageEncoder.java:51: error: package com.sun.image.codec.jpeg does not exist import com.sun.image.codec.jpeg.JPEGEncodeParam; ^ /home/akos/src/aviation/geoserver/src/batik-1.7/sources/org/apache/batik/ext/awt/image/codec/tiff/TIFFImageEncoder.java:52: error: package com.sun.image.codec.jpeg does not exist import com.sun.image.codec.jpeg.JPEGQTable; ^ /home/akos/src/aviation/geoserver/src/batik-1.7/sources/org/apache/batik/ext/awt/image/codec/tiff/TIFFImageEncoder.java:1710: error: cannot find symbol private static void modifyEncodeParam(JPEGEncodeParam src, ^ symbol: class JPEGEncodeParam location: class TIFFImageEncoder /home/akos/src/aviation/geoserver/src/batik-1.7/sources/org/apache/batik/ext/awt/image/codec/tiff/TIFFImageEncoder.java:1711: error: cannot find symbol JPEGEncodeParam dst, ^ symbol: class JPEGEncodeParam location: class TIFFImageEncoder /home/akos/src/aviation/geoserver/src/batik-1.7/sources/org/apache/batik/apps/rasterizer/SVGConverter.java:884: warning: [deprecation] toURL() in File has been deprecated URL userDir = new File(System.getProperty("user.dir")).toURL(); ^ /home/akos/src/aviation/geoserver/src/batik-1.7/sources/org/apache/batik/apps/rasterizer/SVGConverterFileSource.java:64: warning: [deprecation] toURL() in File has been deprecated String uri = file.toURL().toString(); ^ /home/akos/src/aviation/geoserver/src/batik-1.7/sources/org/apache/batik/apps/slideshow/Main.java:132: warning: [deprecation] toURL() in File has been deprecated String fileName = files[ i ].toURL().toString(); ^ /home/akos/src/aviation/geoserver/src/batik-1.7/sources/org/apache/batik/apps/slideshow/Main.java:310: warning: [deprecation] toURL() in File has been deprecated URL flURL = new File(file).toURL(); ^ /home/akos/src/aviation/geoserver/src/batik-1.7/sources/org/apache/batik/apps/svgbrowser/JSVGViewerFrame.java:1258: warning: [deprecation] toURL() in File has been deprecated String furl = f.toURL().toString(); ^ /home/akos/src/aviation/geoserver/src/batik-1.7/sources/org/apache/batik/apps/svgbrowser/Main.java:522: warning: [deprecation] toURL() in File has been deprecated policyFile.toURL().toString()); ^ /home/akos/src/aviation/geoserver/src/batik-1.7/sources/org/apache/batik/apps/svgbrowser/Main.java:554: warning: [deprecation] toURL() in File has been deprecated uri = file.toURL().toString(); ^ /home/akos/src/aviation/geoserver/src/batik-1.7/sources/org/apache/batik/apps/svgbrowser/Main.java:853: warning: [deprecation] toURL() in File has been deprecated return f.toURL().toString(); ^ /home/akos/src/aviation/geoserver/src/batik-1.7/sources/org/apache/batik/apps/svgbrowser/Main.java:967: warning: [deprecation] encode(String) in URLEncoder has been deprecated (URLEncoder.encode(lastVisited.get(i).toString())); ^ /home/akos/src/aviation/geoserver/src/batik-1.7/sources/org/apache/batik/apps/svgbrowser/Main.java:1020: warning: [deprecation] decode(String) in URLDecoder has been deprecated lastVisited.addElement(URLDecoder.decode(st.nextToken())); ^ /home/akos/src/aviation/geoserver/src/batik-1.7/sources/org/apache/batik/ext/awt/image/codec/jpeg/JPEGImageWriter.java:63: error: cannot find symbol JPEGImageEncoder encoder = JPEGCodec.createJPEGEncoder(out); ^ symbol: class JPEGImageEncoder location: class JPEGImageWriter /home/akos/src/aviation/geoserver/src/batik-1.7/sources/org/apache/batik/ext/awt/image/codec/jpeg/JPEGImageWriter.java:63: error: cannot find symbol JPEGImageEncoder encoder = JPEGCodec.createJPEGEncoder(out); ^ symbol: variable JPEGCodec location: class JPEGImageWriter /home/akos/src/aviation/geoserver/src/batik-1.7/sources/org/apache/batik/ext/awt/image/codec/jpeg/JPEGImageWriter.java:65: error: cannot find symbol JPEGEncodeParam param = encoder.getDefaultJPEGEncodeParam(bi); ^ symbol: class JPEGEncodeParam location: class JPEGImageWriter /home/akos/src/aviation/geoserver/src/batik-1.7/sources/org/apache/batik/ext/awt/image/codec/jpeg/JPEGRegistryEntry.java:91: error: cannot find symbol JPEGImageDecoder decoder; ^ symbol: class JPEGImageDecoder /home/akos/src/aviation/geoserver/src/batik-1.7/sources/org/apache/batik/ext/awt/image/codec/jpeg/JPEGRegistryEntry.java:92: error: cannot find symbol decoder = JPEGCodec.createJPEGDecoder(is); ^ symbol: variable JPEGCodec /home/akos/src/aviation/geoserver/src/batik-1.7/sources/org/apache/batik/ext/awt/image/codec/jpeg/JPEGRegistryEntry.java:96: error: cannot find symbol }

      catch (TruncatedFileException tfe) {
      ^
      symbol: class TruncatedFileException
      /home/akos/src/aviation/geoserver/src/batik-1.7/sources/org/apache/batik/ext/awt/image/codec/tiff/TIFFEncodeParam.java:308: error: cannot find symbol
      jpegEncodeParam = (JPEGEncodeParam)jpegEncodeParam.clone();
      ^
      symbol: class JPEGEncodeParam
      location: class TIFFEncodeParam
      /home/akos/src/aviation/geoserver/src/batik-1.7/sources/org/apache/batik/ext/awt/image/codec/tiff/TIFFImage.java:149: error: cannot find symbol
      JPEGImageDecoder decoder = decodeParam == null ?
      ^
      symbol: class JPEGImageDecoder
      location: class TIFFImage
      /home/akos/src/aviation/geoserver/src/batik-1.7/sources/org/apache/batik/ext/awt/image/codec/tiff/TIFFImage.java:150: error: cannot find symbol
      JPEGCodec.createJPEGDecoder(jpegStream) :
      ^
      symbol: variable JPEGCodec
      location: class TIFFImage
      /home/akos/src/aviation/geoserver/src/batik-1.7/sources/org/apache/batik/ext/awt/image/codec/tiff/TIFFImage.java:151: error: cannot find symbol
      JPEGCodec.createJPEGDecoder(jpegStream,
      ^
      symbol: variable JPEGCodec
      location: class TIFFImage
      /home/akos/src/aviation/geoserver/src/batik-1.7/sources/org/apache/batik/ext/awt/image/codec/tiff/TIFFImage.java:591: error: cannot find symbol
      JPEGImageDecoder decoder =
      ^
      symbol: class JPEGImageDecoder
      location: class TIFFImage
      /home/akos/src/aviation/geoserver/src/batik-1.7/sources/org/apache/batik/ext/awt/image/codec/tiff/TIFFImage.java:592: error: cannot find symbol
      JPEGCodec.createJPEGDecoder(tableStream);
      ^
      symbol: variable JPEGCodec
      location: class TIFFImage
      /home/akos/src/aviation/geoserver/src/batik-1.7/sources/org/apache/batik/ext/awt/image/codec/tiff/TIFFImageEncoder.java:408: error: cannot find symbol
      JPEGEncodeParam jep = null;
      ^
      symbol: class JPEGEncodeParam
      location: class TIFFImageEncoder
      /home/akos/src/aviation/geoserver/src/batik-1.7/sources/org/apache/batik/ext/awt/image/codec/tiff/TIFFImageEncoder.java:600: error: package com.sun.image.codec.jpeg does not exist
      com.sun.image.codec.jpeg.JPEGEncodeParam jpegEncodeParam = null;
      ^
      /home/akos/src/aviation/geoserver/src/batik-1.7/sources/org/apache/batik/ext/awt/image/codec/tiff/TIFFImageEncoder.java:601: error: package com.sun.image.codec.jpeg does not exist
      com.sun.image.codec.jpeg.JPEGImageEncoder jpegEncoder = null;
      ^
      /home/akos/src/aviation/geoserver/src/batik-1.7/sources/org/apache/batik/ext/awt/image/codec/tiff/TIFFImageEncoder.java:608: error: package com.sun.image.codec.jpeg does not exist
      com.sun.image.codec.jpeg.JPEGDecodeParam.COLOR_ID_UNKNOWN;
      ^
      /home/akos/src/aviation/geoserver/src/batik-1.7/sources/org/apache/batik/ext/awt/image/codec/tiff/TIFFImageEncoder.java:613: error: package com.sun.image.codec.jpeg does not exist
      com.sun.image.codec.jpeg.JPEGDecodeParam.COLOR_ID_GRAY;
      ^
      /home/akos/src/aviation/geoserver/src/batik-1.7/sources/org/apache/batik/ext/awt/image/codec/tiff/TIFFImageEncoder.java:617: error: package com.sun.image.codec.jpeg does not exist
      com.sun.image.codec.jpeg.JPEGDecodeParam.COLOR_ID_RGB;
      ^
      /home/akos/src/aviation/geoserver/src/batik-1.7/sources/org/apache/batik/ext/awt/image/codec/tiff/TIFFImageEncoder.java:621: error: package com.sun.image.codec.jpeg does not exist
      com.sun.image.codec.jpeg.JPEGDecodeParam.COLOR_ID_YCbCr;
      ^
      /home/akos/src/aviation/geoserver/src/batik-1.7/sources/org/apache/batik/ext/awt/image/codec/tiff/TIFFImageEncoder.java:628: error: package com.sun.image.codec.jpeg does not exist
      com.sun.image.codec.jpeg.JPEGCodec.getDefaultJPEGEncodeParam(
      ^
      /home/akos/src/aviation/geoserver/src/batik-1.7/sources/org/apache/batik/ext/awt/image/codec/tiff/TIFFImageEncoder.java:639: error: package com.sun.image.codec.jpeg does not exist
      com.sun.image.codec.jpeg.JPEGCodec.createJPEGEncoder(
      ^
      /home/akos/src/aviation/geoserver/src/batik-1.7/sources/org/apache/batik/ext/awt/image/codec/tiff/TIFFImageEncoder.java:1120: error: package com.sun.image.codec.jpeg does not exist
      com.sun.image.codec.jpeg.JPEGCodec.
      ^
      /home/akos/src/aviation/geoserver/src/batik-1.7/sources/org/apache/batik/ext/awt/image/codec/tiff/TIFFImageEncoder.java:1127: error: package com.sun.image.codec.jpeg does not exist
      com.sun.image.codec.jpeg.JPEGCodec.
      ^
      /home/akos/src/aviation/geoserver/src/batik-1.7/sources/org/apache/batik/ext/awt/image/codec/tiff/TIFFImageEncoder.java:1718: error: cannot find symbol
      JPEGQTable tbl = src.getQTable;
      ^
      symbol: class JPEGQTable
      location: class TIFFImageEncoder
      /home/akos/src/aviation/geoserver/src/batik-1.7/sources/org/apache/batik/svggen/AbstractImageHandlerEncoder.java:122: warning: [deprecation] toURL() in File has been deprecated
      this.urlRoot = imageDirFile.toURL().toString();
      ^
      /home/akos/src/aviation/geoserver/src/batik-1.7/sources/org/apache/batik/transcoder/print/PrintTranscoder.java:731: warning: [deprecation] toURL() in File has been deprecated
      transcoder.transcode(new TranscoderInput(new File(args[i]).toURL().toString()),
      ^
      /home/akos/src/aviation/geoserver/src/batik-1.7/sources/org/apache/batik/transcoder/wmf/tosvg/WMFTranscoder.java:262: warning: [deprecation] toURL() in File has been deprecated
      TranscoderInput input = new TranscoderInput(inputFile.toURL().toString());
      ^
      Note: Some input files use unchecked or unsafe operations.
      Note: Recompile with -Xlint:unchecked for details.
      43 errors
      13 warnings

      BUILD FAILED
      /home/akos/src/aviation/geoserver/src/batik-1.7/build.xml:1008: Compile failed; see the compiler error output for details.

      Total time: 6 seconds

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              darkeye@tyrell.hu Akos Maroy
            • Votes:
              2 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: