JavaʹÓÃwinrar½âѹËõ
JAVA JDKÖеĽâѹËõËƺõ²»ÄܽâѹËõÎÒÃÇÊÖ¹¤Ñ¹ËõµÄRARÎļþ£¬Ö»ÄܽâѹJDKÖеÄAPIѹËõµÄRAR
ËùÒÔÏë³öÒÔÏÂÓÃWINRARÃüÁîÐз½Ê½µÄ½âѹËõ
package edu.nwpu.vcampus.util;
import java.io.File;
public class ZipUtil {
public static final String winrarPath = "C:\\Program Files\\WinRAR\\WinRAR.exe";
public static boolean unzip(String zipFile) {
boolean bool = false;
File f=new File(zipFile);
if(!f.exists())
{
return false;
}
String folder = f.getParent();
System.out.println(folder);
String cmd = winrarPath + " X " + zipFile + " "+folder;
//cmd="C:\\Program Files\\WinRAR\\WinRAR.exe X D:\\a.rar D:\\a";
System.out.println(cmd);
try {
Process proc = Runtime.getRuntime().exec(cmd);
if (proc.waitFor() != 0) {
if (proc.exitValue() == 0) {
bool = false;
 
Ïà¹ØÎĵµ£º
µÚÒ»ÕÂ. JAVAÌåϵ½á¹¹½éÉÜ
µÚÒ»½Ú ΪºÎʹÓÃJava:ƽ̨Î޹أ¬°²È«£¬ÍøÂçÒƶ¯ÐÔ
µÚ¶þ½Ú Ìåϵ½á¹¹
1.
JAVAÐéÄâ»úµÄ»ù±¾½á¹¹Í¼£º
2. & ......
¼×¹ÇÎÄÒѾÍê³ÉÁ˶ÔSUN¹«Ë¾µÄÊÕ¹º£¬ÓÚ1ÔÂ27ÈÕ·¢²¼Á˶ÔSun¸÷ÏîÒµÎñµÄÕûºÏ¹æ»®¡£×ÜÌåÉÏ˵£¬OracleÒª³ÉΪÈíÓ²¼þÒ»Ì廯µÄÕûÌå½â¾ö·½°¸µÄ³§ÉÌ¡£ ÒÔϾÍÆä¶Ô±¸ÊܹØ×¢µÄJava·½ÃæµÄ²ßÂÔ×ö¸ö½éÉÜ¡£
Java SE:
1£©ÍƳöJDK SE 7£¬ Ëü½«°üÀ¨¶à¸öÐµĹ¦ÄÜ£¬ÈçÌá¸ß¿ª·¢ÈËÔ±µÄЧÂÊ£¬Ìṩ¸ßÐÔÄÜ£¬¶Ô¶àºËоƬµÄÖ§³ÖµÈ¡£
2£©SunµÄHotSp ......
ÓÃjava´´½¨XmlµÄ4´óÀࣺ
Element£º½ÚµãÀà
AttributeÊôÐÔÀà
Document£ºÖ¸µÄ¾ÍÊÇÎĵµÀà
XMLOutput£ºÊä³öÀà
´ËÀàÊÇÓÃjava½¨Á¢Ò»¸öxmlÎļþ
public class TestJdom {
//´´½¨XML£¨Ä£ÐÍ£©dom
public static void main(String[] args) {
  ......
·ÏÁË¡£2ÄêûÕý¾ÓùýJavaÁË¡£ÎªÁË°ïÅóÓÑæ±ØÐëÈ«²¿¼ñÆðÀ´¡£BT¼Æ»®±»ÆÈÔÝÍ£¡£
»¹ÊǺÃÄÔ×Ó²»ÈçÀñÊÍ·¡£
¼ÇÏÂÀ´£º
Java»·¾³±äÁ¿ÉèÖãº
http://blog.csdn.net/aneka/archive/2008/09/19/2948209.aspx
ѧϰ Java ¿ª·¢µÄµÚÒ»²½¾ÍÊǹ¹½¨¿ª·¢»·¾³£¬ÏÂÃæÒÔ JDK6.0 ÔÚ Windows XP ÉϵݲװÅäÖÃΪÀýÀ´½²Êö£º
µÚÒ»²½£ºÏÂÔØ JDK
´ ......
TimerλÓÚjava.utilÏÂÃ棬һ°ã½ÐËûjava¼ÆʱÆ÷¡£
javaAPIµÄ½âÊÍÈçÏÂ:
Ò»ÖÖÏß³ÌÉèÊ©£¬ÓÃÓÚ°²ÅÅÒÔºóÔÚºǫ́Ïß³ÌÖÐÖ´ÐеÄÈÎÎñ¡£¿É°²ÅÅÈÎÎñÖ´ÐÐÒ»´Î£¬»òÕ߶¨ÆÚÖظ´Ö´ÐС£
ÏÈÀ´¿´¿´Ð§¹û£º
1.Éè¼Æ¼ÆʱÆ÷
import java.io.IOException;
import java.util.Calendar;
import java.util.Timer;
public class TimerTest {
......