Author Topic: Cannot find Java  (Read 767 times)

0 Members and 1 Guest are viewing this topic.

Offline malibu

  • VIP
  • Newbie
  • *
  • Posts: 1
    • View Profile
Cannot find Java
« on: September 25, 2024, 16:42:29 »
Hi there, I have installed Ancestris (13.2) in Manjaro with the jdk-openjdk and the jdk11-openjdk packages and Ancestris cannot find java when starting.

java -version:
Code: [Select]
openjdk version "11.0.24" 2024-07-16
OpenJDK Runtime Environment (build 11.0.24+8)
OpenJDK 64-Bit Server VM (build 11.0.24+8, mixed mode)

which java:
Code: [Select]
/usr/bin/java
ls -l /usr/bin/java:
Code: [Select]
lrwxrwxrwx 1 root root 37 Jan 19  2023 /usr/bin/java -> /usr/lib/jvm/default-runtime/bin/java
The ancestris.conf file does not have javahome set.  I have tried --javahome="/usr/bin" and --javahome="/usr/lib/jvm/default-runtime/bin".  The error message reflects the proper directory that I set but Ancestris is not starting.  Here is what I am getting when starting in the terminal:

 
 
Code: [Select]
Identifying path and application name:
   progdir=/opt/ancestris/bin
   APPNAME=ancestris
 
Checking configuration file on progdir/../etc:
   Configuration file found. Executing it.
 
Identifying userdir from configuration file:
   userdir(from conf file)=/home/steve/.ancestris/trunk
   userdir(after argument overwrite)=/home/steve/.ancestris/trunk
 
Checking configuration file on userdir/etc:
   Configuration file from userdir not found.
 
Checking if jdkhome is defined: (for MacOS, /Contents/Home should be at the end)
   jdkhome=/usr/bin/java
 
Checking JAVA presence
   Linux...
================================================================
openjdk version "11.0.24" 2024-07-16
OpenJDK Runtime Environment (build 11.0.24+8)
OpenJDK 64-Bit Server VM (build 11.0.24+8, mixed mode)
================================================================
Found JAVA executable in PATH
JAVA is installed.
JAVA version is more than 1.8
 
Defining clusters:
   clusters=/opt/ancestris/ancestris:/opt/ancestris/harness:
 
Defining exec command:
   nbexec=/opt/ancestris/bin/../platform/lib/nbexec
 
Running exec command:
   => Linux system detected...
 
Command to be executed:
 
exec /bin/bash '/opt/ancestris/bin/../platform/lib/nbexec'             --jdkhome '/usr/bin/java'             --clusters '/opt/ancestris/ancestris:/opt/ancestris/harness:'             --userdir '/home/steve/.ancestris/trunk'             --branding ancestris -J-Xms96m -J-Xmx1g --laf javax.swing.plaf.nimbus.NimbusLookAndFeel -J-XX:+IgnoreUnrecognizedVMOptions -J-XX:+UseStringDeduplication -J-Dapple.laf.useScreenMenuBar=true -J-Dapple.awt.graphics.UseQuartz=true -J-Dsun.zip.disableMemoryMapping=true -J--add-opens=java.base/java.net=ALL-UNNAMED -J--add-opens=java.base/java.lang.ref=ALL-UNNAMED -J--add-opens=java.base/java.lang=ALL-UNNAMED  -J--add-opens=java.base/java.util=ALL-UNNAMED -J--add-exports=java.base/sun.reflect.annotation=ALL-UNNAMED -J--add-opens=java.prefs/java.util.prefs=ALL-UNNAMED -J--add-exports=java.management/sun.management=ALL-UNNAMED -J--add-opens=java.desktop/javax.swing.text=ALL-UNNAMED -J--add-opens=java.desktop/javax.swing=ALL-UNNAMED -J--add-opens=java.desktop/javax.swing.plaf.synth=ALL-UNNAMED -J--add-opens=java.desktop/javax.swing.plaf.basic=ALL-UNNAMED -J--add-opens=java.desktop/java.awt=ALL-UNNAMED -J--add-opens=java.desktop/java.awt.event=ALL-UNNAMED -J--add-exports=java.desktop/java.awt.peer=ALL-UNNAMED -J--add-exports=java.desktop/com.sun.beans.editors=ALL-UNNAMED -J--add-exports=java.desktop/sun.swing=ALL-UNNAMED -J--add-exports=java.desktop/sun.awt=ALL-UNNAMED -J--add-exports=java.desktop/sun.awt.im=ALL-UNNAMED -J--add-opens=java.desktop/sun.awt.X11=ALL-UNNAMED -J--add-opens=java.desktop/sun.awt.shell=ALL-UNNAMED -J--add-opens=java.desktop/com.sun.java.swing.plaf.gtk=ALL-UNNAMED -J--add-opens=java.desktop/com.sun.java.swing.plaf.motif=ALL-UNNAMED             
 
Cannot find java. Please use the --jdkhome switch.



Please help?  Thanks.

Offline Zurga

  • VIP
  • Supernatural Member
  • *
  • Posts: 4 340
    • View Profile
Re: Cannot find Java
« Reply #1 on: September 25, 2024, 17:05:01 »
If you use Ancestris 13, please install a version of Java at least 17.

Zurga