carlos_hpc
(usa Outra)
Enviado em 12/12/2016 - 21:12h
Olá boa noite.
sou novo no linux (uma semana) e estou tentando instalar o jdk java para poder usar os compiladores para aplicativos ionic.
depois de muita luta acho que instalei o android corretamente ou não , mas quando eu tento executar o comando cordova build --release android
eu tenho o seguinte erro:
Running command: /todo/hooks/after_prepare/010_add_platform_class.js /todo
add to body class: platform-android
Error: Failed to run "javac -version", make sure that you have a JDK installed.
You can get it from:
http://www.oracle.com/technetwork/java/javase/downloads.
Your JAVA_HOME is invalid: /usr/lib64/jvm/jre-1.7.0-openjdk
então eu tentei esse tutorial.
mas ao usar o comando:
find / -name javac
eu tenho essa resposta
/etc/alternatives/javac
find: File system loop detected; ‘/.snapshots/1/snapshot’ is part of the same file system loop as ‘/’.
/.snapshots/2/snapshot/usr/share/bash-completion/completions/javac
/.snapshots/83/snapshot/usr/share/bash-completion/completions/javac
/.snapshots/84/snapshot/usr/share/bash-completion/completions/javac
/.snapshots/85/snapshot/usr/share/bash-completion/completions/javac
/.snapshots/86/snapshot/usr/share/bash-completion/completions/javac
/.snapshots/87/snapshot/usr/share/bash-completion/completions/javac
/.snapshots/88/snapshot/usr/share/bash-completion/completions/javac
/.snapshots/89/snapshot/usr/share/bash-completion/completions/javac
/.snapshots/90/snapshot/usr/share/bash-completion/completions/javac
/.snapshots/91/snapshot/usr/share/bash-completion/completions/javac
/.snapshots/92/snapshot/usr/share/bash-completion/completions/javac
/.snapshots/93/snapshot/usr/share/bash-completion/completions/javac
/.snapshots/94/snapshot/usr/share/bash-completion/completions/javac
/.snapshots/95/snapshot/usr/share/bash-completion/completions/javac
/.snapshots/96/snapshot/usr/share/bash-completion/completions/javac
/.snapshots/97/snapshot/usr/share/bash-completion/completions/javac
/.snapshots/98/snapshot/usr/share/bash-completion/completions/javac
/.snapshots/99/snapshot/usr/share/bash-completion/completions/javac
/.snapshots/100/snapshot/usr/share/bash-completion/completions/javac
/.snapshots/101/snapshot/usr/share/bash-completion/completions/javac
/usr/share/bash-completion/completions/javac
/usr/bin/javac
/usr/java/jre1.8.0_111/bin/javac
/var/lib/rpm/alternatives/javac
/home/android-studio/jre/bin/javac
e quando faço os procedimentos do tutorial o erro persiste.
se alguem puder me ajudar, pois já faz dias que estou tentado sem exito.
editado 13/12
já tentei vários outros tutoriais , e até agora nada. os erros são:
linux-yb5s:/ # javac -version
If 'javac' is not a typo you can use command-not-found to lookup the package that contains it, like this:
cnf javac
linux-yb5s:/ # linux-yb5s:/todo # cordova build --release android
Running command: /todo/hooks/after_prepare/010_add_platform_class.js /todo
add to body class: platform-android
Error: Failed to run "javac -version", make sure that you have a JDK installed.
You can get it from:
http://www.oracle.com/technetwork/java/javase/downloads.
Your JAVA_HOME is invalid: /usr/lib64/jvm/java-1.7.0-openjdk
linux-yb5s:/todo # echo $JAVA_HOME
/usr/lib64/jvm/java-1.7.0-openjdk
linux-yb5s:/todo #
já mudei arquivo export_vars.sh
bash
todo tipo de coisa e até agora nada, preciso de ajuda.