On 2010-08-09 22:46, Deepak Bhole wrote: > * Marcin Zajączkowski <mszpak@xxxxx> [2010-08-08 04:26]: >> Hi, >> >> >> I have a java desktop application which needs java with Swing. In spec I >> was using java-devel, but recently I was noticed by one of the users >> that it's resolved (in mock build on Fedora 11) as java-1.5.0-gcj-devel >> (which doesn't have swing). >> I could change java-devel to java-devel-openjdk, but it would cause >> problems with binary Java package from Sun. >> >> Do you have suggestion what could be used to get java-devel compatible >> with Swing library? >> >> > > What is the error you are getting? GCJ has swing classes: > > $ jar tf /usr/lib/jvm/java-1.5.0-gcj/jre/lib/rt.jar | grep -i javax/swing | wc -l > 1351 You are right. My post was based on a report one of the users of Jubler package. I personally don't use gcj. I recompiled in on Fedora 12 with java-1.5.0-gcj-1.5.0.0-29.fc12.x86_64 and I've got: [javac] 5. ERROR in /home/fedora/szpak/rpmbuild/BUILD/Jubler-4.1.3/src/com/panayotis/jubler/StaticJubler.jav [javac] a (at line 84) [javac] new_window.setLocationByPlatform(false); [javac] ^^^^^^^^^^^^^^^^^^^^^ [javac] The method setLocationByPlatform(boolean) is undefined for the type Jubler Class Jubler extends JFrame. That method was introduced in Java 1.5. I didn't dig deeper, but probably it's not implemented in gcj. I will try with java-devel>=1.6.0. Sun binary package 0:1.6.0 and OpenJDK 1:1.6.0 should satisfy that requirement and package should be built properly in mock. There could be problem for people with Sun Java 1.5, but it is after EOL, so should be acceptable. Thanks for your replies Marcin -- java-devel mailing list java-devel@xxxxxxxxxxxxxxxxxxxxxxx https://admin.fedoraproject.org/mailman/listinfo/java-devel