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

java Ö´ÐÐÅú´¦ÀíÎļþ.bat Êý¾Ý¿â×Ô¶¯±¸·Ý

1.ÌáǰдºÃ±¸·Ý.bat£¬·ÅÔÚij¸öÎļþ¼ÐÀ½«Â·¾¶ÉèÖÃÔÚ.propertiesÀïµÄ
 @echo off
set txt=%date:~0,4%%date:~5,2%%date:~8,2%%time:~0,2%%time:~3,2%%time:~6,2%
echo %txt%
echo --------------------------------------------------
echo -------------ÕýÔÚÖ´ÐÐoracleÊý¾Ý¿â±¸·Ý--------------
echo --------------------------------------------
echo ...
echo ...
echo µ¼³öDatabase...
if exist %txt%.dmp del %txt%.dmp
exp userid=user/user@ORCL file=d:/%txt%.dmp
echo ...
echo ...
echo ±¸·ÝÍê³É!
exit
2.ÔÚXMLÎļþÀïÌí¼Ó¼àÌý
<listener>
 <listener-class>
  com.dbbackup.DbBackUpListener 
 </listener-class>
</listener>
3.Ö÷³ÌÐò
import java.io.FileNotFoundException;
import java.io.IOException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Timer;
import java.util.TimerTask;
import javax.servlet.ServletContext;
import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;
public class DbBackUpListener implements ServletContextListener {
// ÉèÖñ¸·Ý¼ä¸ôʱ¼ä
 int intTime = 60;//ÕâÀïÉèÖÃ1·ÖÖÓÖ´ÐÐÒ»´Î
 public void contextDestroyed(ServletContextEvent sce) {
 }
 public void contextInitialized(ServletContextEvent sce) {
  ServletContext ctx = sce.getServletContext();
  
// È¡µÃ.batÎļþµÄ·¾¶¡£Â·¾¶ÉèÖõ½ÁË.propertiesÀï
  String filePath = PropertyUtil
    .getProperty("WEB-INF/test.bat");
  PickTask picktask = new PickTask(ctx.getRealPath(filePath));
  
// ¶à¾ÃÖ´ÐÐÒ»´Î
  picktask.start(1, intTime);
 }
}
class PickTask {
     private Timer timer;
     private String fileName = null;
     public PickTask(String fileName1) {
          this.timer = new Timer();
          this.fileName = fileName1;


Ïà¹ØÎĵµ£º

javaʹÓÃrocksawºÍvserv tcpipʵÏÖ»ùÓÚICMPµÄPing¹¦ÄÜ

Ò»£º×¼±¸ www.savarese.org download
 1.  rocksaw-1.0.0-src.tar.gz
 2.  vserv-tcpip-0.9.2-src.tar.gz
¶þ£º±àÒëÔ´ÎļþµÃµ½jar°ü ʹÓÃAnt
 1.  build vserv-tcpip-0.9.2-src
      ÔÚvserv-tcpip-0.9.2Ŀ¼ÏÂÃ潨һ¸ötestsĿ¼£¬È»ºóÔÚcmd´°¿ÚϽøÈë ......

java³õѧÕ߱ضÁ ¾­Ñé×ܽá

 1£ºjdk¿ª·¢ÖÐϵͳ»·¾³±äÁ¿ÉèÖ㺠 
  ·½·¨ÈçÏ£º  
  Win2000ÖУº  
  ÓÒ¼üÎҵĵçÄÔ--¡·ÊôÐÔ--¡·¸ß¼¶--¡·»·¾³»·¾³±äÁ¿  
  classpath=.;jdk°²×°Ä¿\lib  
  path=jdk°²×°Ä¿Â¼\bin  
  ×¢Ò⣺һ¶¨²»¿ÉºöÂÔ“.”¡£  
  ......

JavaƵµÀר¼ÒרÀ¸ÉÏÏß Ê×ÆÚÈÈÆÀJava7ÐÂÌØÐÔËÄ´óÌåÑé

¾àÀëJava7µÄMR°æ±¾·¢²¼ÓжÎʱ¼äÁË£¬Í¨¹ý°²×°ÊÔÓÃÖ®ºóµÄ×ÜÌå¸Ð¾õÊÇ£ºËÙ¶ÈÓÖ¿ìÁË¡£×ÐϸÔĶÁÁËJava7µÄÏà¹ØÎĵµ·¢ÏÖ£¬Java7ÓµÓÐÈçϵÄһЩеÄÌØÐÔ¡£
Ê×ÏÈÊÇÄ£¿é»¯ÌØÐÔ£ºÈç¹ûÄú°²×°ºÍʹÓùýNetBeans6.7µÄ»°£¬ÊDz»ÊÇ»áÓÐÒ»¸öºÜ´óµÄ¸Ð¾õ£¬¾ÍÊÇNetBeans6.7µÄÆô¶¯ËٶȱÈÒÔÇ°¿ìÁ˺ܶ࣬µ±È»²¢²»ÊÇNetBeansÒѾ­Ê¹ÓÃÁËJava7£¬¶øÊÇNetB ......

JavaÈí¼þ¼Ü¹¹Ê¦ÐèÒªµÄ¶«Î÷

×÷ΪJava³ÌÐòÔ±À´Ëµ£¬×îÍ´¿àµÄÊÂÇéĪ¹ýÓÚ¿ÉÒÔÑ¡ÔñµÄ·¶Î§Ì«¹ã£¬¿ÉÒÔ¶ÁµÄÊéÌ«¶à£¬ÍùÍùÈÝÒ×ÎÞËùÊÊ´Ó¡£ÎÒÏë¾ÍÎÒ×Ô¼º¶Á¹ýµÄ¼¼ÊõÊé¼®ÖÐÌôÑ¡³öÀ´Ò»Ð©£¬°´ÕÕѧϰµÄÏȺó˳Ðò£¬ÍƼö¸ø´ó¼Ò£¬ÌرðÊÇÄÇЩÏë²»¶ÏÌá¸ß×Ô¼º¼¼ÊõˮƽµÄJava³ÌÐòÔ±ÃÇ¡£
Ò»¡¢Java±à³ÌÈëÃÅÀà
¶ÔÓÚûÓÐJava±à³Ì¾­ÑéµÄ³ÌÐòÔ±ÒªÈëÃÅ£¬Ëæ±ã¶ÁʲôÈëÃÅÊé¼®¶¼Ò»Ñù£¬Õâ ......

ÈȵãÌÖÂÛ£ºJava±à³Ì·ç¸ñµÄ¸Ä±ä


×î½üStephan SchmidtÔÚ²©¿ÍÖз¢±íÁËÌâΪ¡¶ÏÂÒ»´úJava±à³Ì·ç¸ñ¡·µÄÎÄÕ£¬²ûÊöÁËËûÑÛÖÐJava±à³Ì·ç¸ñµÄ¸Ä±ä£¬ÒÔ¼°Î´À´µÄ×ßÏò£ºÐí¶à¹«Ë¾ºÍ¿ª·¢ÈËÔ±ÕýÔÚ´ÓJavaתÏòÆäËû±à³ÌÓïÑÔ£ºRuby¡¢Python¡¢Groovy¡¢Erlang»òScalaµÈµÈ¡£²»¹ýÄã¿ÉÄÜ×ö²»µ½ÕâÒ» µã¡£¼´±ãÈç´Ë£¬ÄãÒ²¿ÉÒԸıäÄãµÄ±à³Ì·ç¸ñ£¬»ñÈ¡ÕâЩÐÂÓïÑÔµÄÓÅÊÆ¡£ÊÂʵÉÏ£¬ÔÚ¹ýÈ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ