Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

258
Vistas
Fedora 25 - refusing to recognize Java JDK, $JAVA_HOME appears to be correct

I am on a server with Fedora 25 installed. I am trying to compile bazel, and each time I try, it gives me this same message:

[~]$bash bz/./compile.sh  

INFO: You can skip this first step by providing a path to the bazel binary as second argument: INFO: bz/./compile.sh compile /path/to/bazel 🍃 Building Bazel from scratch

ERROR: JAVA_HOME (jdk-8u131-linux-x64/jdk1.8.0_131) is not a path to a working JDK.

But I can list the jdk files!

[~]$ls jdk-8u131-linux-x64/jdk1.8.0_131  
bin        javafx-src.zip  man          THIRDPARTYLICENSEREADME-JAVAFX.txt
COPYRIGHT  jre             README.html  THIRDPARTYLICENSEREADME.txt
db         lib             release
include    LICENSE         src.zip  

And the bin directory!

[~]$ls jdk-8u131-linux-x64/jdk1.8.0_131/bin  
appletviewer  javafxpackager  jdb      jrunscript    pack200      unpack200
ControlPanel  javah           jdeps    jsadebugd     policytool   wsgen
extcheck      javap           jhat     jstack        rmic         wsimport
idlj          javapackager    jinfo    jstat         rmid         xjc
jar           java-rmi.cgi    jjs      jstatd        rmiregistry
jarsigner     javaws          jmap     jvisualvm     schemagen
java          jcmd            jmc      keytool       serialver
javac         jconsole        jmc.ini  native2ascii  servertool
javadoc       jcontrol        jps      orbd          tnameserv  



[~]$echo $JAVA_HOME    
jdk-8u131-linux-x64/jdk1.8.0_131 

So I have no idea how to proceed. It just refuses to recognize the jdk, even though I can see it where it should be. ???

The reason I am doing this is because I need to compile Tensorflow, so I can run all 16 processors on the server.

over 4 years ago · Santiago Trujillo
1 Respuestas
Responde la pregunta

0

I run into the same problem. One has to install Java-devel via sudo dnf install java-devel, do export JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.131-1.b12.fc25.x86_64 (depends of course on the actual version) and run ./compile.sh from the bazel files in the same terminal. Further I recommend to add $JAVA_HOME permanently to $PATH via export PATH=$JAVA_HOME:$PATH.

over 4 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda