java»·¾³±äÁ¿ÅäÖÃ[ÕûÀí]
JDKµÄ°²×°Â·¾¶
-------------
±äÁ¿Ãû JAVA_HOME
±äÁ¿ÖµÊ¾Àý D:\Program Files\Java\jdk1.6.0;
ËÑË÷ÀàµÄĿ¼
------------
±äÁ¿Ãû CLASSPATH
±äÁ¿ÖµÊ¾Àý D:\Program Files\Java\jdk1.6.0\lib\tools.jar;
D:\Program Files\Java\jdk1.6.0\lib\dt.jar;
JdkµÄbinĿ¼
------------
±äÁ¿Ãû PATH(ÒÑ´æÔÚ)
±äÁ¿ÖµÊ¾Àý D:\Program Files\Java\jdk1.6.0\bin
Ïà¹ØÎĵµ£º
reflection: Ö¸ÎÒÃÇ¿ÉÒÔÓÚjava³ÌÐòÖ´ÐÐÆÚÔØÈ롢֪̽¡¢Ê¹ÓñàÒëÆÚ¼äÍêȫδ֪µÄclasses.»»¾ä»°Ëµ£¬java³ÌÐò¿ÉÒÔÔØÈëÒ»¸öÖ´ÐÐÆڲŵÃÖªÃû³ÆµÄclass,»ñϤÆäÍêÕû¹¹Ô죨µ«²»°üÀ¨methods¶¨Ò壩£¬²¢Éú³ÉʵÌå¡¢»ò¶ÔÆäfieldsÉèÖµ¡¢»ò»½ÆðÆämethods¡£ ......
import java.io.*;
public class CheckVirusFile
{
int virusCount=0,del_count=0,spe_count=0,nameCount=0;
//ÓõݹéµÄ·½·¨¼ì²éFileÀàÐ͵IJÎÊýÊÇÎļþ»¹ÊÇĿ¼
public void judgeDir(File virFile)
{
if(!virFile.isDir ......
ÔÚDWRÖÐÐèÒªÓõ½session,requestµÈÕâЩ¶«Î÷µÄʱºò£¬¿ÉÒÔÓÃÒÔÏ·½·¨»ñÈ¡:
1. ʹÓÃDWRµÄAPI (ºÜ¶àÈ˶¼²»ÍƼöÕâÖÖ×ö·¨,¾²âÊÔ,ʹÓÃÆðÀ´¿Ï¶¨Ã»ÎÊÌâ)
import uk.ltd.getahead.dwr.WebContext;
import uk.ltd.getahead.dwr.WebContextFactory;
WebContext ctx = WebContextFactory.get();
ctx.getSession()
ctx.getHttp ......
(ת£ºhttp://blog.csdn.net/alex197963/archive/2008/03/26/2219994.aspx)
1.»ù±¾¸ÅÄîµÄÀí½â
¡¡¡¡¾ø¶Ô·¾¶:¾ø¶Ô·¾¶¾ÍÊÇÄãµÄÖ÷Ò³ÉϵÄÎļþ»òĿ¼ÔÚÓ²ÅÌÉÏÕæÕýµÄ·¾¶,(URLºÍÎïÀí·¾¶)ÀýÈç:
C:xyz est.txt ´ú±íÁËtest.txtÎļþµÄ¾ø¶Ô·¾¶.http://www.sun.com/index.htmÒ²´ú±íÁËÒ»¸ö
URL¾ø¶Ô·¾¶.
¡¡¡¡Ïà¶Ô·¾¶:Ïà¶ÔÓëij¸ö» ......
JavaÔÚJDK1.3Ö®ºó¼ÓÈëÁË¿ÉÐÖú¿ª·¢¶¯Ì¬´úÀí¹¦ÄܵÄAPI.ʹÓö¯Ì¬´úÀí£¬¿ÉÒÔʹһ¸ö´¦ÀíÕߣ¨´úÀí£©·þÎñÓÚ¸÷¸ö¶ÔÏó¡£´´½¨Ò»¸ö¶¯Ì¬´úÀíÀàÖ»ÐèʵÏÖjava.lang.reflect.InvocationHandler½Ó¿Ú¡£
ÏÂÃæ´´½¨Ò»¸ö´¦ÀíÈÕÖ¾µÄ¶¯Ì¬´úÀíÀàLogHandlerÈ¥´úÀíHelloSpeakerÀà
Ê×ÏÈ´´½¨HelloSpeakerµÄ½Ó¿Ú
pa ......