cordova сошла с ума
Доброго времени суток!
lev@X202E:~/testP$ cordova create hello com.example.hello "HelloWorld" Creating a new cordova project with name "HelloWorld" and id "com.example.hello" at location "/home/lev/testP/hello" lev@X202E:~/testP$ cd hello lev@X202E:~/testP/hello$ cordova plarforms Cordova does not know plarforms; try help for a list of all the available commands. lev@X202E:~/testP/hello$ cordova platforms Installed platforms: Available platforms: android, blackberry10, firefoxos, ubuntu lev@X202E:~/testP/hello$ cordova platforms add android Creating android project... Preparing android project lev@X202E:~/testP/hello$ cordova build Generating config.xml from defaults for platform "android" Preparing android project Compiling app on platform "android" via command "/home/lev/testP/hello/platforms/android/cordova/build" Error: An error occurred while building the android project.Error executing "ant debug -f "/home/lev/testP/hello/platforms/android/build.xml"": BUILD FAILED /opt/android-sdk-linux/tools/ant/build.xml:601: The following error occurred while executing this line: /opt/android-sdk-linux/tools/ant/build.xml:720: The following error occurred while executing this line: /opt/android-sdk-linux/tools/ant/build.xml:734: Unable to find a javac compiler; com.sun.tools.javac.Main is not on the classpath. Perhaps JAVA_HOME does not point to the JDK. It is currently set to "/usr/lib/jvm/java-6-openjdk-amd64/jre" Total time: 1 second at ChildProcess.<anonymous> (/usr/local/lib/node_modules/cordova/src/compile.js:65:22) at ChildProcess.EventEmitter.emit (events.js:98:17) at maybeClose (child_process.js:735:16) at Socket.<anonymous> (child_process.js:948:11) at Socket.EventEmitter.emit (events.js:95:17) at Pipe.close (net.js:466:12) Perhaps JAVA_HOME does not point to the JDK. It is currently set to "/usr/lib/jvm/java-6-openjdk-amd64/jre" JAVA_HOME не указывает на jdk счас стоит "путь" а это вывод env JAVA_HOME=opt/jdk1.7.0_51 в .bashrc тоже написал JAVA_HOME=opt/jdk1.7.0_51 втф? подскажите пожалуйста как решить |
ЕХУУУУ
Цитата:
sudo apt-get install openjdk-6-jdk ибо на 7 почему то не работал + жуть какая то была с jdk поставленной c офф сайта проблема была в apache-ant |
Цитата:
<iframe width="420" height="315" src="//www.youtube.com/embed/-F-JfWqMG6g" frameborder="0" allowfullscreen></iframe> |
Часовой пояс GMT +3, время: 18:03. |