0
When running the command to compile phonegap
phonegap build android
But you make a mistake:
[phonegap] executing 'cordova build android'...
Running command: /var/www/gabriel/phonegap/teste/platforms/android/cordova/build
[Error: Failed to run "java -version", make sure that you have a JDK installed.
You can get it from: http://www.oracle.com/technetwork/java/javase/downloads.]
ERROR building one of the platforms: Error: /var/www/gabriel/phonegap/teste/platforms/android/cordova/build: Command failed with exit code 2
You may not have the required environment or OS to build this project
Error: /var/www/gabriel/phonegap/teste/platforms/android/cordova/build: Command failed with exit code 2
Java ta installed normal: ( java -version )
java version "1.7.0_91"
OpenJDK Runtime Environment (IcedTea 2.6.3) (7u91-2.6.3-0ubuntu0.15.04.1)
OpenJDK 64-Bit Server VM (build 24.91-b01, mixed mode)
What can it be ?