Hi,

On Mon, Apr 17, 2023 at 11:54 AM <yongshengmaa@126.com> wrote:
Hi Martin,

Sorry I have to grab you for more help.

I'm checking the developer mode documentation and just installed the packages listed under prerequisites. Now I come this line:

Note on Java versions
The project is built and run using java 11. 4.3 branches and earlier are excluded.


The java version in my CS8 is as :
java-1.8.0-openjdk-headless-1.8.0.352.b08-2.el8.x86_64

That's OK OpenJDK 1.8 is the default version for CS8, it cannot be removed
java-11-openjdk-11.0.17.0.8-2.el8.x86_64
java-11-openjdk-headless-11.0.17.0.8-2.el8.x86_64
java-11-openjdk-devel-11.0.17.0.8-2.el8.x86_64

That's OK, OpenJDK 11 is required for oVirt. The easiest way to force using OpenJDK 11 is to set JAVA_HOME in $HOME/.bash_profile:

JAVA_HOME=/usr/lib/jvm/java-11
PATH=$JAVA_HOME/bin:$PATH

export JAVA_HOME PATH

That way you will ensure that you are using OpenJDK 11

Regards,
Martin


Should I change/upgrade java? Any easy way to do it like `dnf module switch-to`?

Sincerely,
Yongsheng
_______________________________________________
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-leave@ovirt.org
Privacy Statement: https://www.ovirt.org/privacy-policy.html
oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/
List Archives: https://lists.ovirt.org/archives/list/users@ovirt.org/message/23T46V242K6KABDMI6KKWPTC45NLHDSS/


--
Martin Perina
Manager, Software Engineering
Red Hat Czech s.r.o.