Compiling with Oracle JDK 1.6 works fine. Wicket 1.4/1.5 *have* to support JDK 1.5 so we can use anything specific for JDK 1.6.
Andrea, I just changed it to catch Exception instead of IOException. Should be OK for OpenJDK now. On Sun, Dec 5, 2010 at 6:56 PM, Carl-Eric Menzel <[email protected]>wrote: > Wicket won't compile with OpenJDK6. You have to use an 1.5 JDK. I had a > proposal to use Maven-Toolchains to solve this, but now I'm using a > custom "mvn15" script that uses JDK1.5, like Martin Grigorov (I think) > suggested. > > Maybe the JDK1.5 requirement ought to be documented somewhere. > > Carl-Eric > www.wicketbuch.de > > On Sun, 5 Dec 2010 18:25:41 +0100 > Martin Grigorov <[email protected]> wrote: > > > com.sun.image.codec.jpeg.JPEGImageEncoder.encode(BufferedImage) throws > > IOException > > with Oracle JDK it prints warning about the usage of com.sun.* > > > > On Sun, Dec 5, 2010 at 6:18 PM, andrea del bene > > <[email protected]>wrote: > > > > > Hi, > > > > > > I'm having some troubles trying to compile Wicket main trunk with > > > OpenJdk under Ubuntu 10.10 64 bit. Is there any problem with this > > > Java distribution? The compilation error a get is relative to class > > > ResourceTestPage.java at > > > > testing/wicket-threadtest/src/main/java/org/apache/wicket/threadtest/apps/app1/ > > > The error message is the following: > > > > > > > testing/wicket-threadtest/src/main/java/org/apache/wicket/threadtest/apps/app1/ResourceTestPage.java:[78,4] > > > exception java.io.IOException is never thrown in body of > > > corresponding try statement > > > > > > Everything goes fine under my virtual box with WinXp 32 with Oracle > > > JDK. > > > > > > Thank you. > > > >
