Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

javaµ÷ÓÃcmdÃüÁî && µ÷ÓÃjar°üÄÚµÄpropertiesÎļþ

1.javaµ÷ÓÃcmdÃüÁ
Runtime.getRuntime().exec("taskkill /f /im firefox.exe");
2.ʹÓÃÁËloadProp()·½·¨µ÷ÓÃjar°üÄÚµÄpropertiesÎļþ
ʹÓÃjava³ÌÐò¼à¿ØgeneFTP·þÎñÆ÷(ʹÓÃwindows¼Æ»®ÈÎÎñÖ´ÐÐjar°ü)£¬´úÂëÈçÏÂ:(¹¤³ÌĿ¼½á¹¹¼û¸½¼þ)
Task.java:
package com.monitor;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.OutputStreamWriter;
import java.text.SimpleDateFormat;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;
import com.ahcomic.framework.util.common.SendMail;
import com.ahcomic.framework.util.common.StringUtil;
import com.enterprisedt.net.ftp.FTPClient;
import com.enterprisedt.net.ftp.FTPConnectMode;
import com.enterprisedt.net.ftp.FTPTransferType;
public class Task {
public static final String MAIL_SMTPSERVER = "mail.tora.to";
public static final String MAIL_USER = "torachan@tora.to";
public static final String MAIL_PASSWORD = "dimen29019853";
public static final String MAIL_from = "torachan@tora.to";
public static final String genehosts = loadProp("gene6.ftp.hosts");
public static final String geneports = loadProp("gene6.ftp.ports");
public static final String geneusers = loadProp("gene6.ftp.users");
public static final String genepwds = loadProp("gene6.ftp.pwds");
public static final String logPath = loadProp("gene6.log.path");
public static final String txtPaths = loadProp("gene6.test.txt.paths");
public static final String failcount = loadProp("schedule.fail.count");
public static final String sendemails = loadProp("schedule.send.emails");

private static final String taskkill = loadProp("schedule.taskkill.flag");
private static Map<String, Integer> map1 = new HashMap<String, Integer>();

private static Long now = System.currentTimeMillis();
public static void main(String[]


Ïà¹ØÎĵµ£º

JAVA CLASSPATH ºÍPATHµÄÇø±ð ¾­µä

JAVA CLASSPATH ºÍPATHµÄÇø±ð ÊÕ²Ø
PATH:¡¡ÓÃÀ´Ö¸¶¨ java ÐéÄâ»ú(JVM) ËùÔÚÔÚĿ¼,Ò²¾ÍÊÇÎÒÃÇ×î³£ÓõÄÓÃÀ´±àÒëjavaÔ´³ÌÐòµÄjavac.exe ºÍÓÃÀ´Ö´ÐÐ *.class ÎļþµÄ java.exe ÕâÁ½¸öÃüÁî¡£ÒÔÎҵĻúÆ÷ΪÀý°É£ºÎÒµÄ jdk °´×°Ä¿Â¼Îª D:\jdk1.5.0_08£¨È·ÇеÄ˵ÎÒµÄÕâ¸öJDK²»ÊÇ°²×°°æ±¾µÄ£¬Ö±½Ó½âѹµ½ d:\ Ï嵀 £¬´ËʱÎÒµÄ path ¾ ......

java´ÓÍøÒ³ÖÐÌáȡͼƬµØÖ·

import java.util.regex.Matcher;
import java.util.regex.Pattern;
1£ºÕâ¸öÊÇÄõ½Ò»¸ö×Ö·ûÈ¡µÃÀïÃæµÄͼÏñµØÖ··µ»ØÒ»¸öList 
public static List<String> getImgStr(String htmlStr){     
         String img="";   &n ......

´«ÖDz¥¿Íjavaѧϰ ½ÌÓý°ì¹«ÏµÍ³5

½ñÌì¼ÌÐøѧϰ١ÀÏʦµÄ½ÌÓý°ì¹«ÏµÍ³µÄÂọ́¬½ñÌìÖ÷ҪѧϰȨÏÞÄ£¿éºÍÔ±¹¤Ä£¿éµÄ¼¯³É£»
      
      
1.
¼¯³ÉȨÏÞÄ£¿éºÍÔ±¹¤Ä£¿é
.
      
1).
мÈëÔ±¹¤Ê±
,
¿ÉÒÔΪÆäÌí¼Ó½ÇÉ«
     &n ......

´«ÖDz¥¿Íjavaѧϰ 3gÊÖ»ú¿ª·¢Android 3

½ñÌìÊÇѧϰ
Android
µÄµÚÈýÌ죬½ñÌìÖ÷ҪѧÁË
Android
ÄÚÖõÄ
SQLite
Êý¾Ý¿â£¬Ñ§Ï°ÁËÔöɾ¸Ä²é¡£
 
      
SharedPreferences
½øÐÐÊý¾Ý´æ´¢
:
      
Android
ƽ̨¸øÎÒÃÇÌṩÁËÒ»¸ö
SharedPreferences
À࣬ËüÊÇÒ»¸öÇáÁ¿¼¶µÄ´æ´¢À࣬ÌرðÊÊ ......

¶ÁÎļþ£¨java£©


ʹÓÃJava²Ù×÷Îı¾ÎļþµÄ·½·¨Ïê½â
ÕªÒª: ×î³õjavaÊDz»Ö§³Ö¶ÔÎı¾ÎļþµÄ´¦ÀíµÄ£¬ÎªÁËÃÖ²¹Õâ¸öȱº¶¶øÒýÈëÁËReaderºÍWriterÁ½¸öÀ࣬ÕâÁ½¸öÀ඼ÊdzéÏóÀ࣬WriterÖÐ write(char[] ch,int off,int
length)£¬flush()ºÍclose()·½·¨Îª³éÏó·½·¨£¬ReaderÖÐread(char[] ch,int off,int length)ºÍclose()·½·¨ÊdzéÏó·½·¨¡£×ÓÀàÓ¦¸Ã·Ö± ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ