On 04/03/2015 01:01 PM, Farkas Levente wrote: > the real problem here is that java-1.8.0-openjdk do NOT provides java! > so all other packages which requires java try to install older version, > but since it's install java-1.8.0-openjdk it can't install > java-1.7.0-openjdk. > and this itself cause a lot's of other problems: > > - first of all older jdk will be installed (sun, ibm, oracle) and if it > can't find any other version then the build failed. RHEL packages are built and tested with default Java version and that's why they require it. Running them with OpenJDK8 was not tested and may not work. > - the system default java never will be java-1.8.0-openjdk so all tools > will be use a different java. You can configure default system JDK/JRE version in /etc/java/java.conf file. You can set JAVA_HOME to OpenJDK8 home if you want. > - even if i set in the spec file: > export JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk > export PATH=$JAVA_HOME/bin:${PATH} > ant clean > Error: Could not find or load main class > org.apache.tools.ant.launch.Launcher > the reason probably the same as in: > https://bugzilla.redhat.com/show_bug.cgi?id=983394 > https://bugzilla.redhat.com/show_bug.cgi?id=982683 > but jpackage-utils not updated on epel-6 and epel-7 (javapackages-tools) Known problem. Will be fixed in RHEL 6.7. RHEL 7 is not affected AFAIK (if it is then please file a bug). -- Mikolaj Izdebski Software Engineer, Red Hat IRC: mizdebsk -- java-devel mailing list java-devel@xxxxxxxxxxxxxxxxxxxxxxx https://admin.fedoraproject.org/mailman/listinfo/java-devel