我想问用JAVA编个小游戏在手机上试试,具体怎么弄呀?
解决方案 »
- 在客户端怎样判断服务器端是否接受了请求??????
- 怎么在名字后面的括号里写字呢? :)
- 打印机在套打时显示"PCL XL error Warning: IllegalMediaSize",请高手指教!!!特急!!!
- 工作机会
- 文件读写问题,编译成功,class文件运行不了!
- 把身上仅有的10分拿出来跪求解答
- 请问String 的interface toString(),在构造函数之前被调用还是在之后被调用?
- java配置问题
- 关于事件的问题,dyroro(丢丢) 请进!
- 高分:為什麼用smtp.163.net服務器,不能發給smtp.163.com的郵箱用戶,要怎麼做才行
- 有时用的if..else太多,大家觉得改成这样如何?
- Java 实现UDP打洞
String comm = "perl /var/www/extsuite/extman/tools/userctl.pl--mod=add -username="+uname +"-password="+pass;
runLinuxCmd(String cmd) //本类调用public String runLinuxCmd(String cmd) {
BufferedReader bf = null;
try {
Process process = Runtime.getRuntime().exec(cmd);
bf = new BufferedReader(new InputStreamReader(process.getInputStream()));
String line = "";
String resutl="";
while ((line = bf.readLine()) != null) {
resutl =resutl+ line.trim()+"\n";
}
System.out.println("---------------try result------------------"+resutl);
return resutl;
} catch (java.io.IOException e) {
e.printStackTrace();
System.out.println("------------error--------------");
return null;
} finally {
if (bf != null) {
try {
bf.close();
bf = null;
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
}}单独在shell环境下执行perl命令是没有问题,能够插入数据。 我在网上看到有人讲过把perl命令写进sh脚本就可以了,我也不知道这是为什么按理说java能够调用shell命令也能调用perl脚本命令。非要包装一下的话我也写了一个shell脚本单独运行shell脚本也能添加数据就是java调用又没有添加数据了 我想要的是验证过的结果 大道理就不用讲了直接来真工夫啊 我写的shell脚本代码如下:#!/bin/sh
perl /var/www/extsuite/extman/tools/userctl.pl--mod=add -username="$1" -password="$2";这个做了两天都没有做好 如果能有满意的结果我会加分的谢谢大家 欢迎大家来这里回帖http://topic.csdn.net/u/20110821/20/ae1e4815-1c81-4c75-88ae-db263128f963.html?61772
Eclipse EMF - http://download.eclipse.org/modeling/emf/updates/releases/
Eclipse GMF - http://download.eclipse.org/modeling/gmf/updates/releases
Eclipse Webtools - http://download.eclipse.org/webtools/updates/
Google eclipse Plugin - http://dl.google.com/eclipse/plugin/3.5--------------------------------------------------------添加完后,安装ADT,需要选择Contact all update sites during install to find required software,Eclipse就会自己下载所需要的组件。ADT 地址http://dl-ssl.google.com/Android/eclipse/