Author Topic: Java not found on Win 10 x64 with Temurin jre17 Ancestris 13  (Read 751 times)

0 Members and 1 Guest are viewing this topic.

Offline Genchri

  • VIP
  • Newbie
  • *
  • Posts: 2
    • View Profile
I had Ancestris 12 and the standard Java jre 8 running on Win 10 x64.
I deinstalled both and then installed Temurin-17.0.13 (additionally I have also installed Temurin 21.0.5) because I wanted to try/switch to Ancestris 13 daily and downloaded the ancestris-latest.zip and unpacked to a C:\MyApps\Ancestris-13-daily-2025\
CMD java -version shows:
Quote
openjdk version "17.0.13" 2024-10-15
OpenJDK Runtime Environment Temurin-17.0.13+11 (build 17.0.13+11)
OpenJDK 64-Bit Server VM Temurin-17.0.13+11 (build 17.0.13+11, mixed mode, sharing)

Both starting the bin\ancestris64.exe or ancestris.exe shows the error window
Quote
Cannot find Java 1.8. or higher


I also tried this Java17.bat with not solution of the error:
Code: [Select]
@echo off
echo Setting JAVA_HOME
set JAVA_HOME=c:\Program Files\Eclipse Adoptium\jre-17.0.13.11-hotspot
echo setting PATH
set PATH=c:\Program Files\Eclipse Adoptium\jre-17.0.13.11-hotspot\bin;%PATH%
echo Display java version
java -version

I'm not sure what else I could try?

Offline Zurga

  • VIP
  • Supernatural Member
  • *
  • Posts: 4 591
    • View Profile
Re: Java not found on Win 10 x64 with Temurin jre17 Ancestris 13
« Reply #1 on: January 30, 2025, 08:01:13 »
On Windows, the automatic detection relies on Registry key.
Normally you can set it with Adoptium java installer.

The simplest way to make Java detected by Ancestris is to set the jdkhome variable in the ancestris.conf file.
Please, read our documentation : https://docs.ancestris.org/books/user-guide/page/java-installation#bkmrk-identify-which-java--0

Zurga 

Offline Genchri

  • VIP
  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: Java not found on Win 10 x64 with Temurin jre17 Ancestris 13
« Reply #2 on: January 30, 2025, 09:12:35 »
Thank you very much @Zurga
This resolved it for me. I edited the following at the end of the \etc\ancestris.conf file in the Ancestris 13 daily folder:
Code: [Select]
# default location of JDK/JRE, can be overridden by using --jdkhome <dir> switch
# jdkhome="c:\Program Files\Eclipse Adoptium\jre-17.0.13.11-hotspot"
jdkhome="c:\Program Files\Eclipse Adoptium\jre-21.0.5.11-hotspot\"

So also the Java 21 version works, as well as first I tried the 17 version.
I have to remember that with Eclipse Adoptium 21 updates I need to update this file.