Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/340.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/rust/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 在eclipse上运行android应用程序时出现此错误_Java_Android_Eclipse - Fatal编程技术网

Java 在eclipse上运行android应用程序时出现此错误

Java 在eclipse上运行android应用程序时出现此错误,java,android,eclipse,Java,Android,Eclipse,用法和错误如下所示: javaw [-options] class [args...] (to execute a class) or javaw [-options] -jar jarfile [args...] (to execute a jar file) where options include: -d32 use a 32-bit data model if available -d64 use

用法和错误如下所示:

javaw [-options] class [args...]
           (to execute a class)
   or  javaw [-options] -jar jarfile [args...]
           (to execute a jar file)
where options include:
    -d32      use a 32-bit data model if available
    -d64      use a 64-bit data model if available
    -server   to select the "server" VM
    -hotspot      is a synonym for the "server" VM  [deprecated]
                  The default VM is server.
-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>
              require the specified version to run
-showversion  print product version and continue
-jre-restrict-search | -no-jre-restrict-search
              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
javaw[-options]类[args…]
(执行一个类)
或javaw[-options]-jar-jarfile[args…]
(执行jar文件)
其中包括:
-d32使用32位数据模型(如果可用)
-d64使用64位数据模型(如果可用)
-选择“服务器”虚拟机的服务器
-hotspot是“服务器”VM的同义词[已弃用]
默认VM是服务器。
-cp
-类路径
A.单独的目录列表、JAR归档、,
和压缩档案以搜索类文件。
-D=
设置系统属性
-详细[:类| gc | jni]
启用详细输出
-版本打印产品版本并退出
-版本:
需要指定的版本才能运行
-showversion打印产品版本并继续
-jre限制搜索|-无jre限制搜索
在版本搜索中包括/排除用户专用JRE
-? -帮助打印此帮助消息
-关于非标准选项的X打印帮助
-ea[:…|:]
-启用评估[:…|:]
启用具有指定粒度的断言
-da[:…;:]
-取消分配[:…|:]
禁用具有指定粒度的断言
-esa |-启用系统断言
启用系统断言
-dsa |-禁用系统断言
禁用系统断言
-agentlib:[=]
加载本机代理库,例如-agentlib:hprof
另请参见-agentlib:jdwp=help和-agentlib:hprof=help
-代理路径:[=]
按完整路径名加载本机代理库
-javaagent:[=]
加载Java编程语言代理,请参阅Java.lang.instrument
-飞溅:
用指定的图像显示启动屏幕

有关更多详细信息,请参阅。

右键单击project并以Android应用程序的形式运行。

如果出现此错误,则您运行的不是Android应用程序,而是Java应用程序。