在安装了离子和android sdk的一个窗口后,我尝试构建一个运行命令ionic build android
的示例应用程序。
碰巧运行此命令后,几秒钟后会出现以下消息:
用法:java [-options] class [args ...] (执行一个类)或java [-options] -jar jarfile [args ...] (执行jar文件)选项包括: -d32使用32位数据模型(如果可用) -d64使用64位数据模型(如果可用) -server选择“服务器”VM 默认VM是服务器。
-cp <class search path of directories and zip/jar files> -classpath <class search path of directories and zip/jar files> A ; separated list of directories, JAR archives, and ZIP archives to search for class files. -D<name>=<value> set a system property -verbose:[class|gc|jni] enable verbose output -version print product version and exit -version:<value> Warning: this feature is deprecated and will be removed in a future release. require the specified version to run -showversion print product version and continue -jre-restrict-search | -no-jre-restrict-search Warning: this feature is deprecated and will be removed in a future release. include/exclude user private JREs in the version search -? -help print this help message -X print help on non-standard options -ea[:<packagename>...|:<classname>] -enableassertions[:<packagename>...|:<classname>] enable assertions with specified granularity -da[:<packagename>...|:<classname>] -disableassertions[:<packagename>...|:<classname>] disable assertions with specified granularity -esa | -enablesystemassertions enable system assertions -dsa | -disablesystemassertions disable system assertions -agentlib:<libname>[=<options>] load native agent library <libname>, e.g. -agentlib:hprof see also, -agentlib:jdwp=help and -agentlib:hprof=help -agentpath:<pathname>[=<options>] load native agent library by full pathname -javaagent:<jarpath>[=<options>] load Java programming language agent, see java.lang.instrument -splash:<imagepath> show splash screen with specified image See http://www.oracle.com/technetwork/java/javase/documentation/index.html
了解更多详情。
错误:cmd:命令失败,退出代码为1
对于这个错误,我尝试重新安装java JDK7并且还安装了JAVA8,并且我还切换了节点版本(尝试了节点8和6),但没有任何工作。因为这个错误是如此通用,我很难知道我应该寻找什么。
我也在运行Windows 7。
任何人都可以帮我吗?