Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

250
Views
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 answers
Answer question

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 Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
ยฉ 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!