Re: compile errors
Hi, BTW: I'm using Java 1.5 to build. If you are using 1.5 try to set the compiler option source to 1.4, hopefully it solve your problem. Regards Tonny Kohar -- Sketsa SVG Graphics Editor http://www.kiyut.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: compile errors
Denis Bohm wrote: I downloaded the Batik source code and am getting a lot of compile errors. For example, in StaticRenderer: C:\xml-batik\sources\org\apache\batik\gvt\renderer\StaticRenderer.java:156: cannot find symbol symbol : constructor RenderingHints(java.awt.RenderingHints) location: class java.awt.RenderingHints Looking at the 1.4.2 docs there isn't any constructor for RenderingHints that takes a RenderingHints parameter. I must be missing something obvious. Anyone see what it is? Yes, RenderingHints implements the 'Map' interface which the RenderingHints class does take as a constructor arg. BTW: I'm using Java 1.5 to build. This is the problem, among other smaller problems JDK 1.5 has a built in DOM 3 Core org.w3.dom package, our trunk DOM implementation does not currently implement DOM 3 (although Cameron has done this in the svg12 branch). Take Tonny's suggestion and compile in JDK 1.4 compat mode. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: compile errors
Oh, I see. In Java 1.5 the RenderingHints constructor takes a MapRenderingHints.Key, ? arg, not just a Map. Is there a plan to move batik to Java 1.5 at some point? By compiling in JDK 1.4 compat mode, I assume you mean using javac -source 1.4? That seems to take care of the above issue, but the DOM3 issue remain. Sounds like I need to use JDK 1.4. Or get the cvs svg12 branch. Thomas DeWeese wrote: Denis Bohm wrote: I downloaded the Batik source code and am getting a lot of compile errors. For example, in StaticRenderer: C:\xml-batik\sources\org\apache\batik\gvt\renderer\StaticRenderer.java:156: cannot find symbol symbol : constructor RenderingHints(java.awt.RenderingHints) location: class java.awt.RenderingHints Looking at the 1.4.2 docs there isn't any constructor for RenderingHints that takes a RenderingHints parameter. I must be missing something obvious. Anyone see what it is? Yes, RenderingHints implements the 'Map' interface which the RenderingHints class does take as a constructor arg. BTW: I'm using Java 1.5 to build. This is the problem, among other smaller problems JDK 1.5 has a built in DOM 3 Core org.w3.dom package, our trunk DOM implementation does not currently implement DOM 3 (although Cameron has done this in the svg12 branch). Take Tonny's suggestion and compile in JDK 1.4 compat mode. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
compile errors
I downloaded the Batik source code and am getting a lot of compile errors. For example, in StaticRenderer: public StaticRenderer(RenderingHints rh, AffineTransform at){ renderingHints = new RenderingHints(rh); usr2dev = new AffineTransform(at); } C:\xml-batik\sources\org\apache\batik\gvt\renderer\StaticRenderer.java:156: cannot find symbol symbol : constructor RenderingHints(java.awt.RenderingHints) location: class java.awt.RenderingHints Looking at the 1.4.2 docs there isn't any constructor for RenderingHints that takes a RenderingHints parameter. I must be missing something obvious. Anyone see what it is? BTW: I'm using Java 1.5 to build. Thanks, Denis - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]