I'm really hoping someone can help me to fix the issue I'm having and would be extremely grateful for anyone to offer a solution to this issue. …

When I try and launch OpenDaylight, I get the following error: karaf: JAVA_HOME is not valid: /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java

  • 1
    So is it valid? Please add output of ls -lah /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java – pLumo May 8 at 12:40

Try to get JAVA_HOME from Terminal by


Generally java home value should be set as


and Update PATH variable as


  • after update PATH ,Error : la commande n'a pas pu être trouvée car << /usr/bin>> n'est pas incluse dans la variable d'environnement PATH – aymen kedidi May 8 at 13:00
  • Sorry for the issue. I have updated the solution. Try after rebooting as your PATH variable has been reset – Aditya Pawaskar May 8 at 13:04
  • error: karaf: JAVA_HOME is not valid: /usr/lib/jvm/java-8-openjdk-amd64/jre – aymen kedidi May 8 at 13:13
  • don't put jre at the end. set till amd64 – Aditya Pawaskar May 8 at 14:36

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.