From: Nathaniel G. A. <nat...@ya...> - 2002-12-10 01:55:03
|
this is a design bug with the encoders that was just caught recently. The problem is the encode method is overloaded so the compiler does a type check on each signature to find the correct method to invoke. So there is a dependency on the HttpServletResponse Object. This should only be a compile time dependency and not a runntime dependency. This has been fixed in the 0.7 release by changing the name of the encode method which takes the HttpServletResponse Object. You could alter the source of the JPEGEncoder13 and comment out that method or change its name as a short term fix. I guess i could create a patch for this one thing if you really need it. Sorry for the inconvenience. ---nathaniel --- Aaron Jensen <aa...@vi...> wrote: > This line of code: > > JPEGEncoder.encode( axisChart, 1.0f, new > FileOutputStream("/Users/atjensen/Desktop/charg.jpg") ); > > is actually trying to call: > > JPEGEncoder.encode( org.jCharts.axisChart.AxisChart, float, > javax.servlet.http.HttpServletResponse httpServletResponse ); > > > When I compile I get the following error: > > vpStats/charts/Last30Days.java:42: cannot access > javax.servlet.http.HttpServletResponse > file javax/servlet/http/HttpServletResponse.class not found > JPEGEncoder.encode( axisChart, 1.0f, new > FileOutputStream("/Users/atjensen/Desktop/charg.jpg") ); > ^ > > Huh? I'm not trying to use the HttpServletResponse method, but the > OutputStream method. > > If you need my code, or more information, feel free to ask. > > <:> Aaron > ===== An easy read on your Digital Rights Disappearing [http://newsforge.com/newsforge/02/10/21/1449250.shtml?tid=19] Broadcast Protection Discussion Group [http://bpdg.blogs.eff.org/] Senator Hollings receives a pathetically piffling $278,534 to his coffers from the TV, movies and music businesses [http://www.theinquirer.net/?article=4689] __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com |