rawhide java versioning issue?

Deepak Bhole dbhole at redhat.com
Tue Nov 29 14:02:38 UTC 2011


* David Airlie <airlied at redhat.com> [2011-11-29 05:36]:
> so I was trying to fix xorg-x11-docs, which uses fop which uses java, which means I've no idea.
> 
> http://koji.fedoraproject.org/koji/taskinfo?taskID=3549524
> 
> The main error is below so I suspect the problem is that some apache/avalon framework jar file is build with the 1.7 jdk but the buildroot installed the 1.6 jdk. Should something have its dependency bumped?
>

Hi David,

Java 7 needs to become the default JDK for rawhide. We will start working
on this over the coming few days. Until done, Java stuff might be broken
here and there.

As a workaround, you can manually install java-1.7.0-openjdk{,-devel}
and it should be fine.

Cheers,
Deepak

> Dave.
> 
> usr/bin/xmlto: line 316: local: can only be used in a function
>   GEN    fonts.ps
> /usr/bin/xmlto: line 316: local: can only be used in a function
> Making portrait pages on A4 paper (210mmx297mm)
> java virtual machine used: /usr/lib/jvm/jre/bin/java
> classpath used: /usr/share/java/commons-io.jar:/usr/share/java/batik-all.jar:/usr/share/java/avalon-framework-api.jar:/usr/share/java/avalon-framework-impl.jar:/usr/share/java/xmlgraphics-commons.jar:/usr/share/java/commons-logging.jar:/usr/share/java/fop.jar:
> main class used: org.apache.fop.cli.Main
> flags used: 
> options used: 
> arguments used: -fo /tmp/xmlto.1D9adG/fonts.proc -ps /builddir/build/BUILD/xorg-docs-1.6/general/fonts/fonts.ps
> Exception in thread "main" java.lang.UnsupportedClassVersionError: org/apache/avalon/framework/configuration/ConfigurationException : Unsupported major.minor version 51.0
> 	at java.lang.ClassLoader.defineClass1(Native Method)
> 	at java.lang.ClassLoader.defineClass(ClassLoader.java:634)
> 	at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
> 	at java.net.URLClassLoader.defineClass(URLClassLoader.java:277)
> 	at java.net.URLClassLoader.access$000(URLClassLoader.java:73)
> 	at java.net.URLClassLoader$1.run(URLClassLoader.java:212)
> 	at java.security.AccessController.doPrivileged(Native Method)
> 	at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
> 	at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
> 	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
> 	at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
> 	at org.apache.fop.apps.FopFactory.<init>(FopFactory.java:153)
> 	at org.apache.fop.apps.FopFactory.newInstance(FopFactory.java:177)
> 	at org.apache.fop.cli.CommandLineOptions.<init>(CommandLineOptions.java:121)
> 	at org.apache.fop.cli.Main.startFOP(Main.java:157)
> 	at org.apache.fop.cli.Main.main(Main.java:204)
> make[2]: *** [fonts.ps] Error 1
> make[2]: Leaving directory `/builddir/build/BUILD/xorg-docs-1.6/general/fonts'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/builddir/build/BUILD/xorg-docs-1.6/general'
> -- 
> devel mailing list
> devel at lists.fedoraproject.org
> https://admin.fedoraproject.org/mailman/listinfo/devel


More information about the devel mailing list