[Scilab-Dev] batik-all.jar problem

Masaru Nomiya nomiya at galaxy.dti.ne.jp
Sat Dec 12 07:13:19 CET 2015


Hello,

In the Message; 

  Subject    : Re: [Scilab-Dev] batik-all.jar problem
  Message-ID : <1449480603.2869.15.camel at scilab-enterprises.com>
  Date & Time: Mon, 07 Dec 2015 10:30:03 +0100

Clément David <clement.david at scilab-enterprises.com> has written:

> Hello,

> I upgraded the FOP + Batik + XMLGraphics jars and thus this might
> produce an error.

Ah, I see.

> To compile scilab on your own I strongly suggest you to use our
> thirdparties [1] to avoid any issue.
> For example, there is a well known bug on FOP [2] patched by yours
> truly on the SVN :) .

But svn demands user-id and password.

> If still you want to manage the scilab dependencies by yourself, you
> can use the official binary FOP which will all the batik + FOP +
> XMLGraphics and their dependencies in one package.

I installed these.
Certainly, the configure script runs without any problem.

But, the compilation faied;

[...]
compile:
    [javac] Compiling 8 source files to /tmp/mas/scilab/modules/graphic_export/build/classes
    [javac] /tmp/mas/scilab/modules/graphic_export/src/java/org/scilab/modules/graphic_export/Driver.java
    [javac] /tmp/mas/scilab/modules/graphic_export/src/java/org/scilab/modules/graphic_export/Export.java
    [javac] /tmp/mas/scilab/modules/graphic_export/src/java/org/scilab/modules/graphic_export/ExportBitmap.java
    [javac] /tmp/mas/scilab/modules/graphic_export/src/java/org/scilab/modules/graphic_export/ExportParams.java
    [javac] /tmp/mas/scilab/modules/graphic_export/src/java/org/scilab/modules/graphic_export/FileExporter.java
    [javac] /tmp/mas/scilab/modules/graphic_export/src/java/org/scilab/modules/graphic_export/Utils.java
    [javac] /tmp/mas/scilab/modules/graphic_export/src/java/org/scilab/modules/graphic_export/convertToPPM/ImageEncoder.java
    [javac] /tmp/mas/scilab/modules/graphic_export/src/java/org/scilab/modules/graphic_export/convertToPPM/PPMEncoder.java
    [javac] warning: [path] bad path element "/tmp/mas/scilab/modules/scirenderer/jar/jogl2.jar": no such file or directory
    [javac] warning: [path] bad path element "/tmp/mas/scilab/modules/scirenderer/jar/gluegen2.jar": no such file or directory
    [javac] /tmp/mas/scilab/modules/graphic_export/src/java/org/scilab/modules/graphic_export/Export.java:859: error: method does not override or implement a method from a supertype
    [javac]                     @Override
    [javac]                     ^
    [javac] /tmp/mas/scilab/modules/graphic_export/src/java/org/scilab/modules/graphic_export/Export.java:883: error: method processShape in class PSGraphics2D cannot be applied to given types;
    [javac]                                     return super.processShape(s, b);
    [javac]                                                 ^
    [javac]   required: Shape
    [javac]   found: Shape,boolean
    [javac]   reason: actual and formal argument lists differ in length
    [javac] /tmp/mas/scilab/modules/graphic_export/src/java/org/scilab/modules/graphic_export/Export.java:886: error: method processShape in class PSGraphics2D cannot be applied to given types;
    [javac]                                 return super.processShape(s, b);
    [javac]                                             ^
    [javac]   required: Shape
    [javac]   found: Shape,boolean
    [javac]   reason: actual and formal argument lists differ in length
    [javac] /tmp/mas/scilab/modules/graphic_export/src/java/org/scilab/modules/graphic_export/Export.java:894: error: method processShape in class PSGraphics2D cannot be applied to given types;
    [javac]                                     return super.processShape(s, b);
    [javac]                                                 ^
    [javac]   required: Shape
    [javac]   found: Shape,boolean
    [javac]   reason: actual and formal argument lists differ in length
    [javac] /tmp/mas/scilab/modules/graphic_export/src/java/org/scilab/modules/graphic_export/Export.java:902: error: method processShape in class PSGraphics2D cannot be applied to given types;
    [javac]                         return super.processShape(s, b);
    [javac]                                     ^
    [javac]   required: Shape
    [javac]   found: Shape,boolean
    [javac]   reason: actual and formal argument lists differ in length
    [javac] /tmp/mas/scilab/modules/graphic_export/src/java/org/scilab/modules/graphic_export/Export.java:1031: error: method does not override or implement a method from a supertype
    [javac]                     @Override
    [javac]                     ^
    [javac] /tmp/mas/scilab/modules/graphic_export/src/java/org/scilab/modules/graphic_export/Export.java:1055: error: method processShape in class PSGraphics2D cannot be applied to given types;
    [javac]                                     return super.processShape(s, b);
    [javac]                                                 ^
    [javac]   required: Shape
    [javac]   found: Shape,boolean
    [javac]   reason: actual and formal argument lists differ in length
    [javac] /tmp/mas/scilab/modules/graphic_export/src/java/org/scilab/modules/graphic_export/Export.java:1058: error: method processShape in class PSGraphics2D cannot be applied to given types;
    [javac]                                 return super.processShape(s, b);
    [javac]                                             ^
    [javac]   required: Shape
    [javac]   found: Shape,boolean
    [javac]   reason: actual and formal argument lists differ in length
    [javac] /tmp/mas/scilab/modules/graphic_export/src/java/org/scilab/modules/graphic_export/Export.java:1066: error: method processShape in class PSGraphics2D cannot be applied to given types;
    [javac]                                     return super.processShape(s, b);
    [javac]                                                 ^
    [javac]   required: Shape
    [javac]   found: Shape,boolean
    [javac]   reason: actual and formal argument lists differ in length
    [javac] /tmp/mas/scilab/modules/graphic_export/src/java/org/scilab/modules/graphic_export/Export.java:1074: error: method processShape in class PSGraphics2D cannot be applied to given types;
    [javac]                         return super.processShape(s, b);
    [javac]                                     ^
    [javac]   required: Shape
    [javac]   found: Shape,boolean
    [javac]   reason: actual and formal argument lists differ in length
    [javac] /tmp/mas/scilab/modules/graphic_export/src/java/org/scilab/modules/graphic_export/Export.java:1099: warning: [unchecked] unchecked cast
    [javac]                 g2dClass = (Class<Graphics2D>) Class.forName("org.freehep.graphicsio.emf.EMFGraphics2D");
    [javac]                                                             ^
    [javac]   required: Class<Graphics2D>
    [javac]   found:    Class<CAP#1>
    [javac]   where CAP#1 is a fresh type-variable:
    [javac]     CAP#1 extends Object from capture of ?
    [javac] /tmp/mas/scilab/modules/graphic_export/src/java/org/scilab/modules/graphic_export/Export.java:1104: warning: [rawtypes] found raw type: Constructor
    [javac]             final Constructor[] ctors = g2dClass.getDeclaredConstructors();
    [javac]                   ^
    [javac]   missing type arguments for generic class Constructor<T>
    [javac]   where T is a type-variable:
    [javac]     T extends Object declared in class Constructor
    [javac] /tmp/mas/scilab/modules/graphic_export/src/java/org/scilab/modules/graphic_export/Export.java:1105: warning: [rawtypes] found raw type: Constructor
    [javac]             Constructor ctor = null;
    [javac]             ^
    [javac]   missing type arguments for generic class Constructor<T>
    [javac]   where T is a type-variable:
    [javac]     T extends Object declared in class Constructor
    [javac] /tmp/mas/scilab/modules/graphic_export/src/java/org/scilab/modules/graphic_export/Export.java:1119: warning: [unchecked] unchecked conversion
    [javac]                 g2dCtor = ctor;
    [javac]                           ^
    [javac]   required: Constructor<Graphics2D>
    [javac]   found:    Constructor
    [javac] /tmp/mas/scilab/modules/graphic_export/src/java/org/scilab/modules/graphic_export/ExportBitmap.java:78: warning: [rawtypes] found raw type: Iterator
    [javac]         Iterator iter = ImageIO.getImageWritersByFormatName("jpeg");
    [javac]         ^
    [javac]   missing type arguments for generic class Iterator<E>
    [javac]   where E is a type-variable:
    [javac]     E extends Object declared in interface Iterator
    [javac] /tmp/mas/scilab/modules/graphic_export/src/java/org/scilab/modules/graphic_export/convertToPPM/ImageEncoder.java:79: warning: [rawtypes] found raw type: Hashtable
    [javac]     protected Hashtable props = null;
    [javac]               ^
    [javac]   missing type arguments for generic class Hashtable<K,V>
    [javac]   where K,V are type-variables:
    [javac]     K extends Object declared in class Hashtable
    [javac]     V extends Object declared in class Hashtable
    [javac] /tmp/mas/scilab/modules/graphic_export/src/java/org/scilab/modules/graphic_export/convertToPPM/ImageEncoder.java:172: warning: [rawtypes] found raw type: Hashtable
    [javac]     public void setProperties(Hashtable props) {
    [javac]                               ^
    [javac]   missing type arguments for generic class Hashtable<K,V>
    [javac]   where K,V are type-variables:
    [javac]     K extends Object declared in class Hashtable
    [javac]     V extends Object declared in class Hashtable
    [javac] /tmp/mas/scilab/modules/graphic_export/src/java/org/scilab/modules/graphic_export/convertToPPM/PPMEncoder.java:56: warning: [rawtypes] found raw type: List
    [javac]     private List comments = new ArrayList();
    [javac]             ^
    [javac]   missing type arguments for generic class List<E>
    [javac]   where E is a type-variable:
    [javac]     E extends Object declared in interface List
    [javac] /tmp/mas/scilab/modules/graphic_export/src/java/org/scilab/modules/graphic_export/convertToPPM/PPMEncoder.java:56: warning: [rawtypes] found raw type: ArrayList
    [javac]     private List comments = new ArrayList();
    [javac]                                 ^
    [javac]   missing type arguments for generic class ArrayList<E>
    [javac]   where E is a type-variable:
    [javac]     E extends Object declared in class ArrayList
    [javac] /tmp/mas/scilab/modules/graphic_export/src/java/org/scilab/modules/graphic_export/convertToPPM/PPMEncoder.java:81: warning: [unchecked] unchecked call to add(E) as a member of the raw type List
    [javac]         comments.add(comment);
    [javac]                     ^
    [javac]   where E is a type-variable:
    [javac]     E extends Object declared in interface List
    [javac] /tmp/mas/scilab/modules/graphic_export/src/java/org/scilab/modules/graphic_export/convertToPPM/PPMEncoder.java:86: warning: [rawtypes] found raw type: Iterator
    [javac]         for (Iterator i = comments.iterator(); i.hasNext();) {
    [javac]              ^
    [javac]   missing type arguments for generic class Iterator<E>
    [javac]   where E is a type-variable:
    [javac]     E extends Object declared in interface Iterator
    [javac] 10 errors
    [javac] 13 warnings

BUILD FAILED
/tmp/mas/scilab/modules/prebuildjava/build.xml:59: The following error occurred while executing this line:
/tmp/mas/scilab/build.incl.xml:107: Compile failed; see the compiler error output for details.

Total time: 2 seconds
make[2]: *** [java] Error 1
make[2]: Leaving directory `/tmp/mas/scilab/modules/prebuildjava'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/mas/scilab/modules'
make: *** [all-recursive] Error 1

Why failed? By fop's bug?

Sorry for bother you.

THanks,

---
┏━━┓彡 Masaru Nomiya             mail-to: nomiya @ galaxy.dti.ne.jp
┃\/彡
┗━━┛ "Bill! You married with Computers.
          Not with Me!"
         "No..., with money."



More information about the dev mailing list