锘??xml version="1.0" encoding="utf-8" standalone="yes"?>色网视频在线,国产美女高潮在线,欧美成人精品一区二区男人小说http://www.aygfsteel.com/duanbo/for navigationzh-cnWed, 18 Jun 2025 09:00:38 GMTWed, 18 Jun 2025 09:00:38 GMT60Eclipse 涓?绱㈢埍妯℃嫙鍣?debug 璁劇疆http://www.aygfsteel.com/duanbo/archive/2009/03/10/258779.htmlDuan Bo HaoDuan Bo HaoTue, 10 Mar 2009 05:23:00 GMThttp://www.aygfsteel.com/duanbo/archive/2009/03/10/258779.htmlhttp://www.aygfsteel.com/duanbo/comments/258779.htmlhttp://www.aygfsteel.com/duanbo/archive/2009/03/10/258779.html#Feedback0http://www.aygfsteel.com/duanbo/comments/commentRss/258779.htmlhttp://www.aygfsteel.com/duanbo/services/trackbacks/258779.html
Suspend execution:
鍙繚鐣?suspend for breakpoint.

Hot code replace
淇濈暀: show error when hot code replace failed.
          show error when obsolete code remain after replace.
          replace classfiles containing compilation errors.

Communication:
change Debugger timer  to 30000
Launch timer to 200000



Duan Bo Hao 2009-03-10 13:23 鍙戣〃璇勮
]]>
The type java.lang.Object cannot be resolved. It is indirectly referenced from required .class files http://www.aygfsteel.com/duanbo/archive/2008/07/24/217111.htmlDuan Bo HaoDuan Bo HaoThu, 24 Jul 2008 02:29:00 GMThttp://www.aygfsteel.com/duanbo/archive/2008/07/24/217111.htmlhttp://www.aygfsteel.com/duanbo/comments/217111.htmlhttp://www.aygfsteel.com/duanbo/archive/2008/07/24/217111.html#Feedback1http://www.aygfsteel.com/duanbo/comments/commentRss/217111.htmlhttp://www.aygfsteel.com/duanbo/services/trackbacks/217111.htmlThe project was not built since its build path is incomplete. The project was not built since its build path is incomplete. Fix the build path then try building this project
The type java.lang.Object cannot be resolved. It is indirectly referenced from required .class files

鍑虹従浠ヤ笂璦婃伅鐨勫師鍥犳槸鍥犵偤浣犺浜嗗鍊嬬増鏈殑jre鎴杍dk鐨勯棞淇傘傛湰渚咵clipse鍦ㄥ緩绔嬪皥妗堟檪錛屾渻鑷嫊鍙冪収浣犵殑jre璺緫錛屼絾澶氬嬬増鏈氨娌掕睛娉曚簡銆?
浣犲彧鑳芥墜鍕曞緩绔?#8230;
1. 閫插叆window\preferences\java\Installed JREs
1)鎸堿dd
2)杓稿叆JRE Name, 渚婮DK1.5.0.03
3)JRE home directory, 閬告搰瀹夎鐨勮礬寰?
4)鎸塐K
2. 閫插叆Project\properties\Java Bulid Path
1)Add library
2)閬窲RE System Library寰屾寜Next
3)閬竪orkplace default JRE寰屾寜finish...



Duan Bo Hao 2008-07-24 10:29 鍙戣〃璇勮
]]>
Another problem of HelloWorldhttp://www.aygfsteel.com/duanbo/archive/2008/05/05/198434.htmlDuan Bo HaoDuan Bo HaoMon, 05 May 2008 06:05:00 GMThttp://www.aygfsteel.com/duanbo/archive/2008/05/05/198434.htmlhttp://www.aygfsteel.com/duanbo/comments/198434.htmlhttp://www.aygfsteel.com/duanbo/archive/2008/05/05/198434.html#Feedback0http://www.aygfsteel.com/duanbo/comments/commentRss/198434.htmlhttp://www.aygfsteel.com/duanbo/services/trackbacks/198434.htmlI composed a code as below:

package duanbo;

public class HelloWorld
{
        
public static void main(String arg[])
        {
            System.out.println(
"Hello World");
        }

}

The HelloWorld.java was put on root of E: , I excuse the compile/run process :
E:\>javac HelloWorld.java

E:\
>java HelloWorld

The first step was ok. And throw out "Exception in thread "main" java.lang.NoClassDefFoundError: HelloWorld (wrong name: duanbo/HelloWorld)" at step 2.

I think may be I should move the HelloWorld.class to E:\duanbo. So did it.

Redo the up steps. The erroe was same as before.

After some search, I got the right command.

E:\>javac HelloWorld.java

E:\
>java duanbo.HelloWorld




Duan Bo Hao 2008-05-05 14:05 鍙戣〃璇勮
]]>
A good way to debug Java which supplied by JDKhttp://www.aygfsteel.com/duanbo/archive/2008/05/05/198426.htmlDuan Bo HaoDuan Bo HaoMon, 05 May 2008 05:31:00 GMThttp://www.aygfsteel.com/duanbo/archive/2008/05/05/198426.htmlhttp://www.aygfsteel.com/duanbo/comments/198426.htmlhttp://www.aygfsteel.com/duanbo/archive/2008/05/05/198426.html#Feedback0http://www.aygfsteel.com/duanbo/comments/commentRss/198426.htmlhttp://www.aygfsteel.com/duanbo/services/trackbacks/198426.html You could add this parameter to find how java class loader work .

javac -verbose classname.java
java -verbose classname




Duan Bo Hao 2008-05-05 13:31 鍙戣〃璇勮
]]>
The knowledge about HelloWorld of Javahttp://www.aygfsteel.com/duanbo/archive/2008/05/05/198425.htmlDuan Bo HaoDuan Bo HaoMon, 05 May 2008 05:29:00 GMThttp://www.aygfsteel.com/duanbo/archive/2008/05/05/198425.htmlhttp://www.aygfsteel.com/duanbo/comments/198425.htmlhttp://www.aygfsteel.com/duanbo/archive/2008/05/05/198425.html#Feedback0http://www.aygfsteel.com/duanbo/comments/commentRss/198425.htmlhttp://www.aygfsteel.com/duanbo/services/trackbacks/198425.html
Under no circumstance, I think, you could speak that :" the java HelloWorld sample is easy."
We could study a lot in this lesson.

Let me demo the right code firstly.

public class HelloWorld
{
        
public static void main(String arg[])
        {
            System.out.println(
"Hello World");
        }

}

You should advance some questions about it, or you ...

1. can the "public" keyword be skip?
2. can we change the "String arg[]" parameter to "int arg[]"?
3. does the "void" phrase could be put befor "static", as "public void static mian(String arg[])" ?
4. could the "arg[]" be modified to other name ?

Please find the answer to them with search engine.


Duan Bo Hao 2008-05-05 13:29 鍙戣〃璇勮
]]>
Java Adapter cases.http://www.aygfsteel.com/duanbo/archive/2008/05/05/198417.htmlDuan Bo HaoDuan Bo HaoMon, 05 May 2008 05:19:00 GMThttp://www.aygfsteel.com/duanbo/archive/2008/05/05/198417.htmlhttp://www.aygfsteel.com/duanbo/comments/198417.htmlhttp://www.aygfsteel.com/duanbo/archive/2008/05/05/198417.html#Feedback0http://www.aygfsteel.com/duanbo/comments/commentRss/198417.htmlhttp://www.aygfsteel.com/duanbo/services/trackbacks/198417.htmlStudy tha adapter pattern this morning. Found some tutorial are not as good as I imaged.

I parse my code about the adapter to demo it.

Firstly, the object adapter:

package duanbo.patterns.adapter;

public class ObjectAdapter
{
    
public static void main(String[] args){   
        PutBall pb 
= new PutBall();   
           
        System.out.println(
"BasketBall");   
        BasketballBag bb 
= new BasketballBag();   
        pb.putBalls(bb);   
           
        System.out.println(
"FootBall");
        FootballBag fb 
= new FootballBag();   
        BallBag bbag 
= new BallBag(fb);   
        pb.putBalls(bbag);   
    }

}


class BallBag extends BasketballBag
{
    FootballBag fb;

    
public BallBag(FootballBag fb)
    
{
        
this.fb = fb;
    }


    
public void putball()
    
{
        fb.putFootball();
    }

}


class BasketballBag
{
    
public void putball()
    
{
        System.out.println(
"Put in BasketBall.");
    }

}


class PutBall
{
    
public void putBalls(BasketballBag bb)
    
{
        bb.putball();
    }

}


class FootballBag
{
    
public void putFootball()
    
{
        System.out.println(
"Put in FootBall.");
    }

}

And the second demo: Class Adapter:

package duanbo.patterns.adapter;

public class ClassAdapter extends RoundPeg implements ISquarePeg
{
    
private RoundPeg roundPeg;

    
public ClassAdapter(RoundPeg peg)
    
{
        
this.roundPeg = peg;
    }


    
public void insert(String str)
    
{
        roundPeg.insertIntoHole(str);
    }


}


interface IRoundPeg
{
    
public void insertIntoHole(String msg);
}


interface ISquarePeg
{
    
public void insert(String str);
}


class SquarePeg implements ISquarePeg
{
    
public void insert(String str)
    
{
        System.out.println(
"SquarePeg insert():" + str);
    }

}


class RoundPeg implements IRoundPeg
{
    
public void insertIntoHole(String msg)
    
{
        System.out.println(
"RoundPeg insertIntoHole():" + msg);
    }

}


Duan Bo Hao 2008-05-05 13:19 鍙戣〃璇勮
]]>
Android 鐥涜嫤鍥炲繂涔嬩簩http://www.aygfsteel.com/duanbo/archive/2008/03/06/184334.htmlDuan Bo HaoDuan Bo HaoThu, 06 Mar 2008 11:19:00 GMThttp://www.aygfsteel.com/duanbo/archive/2008/03/06/184334.htmlhttp://www.aygfsteel.com/duanbo/comments/184334.htmlhttp://www.aygfsteel.com/duanbo/archive/2008/03/06/184334.html#Feedback0http://www.aygfsteel.com/duanbo/comments/commentRss/184334.htmlhttp://www.aygfsteel.com/duanbo/services/trackbacks/184334.html          new RelativeLayout.LayoutParams(LayoutParams.WRAP_CONTENT,LayoutParams.WRAP_CONTENT);
        relativeParams.addRule(RelativeLayout.CENTER_HORIZONTAL)
            LinearLayout.LayoutParams lineParams = new LinearLayout.LayoutParams(LinearLayout.LayoutParams.WRAP_CONTENT,     LinearLayout.LayoutParams.WRAP_CONTENT);

        LinearLayout line = new LinearLayout(this);
        LinearLayout line1 = new LinearLayout(this);

        line.addView(myTt0, lineParams);
        line.addView(myTx0, lineParams);
        line.addView(myTx1, lineParams);
        
        line1.addView(myTx, lineParams);
        
        relativeLayout.addView(line, relativeParams);    //Attention:if the two params are same, the larger layout will be cliped.
        relativeLayout1.addView(line1, relativeParams);
 ////////////////////////////////////////////////////////////
        So the relativeParams should use different ones attach to more than one layouts as below:

        relativeLayout.addView(line, relativeParams);
        relativeLayout1.addView(line1, relativeParams_c);


Duan Bo Hao 2008-03-06 19:19 鍙戣〃璇勮
]]>
Android 鐥涜嫤鍥炲繂涔嬩竴http://www.aygfsteel.com/duanbo/archive/2008/03/06/184331.htmlDuan Bo HaoDuan Bo HaoThu, 06 Mar 2008 11:14:00 GMThttp://www.aygfsteel.com/duanbo/archive/2008/03/06/184331.htmlhttp://www.aygfsteel.com/duanbo/comments/184331.htmlhttp://www.aygfsteel.com/duanbo/archive/2008/03/06/184331.html#Feedback0http://www.aygfsteel.com/duanbo/comments/commentRss/184331.htmlhttp://www.aygfsteel.com/duanbo/services/trackbacks/184331.html
    Use SetBackGrounp() target a View component, it will enlange width to the drawable be set.

    So it will influence the Center function.

    Such us:
 
    TextView tx = new TextView(this);
    tx.setText("test"); //the width will be same as the text length.
    tx.setBackGrounp(bitmap); //the width will be enlanged as bitmap's width.



Duan Bo Hao 2008-03-06 19:14 鍙戣〃璇勮
]]>
J2ME 鍐呭瓨娉勯湶http://www.aygfsteel.com/duanbo/archive/2007/12/19/168713.htmlDuan Bo HaoDuan Bo HaoWed, 19 Dec 2007 05:00:00 GMThttp://www.aygfsteel.com/duanbo/archive/2007/12/19/168713.htmlhttp://www.aygfsteel.com/duanbo/comments/168713.htmlhttp://www.aygfsteel.com/duanbo/archive/2007/12/19/168713.html#Feedback0http://www.aygfsteel.com/duanbo/comments/commentRss/168713.htmlhttp://www.aygfsteel.com/duanbo/services/trackbacks/168713.html     鐜板湪宸茬煡鍙互棰勯槻鍐呭瓨娉勯湶鐨勬帾鏂芥槸:
    浣跨敤瀹岀殑瀵硅薄,鐗瑰埆鏄ぇ瀵硅薄鍗充嬌 緗?null, 鍚﹀垯鍙兘闄峰叆寰幆寮曠敤瀵艱嚧JVM涓嶈兘閲婃斁.
    鍑忓皬鍥劇墖灝哄.
    鍑忓皬閲嶆柊new瀵硅薄.


Duan Bo Hao 2007-12-19 13:00 鍙戣〃璇勮
]]>
主站蜘蛛池模板: 南宫市| 吴川市| 淄博市| 磐安县| 连山| 乐平市| 息烽县| 定南县| 江陵县| 汽车| 扎赉特旗| 桂阳县| 呈贡县| 视频| 武定县| 南投市| 明星| 定西市| 麻城市| 包头市| 且末县| 惠水县| 新宁县| 万载县| 温宿县| 自贡市| 南城县| 称多县| 金门县| 论坛| 长沙县| 石景山区| 眉山市| 喀什市| 深州市| 咸丰县| 阳春市| 遂宁市| 武威市| 甘南县| 长海县|