DalvikVM与输入 [英] DalvikVM with Input

查看:305
本文介绍了DalvikVM与输入的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我如何开始与dalvikvm一个的.jar文件与输入。这样的事情:

How can I start with dalvikvm an .jar-file with an input. Something like that:

dalvikvm -cp /path to jar/test.jar "hello"

在Test.jar的主要方法,将刚才打印此打招呼控制台。这有点像这可能吗?是什么给这个输入的主要方法,例如作为主要方法字串[] args输入正确的方式。

The main method of the test.jar will be just print this hello to console. It something like that possible? What is the right way to give this input to the main method, for example as an input for String [] args of the main method.

推荐答案

你有没有跟着的这些步骤?它看起来像你需要运行是这样的:

Have you followed these steps? It looks like you need to run something like this:

#/系统/斌/ dalvikvm -Xbootclasspath:/system/framework/core.jar -classpath /data/CmdLine.jar org.apache.HelloWorld
  /系统/斌/ dalvikvm -Xbootclasspath:/system/framework/core.jar -classpath /data/CmdLine.jar org.apache.HelloWorld

# /system/bin/dalvikvm -Xbootclasspath:/system/framework/core.jar -classpath /data/CmdLine.jar org.apache.HelloWorld /system/bin/dalvikvm -Xbootclasspath:/system/framework/core.jar -classpath /data/CmdLine.jar org.apache.HelloWorld

世界,你好!

这篇关于DalvikVM与输入的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆