DIY的热潮中使得更多的人开始自己动手搭建属于自己的网络,在这过程中首先是制定规划,然后购买产品,最后就是制作。网络产品的购买一定要看清产品再买,假的产品或质量次的产品会直接影响到网络的稳定,在选购好了产品后就该动手搭建它了。
在搭建网络的时候,网线的制作是一大重点,整个过程都要准确到位,排序的错误和压制的不到位都将直接影响网线的使用,出现网络不通或者网速慢。接下来笔者将简单的介绍一下制作标准的网线的制作。
一、工具和材料的认识
在制作网线前,大家必须准备相应的工具和材料。首要的工具是RJ-45工具钳,该工具上有三处不同的功能,最前端是剥线口,它用来剥开双绞线外壳。中间是压制RJ-45头工具槽,这里可将RJ-45头与双绞线合成。离手柄最近端是锋利的切线刀,此处可以用来切断双绞线。
接下来需要的材料是RJ-45头和双绞线。由于RJ-45头像水晶一样晶莹透明,所以也被俗称为水晶头,每条双绞线两头通过安装RJ-45水晶头来与网卡和集线器(或交换机)相连。而双绞线是指封装在绝缘外套里的由两根绝缘导线相互扭绕而成的四对线缆,它们相互扭绕是为了降低传输信号之间的干扰。
| RJ-45工具钳 |
| RJ-45水晶头(点击看大图) |
| 五类超五类线(点击看大图) |
俗话说:“工欲善其事,必先利其器”。在这里我们要向大家介绍如何使你的工具很“利”,以达到事半功倍的效果。像上面我们看到的RJ-45工具钳,有时会出现制作出不合格的网线,这是因为工具钳的齿口没有对准水晶头上的金属片,从而导致金属片不能与网线正确接触,因此就出现网线连不通等现象。所以在选择RJ-45工具钳时,一定要注意工具钳压下来后它上面的每个齿口都能与水晶头上的金属片一一对应好,这样才能保证制作出合格的网线。
二、网线的标准,和连接方法:
双交线做法有两种国际标准:EIA/TIA568A和EIA/TIA568B,而双交线的连接方法也主要有两种:直通线缆和交叉线缆。直通线缆的水镜头两端都遵循568A或568B标准,双交线的每组线在两端是一一对应的,颜色相同的在两端水晶头的相应槽中保持一致。它主要用在交换机(或集线器)Uplink口连接交换机(或集线器)普通端口或交换机普通端口连接计算机网卡上。而交叉线缆的水晶头一端遵循568A,而另一端则采用568B标准,即A水晶头的1、2对应B水晶头的3、6,而A水晶头的3、6对应B水晶头的1、2,它主要用在交换机(或集线器)普通端口连接到交换机(或集线器)普通端口或网卡连网卡上。
三、网线的制作:
(1)剪断:利用压线钳的剪线刀口剪取适当长充的网线。
(2)剥皮:用压线钳的剪线刀口将线头剪齐,再将线头放入剥线刀口,让线头角及挡板,稍微握紧压线钳慢慢旋转,让刀口划开双绞线的保护胶皮,拔下胶皮。(注意:剥与大拇指一样长就行了)
【小提示】网线钳挡位离剥线刀口长度通常恰好为水晶头长度,这样可以有效避免剥线过长或过短。剥线过长一则不美观,另一方面因网线不能被水晶头卡住,容易松动;剥线过短,因有包皮存在,太厚,不能完全插到水晶头底部,造成水晶头插针不能与网线芯线完好接触,当然也不能制作成功了。
(3)排序:剥除外包皮后即可见到双绞线网线的4对8条芯线,并且可以看到每对的颜色都不同。每对缠绕的两根芯线是由一种染有相应颜色的芯线加上一条只染有少许相应颜色的白色相间芯线组成。四条全色芯线的颜色为:棕色、橙色、绿色、蓝色。 每对线都是相互缠绕在一起的,制作网线时必须将4个线对的8条细导线一一拆开,理顺,捋直,然后按照规定的线序排列整齐。
目前,最常使用的布线标准有两个,即T568A标准和T568B标准。T568A标准描述的线序从左到右依次为:1-白绿、2-绿、3-白橙、4-蓝、5-白蓝、6-橙、7-白棕、8-棕。T568B标准描述的线序从左到右依次为:1-白橙、2-橙、3-白绿、4-蓝、5-白蓝、6-绿、7-白棕、8-棕。在网络施工中,建议使用T568B标准。当然,对于一般的布线系统工程,T568A也同样适用。
排列水晶头8根针脚:
将水昌头有塑造料弹簧片的一面向下,有针脚的一方向上,使有针脚的一端指向远离自己的方向,有方型孔的一端对着自己,此时,最左边的是第1脚,最右边的是第8脚,其余依次顺序排列。
| T568A标准和T568B标准线序表 |
(4)剪齐:把线尽量抻直(不要缠绕)、压平(不要重叠)、挤紧理顺(朝一个方向紧靠),然后用压线钳把线头剪平齐。这样,在双绞线插入水晶头后,每条线都能良好接触水晶头中的插针,避免接触不良。如果以前剥的皮过长,可以在这里将过长的细线剪短,保留的去掉外层绝缘皮的部分约为14mm,这个长度正好能将各细导线插入到各自的线槽。如果该段留得过长,一来会由于线对不再互绞而增加串扰,二来会由于水晶头不能压住护套而可能导致电缆从水晶头中脱出,造成线路的接触不良甚至中断。
(5)插入:一和以拇指和中指捏住水晶头,使有塑料弹片的一侧向下,针脚一方朝向远离自己的方向,并用食指抵住;另一手捏住双绞线外面的胶皮,缓缓用力将8条导线同时沿RJ-45头内的8个线槽插入,一直插到线槽的顶端。
(6)压制:确认所有导线都到位,并透地水晶头检查一遍线序无误后,就可以用压线钳制RJ-45头了。将RJ-45头从无牙的一侧推入压线钳夹槽后,用力握紧线钳(如果您的力气不够大,可以使用双手一起压),将突出在外面的针脚全部压入水晶并头内。
三、结束语
在把水晶头的两端都做好后即可用网线测试仪进行测试,如果测试仪上8个指示灯都依次为绿色闪过,证明网线制作成功。如果出现任何一个灯为红灯或黄灯,都证明存在断路或者接触不良现象,此时最好先对两端水晶头再用网线钳压一次,再测,如果故障依旧,再检查一下两端芯线的排列顺序是否一样,如果不一样,随剪掉一端重新按另一端芯线排列顺序制做水晶头。如果芯线顺序一样,但测试仪在重夺后仍显示红色灯或黄色灯,则表明其中肯定存在对应芯线接触不好。此时没办法了,只好先剪掉一端按另一端芯线顺序重做一个水晶头了,再测,如果故障消失,则不必重做另一端水晶头,否则还得把原来的另一端水晶头也剪掉重做。直到测试全为绿色指示灯闪过为止。对于制作的方法不同测试仪上的指示灯亮的顺序也不同,如果是直通线测试仪上的灯应该是依次顺序的亮,如果做的是双绞线那测试仪的一段的闪亮顺序应该是3、6、1、4、5、2、7、8。
| 网线测试仪 |
上面向大家介绍了常用的T568A、T568B国际标准网线制作方法,希望无论是初学者还是网络老手都能够按照标准的方法去制作网线,这样对以后网络的维护会带来许多便利。
另:买线时注意一下,用的是5类线,3类线只能达到16M,4类线20M,只有5类线以及超5类等才能到达100M的.线的长度不能超过100米。
摘要:这个500个英语谚语是比较常见的谚语,不过中文的翻译多数都比较牵强,只能作为参考,对谚语感兴趣的同志建议买一本专门的谚语词典。我手头的《简明英语谚语词典)(A CONCISE DICTIONARY OF ENGLISH PROVERBS)》-上海译文出版社1993年出版,陈文伯、戴晨编-共收集1200条左右的谚语,解释比较详细,而且有例句,建议收藏一本,备不时之需。 --衣人 2003.12.13
A bad beginning makes a bad ending.
不善始者不善终。
A bad thing never dies.
遗臭万年。
A bad workman always blames his tools.
不会撑船怪河弯。
A bird in the hand is worth than two in the bush.
一鸟在手胜过双鸟在林。
A boaster and a liar are cousins-german.
吹牛与说谎本是同宗。
A bully is always a coward.
色厉内荏。
A burden of one's choice is not felt.
爱挑的担子不嫌重。
A candle lights others and consumes itself.
蜡烛照亮别人,却毁灭了自己。
A cat has 9 lives.
猫有九条命。
A cat may look at a king.
猫也可以打量国王,意为人人平等。
A close mouth catches no flies.
病从口入。
A constant guest is never welcome.
常客令人厌。
Actions speak louder than words.
事实胜于雄辩。
Adversity leads to prosperity.
穷则思变。
Adversity makes a man wise, not rich.
逆境出人才。
A fair death honors the whole life.
死得其所,流芳百世。
A faithful friend is hard to find.
知音难觅。
A fall into a pit, a gain in your wit.
吃一堑,长一智。
A fox may grow gray, but never good.
江山易改,本性难移。
A friend in need is a friend indeed.
患难见真情。
A friend is easier lost than found.
得朋友难,失朋友易。
A friend is never known till a man has need.
需要之时方知友。
A friend without faults will never be found.
没有十全十美的朋友。
'After you' is good manners.
“您先请”是礼貌。
A good beginning is half done.
良好的开端是成功的一半。
A good beginning makes a good ending.
善始者善终。
A good book is a good friend.
好书如挚友。
A good book is the best of friends, the same today and forever.
一本好书,相伴一生。
A good conscience is a soft pillow.
不做亏心事,不怕鬼叫门。
A good fame is better than a good face.
美名胜过美貌。
A good husband makes a good wife.
夫善则妻贤。
A good medicine tastes bitter.
良药苦口。
A good wife health is a man's best wealth.
妻贤身体好是男人最大的财富。
A great talker is a great liar.
说大话者多谎言。
A hedge between keeps friendship green.
君子之交淡如水。
A joke never gains an enemy but loses a friend.
戏谑不能化敌为友,只能使人失去朋友。
A leopard cannot change its spots.
积习难改。
A liar is not believed when he speaks the truth.
说谎者即使讲真话也没人相信。
A light heart lives long.
静以修身。
A little body often harbors a great soul.
浓缩的都是精品。
A little knowledge is a dangerous thing.
一知半解,自欺欺人。
A little pot is soon hot.
狗肚子盛不得四两油。
All are brave when the enemy flies.
敌人逃窜时,人人都成了勇士。
All good things come to an end.
天下没有不散的筵席。
All rivers run into sea.
海纳百川。
All roads lead to Rome.
条条大路通罗马。
All that ends well is well.
结果好,就一切都好。
All that glitters is not gold.
闪光的不一定都是金子。
All things are difficult before they are easy.
凡事总是由难而易。
All work and no play makes Jack a dull boy.
只会用功不玩耍,聪明孩子也变傻。
A man becomes learned by asking questions.
不耻下问才能有学问。
A man can do no more than he can.
凡事都应量力而行。
A man cannot spin and reel at the same time.
一心不能二用。
A man is known by his friends.
什么人交什么朋友。
A man of words and not of deeds is like a garden full of weeds.
光说空话不做事,犹如花园光长刺。
A man without money is no man at all.
一分钱难倒英雄汉。
A merry heart goes all the way.
心旷神怡,事事顺利。
A miss is as good as a mile.
失之毫厘,差之千里。
A mother's love never changes.
母爱永恒。
An apple a day keeps the doctor away.
一天一苹果,不用请医生。
A new broom sweeps clean.
新官上任三把火。
An eye for an eye and a tooth for a tooth.
以眼还眼,以牙还牙。
An hour in the morning is worth two in the evening.
一日之计在于晨。
An old dog cannot learn new tricks.
老狗学不出新把戏。
An ounce of luck is better than a pound of wisdom.
聪明才智,不如运气。
An ounce of prevention is worth a pound of cure.
预防为主,治疗为辅。
A rolling stone gathers no moss.
滚石不生苔,转业不聚财。
As a man sows, so he shall reap.
种瓜得瓜,种豆得豆。
A single flower does not make a spring.
一花独放不是春,百花齐放春满园。
A snow year, a rich year.
瑞雪兆丰年。
A sound mind in a sound body.
健全的精神寓于健康的身体。
A still tongue makes a wise head.
寡言者智。
A stitch in time saves nine.
小洞不补,大洞吃苦。
A straight foot is not afraid of a crooked shoe.
身正不怕影子斜。
A wise head makes a close mouth.
真人不露相,露相非真人。
A word spoken is past recalling.
一言既出,驷马难追。
A year's plan starts with spring.
一年之计在于春。
A young idler, an old beggar.
少壮不努力,老大徒伤悲。
Bad news has wings.
好事不出门,坏事传千里。
Barking dogs seldom bite.
吠犬不咬人。
Beauty lies in the love's eyes.
情人眼里出西施。
Be swift to hear, slow to speak.
听宜敏捷,言宜缓行。
Better late than never.
不怕慢,单怕站。
Better to ask the way than go astray.
问路总比迷路好。
Between friends all is common.
朋友之间不分彼此。
Birds of a feather flock together.
物以类聚,人以群分。
Blood is thicker than water.
血浓于水。
Blood will have blood.
血债血偿。
Books and friends should be few but good.
读书如交友,应求少而精。
Business is business.
公事公办。
Business is the salt of life.
事业是人生的第一需要。
By reading we enrich the mind, by conversation we polish it.
读书使人充实,交谈使人精明。
Cannot see the wood for the trees.
一叶障目,不见泰山。
Care and diligence bring luck.
谨慎和勤奋才能抓住机遇。
Caution is the parent of safety.
小心驶得万年船。
Cheats never prosper.
骗人发不了财。
Children are what the mothers are.
耳濡目染,身教言传。
Choose an author as you choose a friend.
择书如择友。
Come what may, heaven won't fall.
做你的吧,天塌不下来。
Complacency is the enemy of study.
学习的敌人是自己的满足。
Confidence in yourself is the first step on the road to success.
自信是走向成功的第一步。
Constant dripping wears away a stone.
水滴石穿,绳锯木断。
Content is better than riches.
知足者常乐。
Count one's chickens before they are hatched.
蛋未孵先数雏。
Courtesy on one side only lasts not long.
来而不往非礼也。
Creep before you walk.
循序渐进。
Cry for the moon.
海底捞月。
Custom is a second nature.
习惯是后天养成的。
Custom makes all things easy.
有个好习惯,事事皆不难。
Diamond cuts diamond.
强中自有强中手。
Do as the Romans do.
入乡随俗。
Do as you would be done by.
己所不欲,勿施于人。
Doing is better than saying.
与其挂在嘴上,不如落实在行动上。
Do it now.
机不可失,时不再来。
Do nothing by halves.
凡事不可半途而废。
Don't claim to know what you don't know.
不要不懂装懂。
Don't have too many irons in the fire.
不要揽事过多。
Don't make a mountain out of a molehill.
不要小题大做。
Don't put off till tomorrow what should be done today.
今日事,今日毕。
Don't put the cart before the horse.
不要本末倒置。
Don't trouble trouble until trouble troubles you.
不要自找麻烦。
Don't try to teach your grandmother to suck eggs.
不要班门弄斧。
Do well and have well.
善有善报。
Each bird love to hear himself sing.
孤芳自赏。
Early to bed and early to rise makes a man healthy, wealthy and wise.
早睡早起身体好。
Easier said than done.
说得容易,做得难。
Easy come, easy go.
来也匆匆,去也匆匆。
Eat to live, but not live to eat.
人吃饭是为了活着,但活着不是为了吃饭。
Empty vessels make the greatest sound.
实磨无声空磨响,满瓶不动半瓶摇。
Envy has no holidays.
忌妒之人无宁日。
Even Homer sometimes nods.
智者千虑,必有一失。
Even reckoning makes long friends.
亲兄弟,明算账。
Every advantage has its disadvantage.
有利必有弊。
Everybody's business is nobody's business.
人人负责,等于没人负责。
Every day is not Sunday.
好景不常在。
Every dog has his day.
谁都有得意的时候。
Every door may be shut, but death's door.
人生在世,唯死难逃。
Every heart has its own sorrow.
各人有各人的苦恼。
Every little helps a mickle.
聚沙成塔,集腋成裘。
Every man for himself, and the devil takes the hindmost.
人不为己,天诛地灭。
Every man has his faults.
金无足赤,人无完人。
Every man has his hobbyhorse.
萝卜青菜,各有所爱。
Every man has his weak side.
人人都有弱点。
Every man is the architect of his own fortune.
自己的命运自己掌握。
Every minute counts.
分秒必争。
Every mother's child is handsome.
孩子是自己的好。
Every potter praises hit pot.
王婆卖瓜,自卖自夸。
Everything is good when new, but friends when old.
东西是新的好,朋友是老的亲。
Example is better then percept.
说一遍,不如做一遍。
Experience is the father of wisdom and memory the mother.
经验是智慧之父,记忆是智慧之母。
Experience must be bought.
吃一堑,长一智。
Fact speak louder than words.
事实胜于雄辩。
Failure is the mother of success.
失败是成功之母。
False friends are worse than bitter enemies.
明枪易躲,暗箭难防。
Far from eye, far from heart.
眼不见,心不烦。
Far water does not put out near fire.
远水救不了近火。
Faults are thick where love is thin.
一朝情意淡,样样不顺眼。
Fear always springs from ignorance.
恐惧源于无知。
Fields have eyes, and woods have ears.
隔墙有耳。
Fire and water have no mercy.
水火无情。
Fire is a good servant but a bad master.
火是一把双刃剑。
First come, first served.
先来后到。
First impressions are half the battle.
初次见面,印象最深。
First think and then speak.
先想后说。
Fools grow without watering.
朽木不可雕。
Fool's haste is no speed.
欲速则不达。
Fools has fortune.
呆人有呆福。
Fools learn nothing from wise men, but wise men learn much from fools.
愚者不学无术,智者不耻下问。
Forbidden fruit is sweet.
禁果格外香。
Fortune favors those who use their judgement.
机遇偏爱善断之人。
Fortune knocks once at least at every man's gate.
风水轮流转。
Four eyes see more than two.
集思广益。
Friends agree best at distance.
朋友之间也会保持距离。
Friends are thieves of time.
朋友是时间的窃贼。
Friends must part.
再好的朋友也有分手的时候。
Genius is nothing but labor and diligence.
天才不过是勤奋而已。
Give a dog a bad name and hang him.
众口铄金,积毁销骨。
God helps those who help themselves.
自助者天助。
Gold will not buy anything.
黄金并非万能。
Good for good is natural, good for evil is manly.
以德报德是常理,以德报怨大丈夫。
Good health is over wealth.
健康是最大的财富。
Good medicine for health tastes bitter to the mouth.
良药苦口利于病。
Good watch prevents misfortune.
谨慎消灾。
Great barkers are no biters.
好狗不挡道。
Great hopes make great man.
伟大的抱负造就伟大的人物。
Great minds think alike.
英雄所见略同。
Great men have great faults.
英雄犯大错误。
Great men's sons seldom do well.
富不过三代。
Great trees are good for nothing but shade.
大树底下好乘凉。
Great wits have short memories.
贵人多忘事。
Greedy folks have long arms.
心贪手长。
Guilty consciences make men cowards.
做贼心虚。
Habit cures habit.
心病还需心药医。
Handsome is he who does handsomely.
行为漂亮才算美。
Happiness takes no account of time.
欢乐不觉时光过。
Happy is he who owes nothing.
要想活得痛快,身上不能背债。
Happy is the man who learns from the misfortunes of others.
吸取他人教训,自己才会走运。
Harm set, harm get.
害人害己。
Hasty love, soon cold.
一见钟情难维久。
Health is better than wealth.
健康胜过财富。
Health is happiness.
健康就是幸福。
Hear all parties.
兼听则明。
Heaven never helps the man who will not act.
自己不动,叫天何用。
He is a fool that forgets himself.
愚者忘乎所以。
He is a good friend that speaks well of us behind our backs.
背后说好话,才是真朋友。
He is a wise man who speaks little.
聪明不是挂在嘴上。
He is lifeless that is faultless.
只有死人才不犯错误。
He is not fit to command others that cannot command himself.
正人先正己。
He is not laughed at that laughs at himself first.
自嘲者不会让人见笑。
He is wise that is honest.
诚实者最明智。
He knows most who speaks least.
大智若愚。
He laughs best who laughs last.
谁笑到最后,谁笑得最好。
He sets the fox to keep the geese.
引狼入室。
He that climbs high falls heavily.
爬得越高,摔得越重。
He that will not work shall not eat.
不劳动者不得食。
He who does not advance loses ground.
逆水行舟,不进则退。
He who makes constant complaint gets little compassion.
经常诉苦,没人同情。
He who makes no mistakes makes nothing.
想不犯错误,就一事无成。
He who risks nothing gains nothing.
收获与风险并存。
History repeats itself.
历史往往重演。
Honesty is the best policy.
做人诚信为本。
Hope for the best, but prepare for the worst.
抱最好的愿望,做最坏的打算。
I cannot be your friend and your flatterer too.
朋友不能阿谀奉承。
If a man deceives me once, shame on him, if he deceives me twice, shame on me.
上当一回头,再多就可耻。
If you make yourself an ass, don't complain if people ride you.
人善被人欺,马善被人骑。
If your ears glow, someone is talking of you.
耳朵发烧,有人念叨。
If you run after two hares, you will catch neither.
脚踏两条船,必定落空。
If you sell the cow, you sell her milk too.
杀鸡取卵。
If you venture nothing, you will have nothing.
不入虎穴,焉得虎子。
If you want knowledge, you must toil for it.
要想求知,就得吃苦。
Industry is the parent of success.
勤奋是成功之母。
It is better to die when life is a disgrace.
宁为玉碎,不为瓦全。
It is easier to get money than to keep it.
挣钱容易攒钱难。
It is easy to be wise after the event.
事后诸葛亮好当。
It is easy to open a shop but hard to keep it always open.
创业容易守业难。
It is hard to please all.
众口难调。
It is never too old to learn.
活到老,学到老。
It is no use crying over spilt milk.
覆水难收。
It is the first step that costs troublesome.
万事开头难。
It is the unforeseen that always happens.
天有不测风云,人有旦夕祸福。
It is too late to grieve when the chance is past.
坐失良机,后悔已迟。
It never rains but it pours.
不鸣则已,一鸣惊人。
It takes three generations to make a gentleman.
十年树木,百年树人。
Jack of all trades and master of none.
门门精通,样样稀松。
Judge not from appearances.
人不可貌相,海不可斗量。
Justice has long arms.
天网恢恢,疏而不漏。
Keep good men company and you shall be of the number.
近朱者赤,近墨者黑。
Kill two birds with one stone.
一箭双雕。
Kings go mad, and the people suffer for it.
君王发狂,百姓遭殃。
Kings have long arms.
普天之下,莫非王土。
Knowledge is power.
知识就是力量。
Knowledge makes humble, ignorance makes proud.
博学使人谦逊,无知使人骄傲。
Learn and live.
活着,为了学习。
Learning makes a good man better and ill man worse.
好人越学越好,坏人越学越坏。
Learn not and know not.
不学无术。
Learn to walk before you run.
先学走,再学跑。
Let bygones be bygones.
过去的就让它过去吧。
Let sleeping dogs lie.
别惹麻烦。
Let the cat out of the bag.
泄漏天机。
Lies can never changes fact.
谎言终究是谎言。
Lies have short legs.
谎言站不长。
Life is but a span.
人生苦短。
Life is half spent before we know what it is.
人过半生,方知天命。
Life is not all roses.
人生并不是康庄大道。
Life without a friend is death.
没有朋友,虽生犹死。
Like a rat in a hole.
瓮中之鳖。
Like author, like book.
文如其人。
Like father, like son.
有其父必有其子。
Like for like.
一报还一报。
Like knows like.
惺惺相惜。
Like mother, like daughter.
有其母必有其女。
Like teacher, like pupil.
什么样的老师教什么样的学生。
Like tree, like fruit.
羊毛出在羊身上。
Little things amuse little minds.
小人无大志。
Look before you leap.
摸清情况再行动。
Lookers-on see more than players.
当局者迷,旁观者清。
Losers are always in the wrong.
胜者为王,败者为寇。
Lost time is never found again.
岁月既往,一去不回。
Love at first sight.
一见钟情。
Love cannot be compelled.
爱情不能强求。
Love is blind.
爱情是盲目的。
Love is full of trouble.
爱情充满烦恼。
Love is never without jealousy.
没有妒忌就没有爱情。
Love me, love my dog.
爱屋及乌。
Make hay while the sun shines.
良机勿失。
Make your enemy your friend.
化敌为友。
Man is the soul of the universe.
人是万物之灵。
Man proposes, God disposes.
谋事在人,成事在天。
Many hands make light work.
众人拾柴火焰高。
Many heads are better than one.
三个臭皮匠,赛过诸葛亮。
Many things grow in the garden that were never sown there.
有心栽花花不发,无心插柳柳成荫。
Measure for measure.
针锋相对。
Misfortunes never come alone.
祸不单行。
Misfortune tests the sincerity of friends.
患难见真情。
Money isn't everything.
钱不是万能的。
Murder will out.
纸包不住火。
My son is my son till he has got him a wife, but my daughter is my daughter all the days of her life.
儿子婚前是儿子,女儿终生是女儿。
Nature is the true law.
天行有常,不为尧存,不为桀亡。
Necessity is the mother of invention.
需要是发明的动力。
Never fish in trouble water.
不要混水摸鱼。
Never judge from appearances.
不可以貌取人。
Never say die.
永不言败。
Never too old to learn, never too late to turn.
亡羊补牢,为时未晚。
New wine in old bottles.
旧瓶装新酒。
No cross, no crown.
不经历风雨,怎么见彩虹。
No garden without its weeds.
没有不长草的园子。
No living man all things can.
世上没有万事通。
No man can do two things at once.
一心不可二用。
No man is born wise or learned.
没有生而知之者。
No man is content.
人心不足蛇吞象。
No man is wise at all times.
聪明一世,糊涂一时。
None are so blind as those who won't see.
视而不见。
None are so deaf as those who won't hear.
充耳不闻。
No news is good news.
没有消息就是好消息。
No one can call back yesterday.
昨日不会重现。
No pains, no gains.
没有付出就没有收获。
No pleasure without pain.
没有苦就没有乐。
No rose without a thorn.
没有不带刺的玫瑰。
No sweet without sweat.
先苦后甜。
No smoke without fire.
无风不起浪。
Nothing brave, nothing have.
不入虎穴,焉得虎子。
Nothing dries sooner than a tear.
眼泪干得最快。
Nothing in the world is difficult for one who sets his mind to it.
世上无难事,只怕有心人。
Nothing is difficult to the man who will try.
世上无难事,只要肯登攀。
Nothing seek, nothing find.
没有追求就没有收获。
Nothing is so necessary for travelers as languages.
外出旅行,语言最要紧。
Nothing is to be got without pains but poverty.
世上唯有贫穷可以不劳而获。
Not to advance is to go back.
不进则退。
Not to know what happened before one was born is always to be a child.
不懂世故,幼稚可笑。
No way is impossible to courage.
勇者无惧。
Obedience is the first duty of a soldier.
军人以服从命令为天职。
Observation is the best teacher.
观察是最好的老师。
Offense is the best defense.
进攻是最好的防御。
Old friends and old wines are best.
陈酒味醇,老友情深。
Old sin makes new shame.
一失足成千古恨。
Once a man and twice a child.
一次老,两次小。
Once a thief, always a thief.
偷盗一次,做贼一世。
Once bitten, twice shy.
一朝被蛇咬,十年怕井绳。
One boy is a boy, two boys half a boy, three boys no boy.
一个和尚挑水喝,两个和尚抬水喝,三个和尚没水喝。
One cannot put back the clock.
时钟不能倒转。
One eyewitness is better than ten hearsays.
百闻不如一见。
One false move may lose the game.
一着不慎,满盘皆输。
One good turn deserves another.
行善积德。
One hour today is worth two tomorrow.
争分夺秒效率高。
One man's fault is other man's lesson.
前车之鉴。
One never loses anything by politeness.
讲礼貌不吃亏。
One swallow does not make a summer.
一燕不成夏。
One's words reflect one's thinking.
言为心声。
Out of debt, out of danger.
无债一身轻。
Out of office, out of danger.
无官一身轻。
Out of sight, out of mind.
眼不见,心为静。
Patience is the best remedy.
忍耐是良药。
Penny wise, pound foolish.
贪小便宜吃大亏。
Plain dealing is praised more than practiced.
正大光明者,说到的多,做到的少。
Please the eye and plague the heart.
贪图一时快活,必然留下隐祸。
Pleasure comes through toil.
苦尽甘来。
Pour water into a sieve.
竹篮子打水一场空。
Practice makes perfect.
熟能生巧。
Praise is not pudding.
恭维话不能当饭吃。
Praise makes good men better, and bad men worse.
好人越夸越好,坏人越夸越糟。
Prefer loss to unjust gain.
宁可吃亏,不贪便宜。
Prevention is better than cure.
预防胜于治疗。
Pride goes before, and shame comes after.
骄傲使人落后。
Promise is debt.
一诺千金。
Proverbs are the daughters of daily experience.
谚语是日常经验的结晶。
Pull the chestnut out of fire.
火中取栗。
Put the cart before the horse.
本末倒置。
Put your shoulder to the wheel.
鼎力相助。
Reading enriches the mind.
开卷有益。
Reading is to the mind while exercise to the body.
读书健脑,运动强身。
Respect yourself, or no one else will respect you.
要人尊敬,必须自重。
Rome is not built in a day.
冰冻三尺,非一日之寒。
Saying is one thing and doing another.
言行不一。
Seeing is believing.
眼见为实。
Seek the truth from facts.
实事求是。
Send a wise man on an errand, and say nothing to him.
智者当差,不用交代。
Set a thief to catch a thief.
以贼捉贼。
Short accounts make long friends.
好朋友勤算账。
Something is better than nothing.
聊胜于无。
Soon learn, soon forgotten.
学得快,忘得快。
Soon ripe, soon rotten.
熟得快,烂得快。
Speech is silver, silence is gold.
能言是银,沉默是金。
Still water run deep.
静水常深。
Strike the iron while it is hot.
趁热打铁。
Success belongs to the persevering.
坚持就是胜利。
Take things as they come.
既来之,则安之。
Talking mends no holes.
空谈无补。
Talk of the devil and he will appear.
说曹操,曹操就到。
Tall trees catch much wind.
树大招风。
Teach others by your example.
躬亲示范。
The best hearts are always the bravest.
无私者无畏。
The best man stumbles.
伟人也有犯错时。
The cat shuts its eyes when stealing.
掩耳盗铃。
The danger past and God forgotten.
过河拆桥。
The darkest hour is nearest the dawn.
黎明前的黑暗。
The darkest place is under the candlestick.
烛台底下最暗。
The devil knows many things because he is old.
老马识途。
The devil sometimes speaks the truth.
魔鬼有时也会说真话。
The die is cast.
木已成舟。
The early bird catches the worm.
早起的鸟儿有虫吃。
The end justifies the means.
只要目的正当,可以不择手段。
The end makes all equal.
死亡面前,人人平等。
The eye is bigger than the belly.
贪多嚼不烂。
The farthest way about is the nearest way home.
抄近路反而绕远路。
The finest diamond must be cut.
玉不琢,不成器。
The fire is the test of gold, adversity of strong man.
烈火验真金,艰难磨意志。
The first step is the only difficulty.
迈出第一步是最艰难的。
The fox knew too much, that's how he lost his tail.
机关算尽太聪明,反误了卿卿性命。
The fox preys farthest from home.
兔子不吃窝边草。
The frog in the well knows nothing of the great ocean.
坐井观天。
The grass is greener on the other side.
这山望着那山高。
The greatest talkers are always least doers.
语言的巨人总是行动的矮子。
The higher up, the greater the fall.
爬得高,摔得惨。
The leopard cannot change its spots.
本性难移。
The more noble, the more humble.
人越高尚,越谦虚。
The more wit, the less courage.
初生牛犊不怕虎。
The outsider sees the most of the game.
旁观者清。
The pen is mightier than the sword.
笔能杀人。
The pot calls the kettle black.
五十步笑百步。
There are spots in the sun.
太阳也有黑点。
There are two sides to every question.
问题皆有两面。
There is a skeleton in the cupboard.
家家有本难念的经。
There is kindness to be found everywhere.
人间处处有温情。
There is no general rule without some exception.
任何法规均有例外。
There is no medicine against death.
没有长生不老药。
There is no place like home.
金窝银窝不如咱的狗窝。
There is no royal road to learning.
书山有路勤为径,学海无涯苦作舟。
The style is the man.
字如其人。
The tongue is not steel, yet it cuts.
人言可畏。
The water that bears the boat is the same that swallows it up.
水能载舟,亦能覆舟。
The wise man knows he knows nothing, the fool thinks he knows all.
清者自清,浊者自浊。
The wolf has a winning game when the shepherds quarrel.
螳螂捕蝉,黄雀在后。
The world is a ladder for some to go up and others to go down.
世界如阶梯,有人上有人下。
The world is but a little place, after all.
海内存知己,天涯若比邻。
Think twice before you do.
三思而后行。
Things at the worst will mend.
否极泰来。
Time and tide wait for no man.
时不我待。
Time cures all things.
时间是医治一切创伤的良药。
Time flies.
光阴似箭。
Time is money.
时间就是金钱。
Time lost cannot be won again.
时光流逝,不可复得。
Time past cannot be called back again.
时间不能倒流。
Time tries all.
路遥知马力,日久见人心。
Tit for tat is fair play.
人不犯我,我不犯人;人若犯我,我必犯人。
To err is human.
人非圣贤,孰能无过。
To know everything is to know nothing.
什么都知道,一如什么都不知道。
To know oneself is true progress.
人贵有自知之明。
Tomorrow never comes.
我生待明日,万事成蹉跎。
Too much familiarity breeds contempt.
过分熟悉会使人互不服气。
Too much knowledge makes the head bald.
学问太多催人老。
Too much liberty spills all.
自由放任,一事无成。
Too much praise is a burden.
过多夸奖,反成负担。
To save time is to lengthen life.
节约时间就是延长生命。
Touch pitch, and you will be defiled.
常在河边走,哪有不湿鞋。
Troubles never come singly.
福无双至,祸不单行。
Truth never grows old.
真理永存。
Turn over a new leaf.
洗心革面,改过自新。
Two dogs strive for a bone, and a third runs away with it.
鹬蚌相争,渔翁得利。
Two heads are better than one.
一个好汉三个帮。
Two of a trade seldom agree.
同行是冤家。
Two wrongs do not make a right.
别人错了,不等于你对了。
Unity is strength.
团结就是力量。
Unpleasant advice is a good medicine.
忠言逆耳利于行。
Until all is over one's ambition never dies.
不到黄河心不死。
Venture a small fish to catch a great one.
吃小亏占大便宜。
Virtue is fairer far than beauty.
美德远远胜过美貌。
Walls have ears.
小心隔墙有耳。
Wash your dirty linen at home.
家丑不可外扬。
Water dropping day by day wears the hardest rock away.
滴水穿石。
Wealth is nothing without health.
失去健康,钱再多也没用。
We know not what is good until we have lost it.
好东西,失去了才明白。
Well begun is half done.
好的开始,是成功的一半。
We never know the worth of water till the well is dry.
井干方知水可贵。
We shall never have friends if we expect to find them without fault.
欲求完美无缺的朋友必然成为孤家寡人。
We should never remember the benefits we have offered nor forget the favor received.
自己的好事别去提,别人的恩惠要铭记。
Wet behind the ears.
乳臭未干。
Whatever you do, do with all your might.
不管做什么,都要一心一意。
What is learned in the cradle is carried to the grave.
儿时所学,终生难忘。
What's done cannot be undone.
生米煮成熟饭了。
What's lost is lost.
失者不可复得。
What we do willingly is easy.
愿者不难。
When in Rome, do as the Romans do.
入国问禁,入乡随俗。
When everybody's somebody then nobody's anybody.
人人都伟大,世间没豪杰。
When sorrow is asleep, wake it not.
伤心旧事别重提。
When sorrows come, they come not single spies, but in battalions.
新仇旧恨,齐上心头。
When the fox preaches, take care of your geese.
黄鼠狼给鸡拜年,没安好心。
When wine is in truth, wit is out.
酒后吐真言。
Where there is a will, there is a way.
有志者事竟成。
Where there is life, there is hope.
留得青山在,不怕没柴烧。
Where there is smoke, there is fire.
事出有因。
While the priest climbs a post, the devil climbs ten.
道高一尺,魔高一丈。
Who chatters to you, will chatter of you.
搬弄口舌者必是小人。
Whom the gods love die young.
好人不长命。
Wise man have their mouths in their hearts, fools have their hearts in their mouths.
智者嘴在心里,愚者心在嘴里。
Work makes the workman.
勤工出巧匠。
You cannot burn the candle at both ends.
蜡烛不能两头点,精力不可过分耗。
You cannot eat your cake and have it.
鱼与熊掌,不可得兼。 (衣人注:此翻译不尽准确,仅供参考。)
You can take a horse to the water but you cannot make him drink.
强扭的瓜不甜。
You may know by a handful the whole sack.
由一斑可知全貌。
You never know what you can till you try.
是驴子是马,拉出来遛遛。
写博客(blogs)已经成为全世界网络族的共同消遣。
写博客是横跨所有年龄层与职业的活动。有个人的博客,社区的博客,还有与专业知识相关的博客网站。架设在网络上的博客网站可以说形形色色。有人靠写博客赚取收入,也有人花钱购买更高档的博客服务(比方架设在某特定网站上,或是使用特别的软件来撰写)。
互联网让所有人都能够向全世界的潜在读者发布内容。而Web log,或称为blog的这种形式,让内容的发布更为简单便利。然而,博客的品质也有好有坏。有些博客让人会想持续阅读,有些则被忽略在茫茫网海中。不论你架设博客网站的理由是什么,以下方法可以让你的博客变得更好看,更好读,更有人气(如果你希望)。
6. 与读者建立关系
与读者建立关系,大概是吸引并留住读者最重要的要素。当我们不知道说话者(作者)的身份时,内容的有趣程度便会大打折扣。因此不妨告诉读者你是谁,或是稍稍介绍自己。
如果你的博客主题是政治或专业领域,也许不需要描述太多个人的详细信息。在一些情况下(比方写文章讦谯公司的员工或镇上的警长时),甚至不会希望公开真实姓名。
因此你可以取个笔名让读者称呼,诉讼读者你的一般信息,这可以让你在不公开身份的情况下,让你的身份更为有血有肉,而不只是默默无名。举例来说,你可以说你是一个住在加州的中年男生,曾在通讯产业工作之类。
如果没有什么要保持身份隐密的理由,提供真名与联络信息可能可以让你因此获益(比方吸引在你专精领域猎人头公司的注意,或被人们当成某方面的专家等等)。
不管是否透露真实身份,你都可以通过博客的留言功能与读者建立互动关系,或公开e-mail信箱回覆他们的来信。当然你可以使用免费的网页邮件或其他不是你个人e-mail的位址来避免身份曝光同时避免垃圾邮件。
要与读者建立关系,必需得到读者的信任,同时为读者着想。如果你陈述一个事实,可以使用一些网页链接让读者参考。可以的话,不要连到一些需要付费或免费注册的网站(如果必须如此,要事先告知读者)。
7. 建立博客的撰写时程
博客的读者是一群善变无常的群众。一旦吸引了一群读者,他们在每次造访时会期待看到新的内容。这不代表要每天发布文章,但你必须要建立一个最低的文章刊登频率,并严格遵守。你可以考虑在博客网页的顶端放置一个信息声明,比方会每日、每周、周一跟周五或是在其他日期更新博客。
就算有些文章不是特别深奥或特别长,还是要维持这个更新频率。如果你的读者认为被你抛弃,他们也会抛弃你的博客。
如果你必须暂停刊登时程(比方出国度假两周、住院或家里或工作上有急事),必须要告知读者停止刊登的时段,以及大概什么时候回来。
8. 保持简洁
不要觉得写不出长篇文学名着,所以要等到自己生出聪明绝顶的话语时再写。事实上,多数读者分配给你博客的注意时间极短,同时行程满满,有一大堆事要做。因此他们多半偏好短而精链,而不是冗长复杂的文章。
如果你发布了长篇的文章,必须要好好分段,让文章易于阅读。不管你的文笔多棒,对读者来说,没有什么事比读一大串不分段的文字更为恐怖。
使用常见的用语,也会比使用难懂的词汇吸引更多读者,所以除非你是在写给特定的学术读者看,否则请遵守古老的“KISS原则”:Keep it simple, sweetheart(保持简单,甜心)。
9. 发布之前做好校对
就算是英文教授,在按下发布按钮之前如果没有再次校对,文章里还是很容易出现打错,拼错或文法错误。尤其在你灵思泉涌下笔不绝时,打字的手指头很可能跑得比脑袋更快,而出现漏字、脱序、打错标点或是文意错误的情况。
也许你自认是个不墨守成规的人,但想必还是希望读者能了解你所表达的意思。在文学上被认为充满美感的句子,在电脑屏幕上看起来,可能会显得复杂难懂。
要抓出文章中的所有错误可能有点困难,因为人们在看自己打的字时,会有先入为主的观念,并不会实际细读。这种现象尤其在刚写完文章时特别严重。如果可以,在发布文章之前,请其他人帮你校对一次。或者,你可以把文章放个一小时或一天再行校对,可以更客观的校对自己的文章。
虽然最好在发布文章之前先行校对,但网页内容跟纸本内容相较之下依旧有个极大的优点,就是当发布后发现错误时,还是可以轻易修改。
10. 使用供稿系统
你不需要每天或每周等待读者上门。相反地,可以主动将博客送到他们面前。RSS功能可以把你博客上的新文章发送给订阅的读者。这可以让读者不必自行上门寻找新文章,可以更为方便地阅读--而只要对读者有利,就对作者有利。你可以在RSS里提供你的文章标题、文章摘要或是整篇文章。
大多数的公众博客网站都有使用供稿功能的选项,往往只要在设定页面上点几下就能设定完成。
写博客(blogs)已经成为全世界网络族的共同消遣。
写博客是横跨所有年龄层与职业的活动。有个人的博客,社区的博客,还有与专业知识相关的博客网站。架设在网络上的博客网站可以说形形色色。
有人靠写博客赚取收入,也有人花钱购买更高档的博客服务(比方架设在某特定网站上,或是使用特别的软件来撰写)。
互联网让所有人都能够向全世界的潜在读者发布内容。而Web log,或称为blog的这种形式,让内容的发布更为简单便利。然而,博客的品质也有好有坏。
有些博客让人会想持续阅读,有些则被忽略在茫茫网海中。不论你架设博客网站的理由是什么,以下方法可以让你的博客变得更好看,更好读,更有人气(如果你希望)。
1. 定义你的目标
要增进博客品质的第一步,是问自己架设博客的理由是什么。什么才是你架设博客的目标?它是记录你的生活经验,想法与心情的个人日记公开版?还是让你刊登新想法与企划大纲的日志?是让一群朋友彼此互动、分享网站链接、认识新朋友的社区网站?还是评论政治、社会潮流与时事的社论网站?它是专业的网站,还是让玩家们在某些工作或学习领域(如航空、程序语言或摄影)分享有用信息的网站?
自然,你可以有一个“万能博客”,包含了上述的各种不同元素,但网站的读者往往比较偏好特定内容的博客。如果你有时想要写写你的专门领域,有时想写写你支持的政党,把它分成两个独立的博客会比较好,这样可以让你博客的读者不致在一半的时间感到没兴趣或无聊。
在确定你的架设目标上有一个重要的元素,就是去了解目标读者。这决定你的笔调与书写风格,以适合博客网站的目标对象。在你博客的目标对象是赛车迷的时候,你应该不会用写给股票经纪人的语气来写文章。
为了确定博客的目标,你应该要使用固定的主题。举例来说,如果目标是表达政治立场,应该把主题设定在一些特定主题,如减税或保障人民自由之类。
2. 在外观上吸引人
内容并不是唯一重要的要素。你的博客在外观上也要引人入胜,或至少不让人讨厌。你绝对不会希望页面让人分心或难以阅读,而吓跑潜在读者。
最佳的网页外观取决于观众与网页主题。你可以用颜色、字型与图片来设定网站的基调--但这个基调要符合网站的内容。不管你的主题为何,最好不要使用暗色背景搭配暗色字体、太小太奇怪的字型、以及其他让你的博客难以阅读的网页设定。
如果你的博客是架设在公众的博客网站上,在改变网页设计时可能会有些功能上的限制,但是这些网站上往往有很多先行设定好的外观主题让你挑选。在选择你要的外观时,记住让网站的外观保持吸引力与可读性。
3. 使用合适的编辑工具
你可以使用FrontPage(未来将改版为微软 Expression Web Designer)、Macromedia Dreamweaver或W3C认可的开放源代码编辑器Amaya等等“所见即所得”(WYSIWYG)的编辑软件来撰写博客。甚至也可以使用像笔记本之类的文字编辑器来撰写HTML码。
但现在,你还可以使用专门的编辑软件,或是用博客网站提供的功能来使用浏览器或e-mail撰写文章。撰写博客已经变得比过去更为简单快速与方便。
如果你的博客架设在Blogger或Windows Live Spaces之类免费的公众博客网站,可以使用e-mail程序撰写文章,然后寄到建立帐号时所分配到的特定位址。对很多人来说,虽然这种方式无法显示文章发布时的格式,依旧是发布文章的最简单方法。
另一个方法是用一些像WordPress、Movable Types、Post2博客以及Windows Live Writer之类的博客撰写软件,这些软件提供许多有用的功能。Windows Live Writer可以在你IE的工具栏上新增一个按钮,如果你想在博客上建立连往某个网站的链接,只要选取网页上要摘录的文字,按下撰写博客的按钮,Live Writer就会开启,而网页的链接与摘取的文字就会放上你的博客。只要简单按个钮,就可以把文字发布在位于Live Spaces或其它网站的博客网志上。
4. 让Blog容易浏览
如果你打算自行架设博客网站,让读者可以在博客中轻松地阅览与查找文章是十分重要的。举例来说,如果你打算使用留言功能或是RSS feeds(简易供稿信息),要确定读者能否容易地发布留言或订阅feed。
同时网址的设计也必须能让读者容易找寻过去的文章。过去的文章必须要完善地组织整理--不只按时间顺序,也要依内容分门别类,让读者可以简易找到某篇特定的文章。
如果你的博客架设在公众博客网站上,多半可以更改网页的配置,新增或卸载一些元件(往往被称为模组),这些模组会影响网页的浏览功能。你必须让网页尽可能保持精简,但也要确定网页上包含了所有读者需要的浏览功能。
另外如果可能,让你的网站具备搜索功能,这样使用者才可以使用关键字搜索你的博客上的文章。你可以把Google的搜索框放上你的博客。
5. 不要轻易搬家
有许多的博客玩家为了测试功能,在刚开始玩博客时,往往会在多个不同的网站上架设个人博客。你可能要花一段时间才能找到一个最适合的网站,但可以的话尽早在一个网站上定下来,之后也不要随便搬站,这样你的读者才能找到你。太常在不同的网站之间来来回回,绝对会让你损失读者。
如果你已经建立一个博客,现在必须要搬到别的网站,请在旧博客上的最后一篇文章里刊登搬站启事,指引读者连向新的网址,同时也要让该篇文章尽可能长久留存。(未完待续)
实回想一下,自己也是从这个阶段过来的,说一句“你好”,真的是一个最简单的问题
吗?...//think 好了,言归正传,let's say "HelloWorld!" in java...
首先,我们要假设一下我们的平台是Windows+JDK(Linux环境下也差不多)。这个环境
是相当普遍、基础和入门的。确定已经正确安装JDK了,下一步是小心翼翼地敲入某本教
程上的HelloWorld源码,存盘,然后编译,javac ...问题来了:
* 错误1:
'javac' 不是内部或外部命令,也不是可运行的程序或批处理文件。
(javac: Command not found)
产生的原因是没有设置好环境变量path。Win98下在autoexce.bat中加入
path=%path%;c:\jdk1.2\bin,Win2000下则控制面板->系统->高级->环境变量->系统变
量...看到了?双击Path,在后面加上c:\jdk1.2\bin。当然我们假设JDK安装在了
c:\jdk1.2目录下(有点唐僧了?)...好像还要重启系统才起作用...(//知道了!//西
红柿)
好,再试试!javac HelloWorld
* 错误2:
HelloWorld is an invalid option or argument.
拜托,给点专业精神,java的源程序是一定要存成.java文件的,而且编译时要写全
.java呀。
OK, javac HelloWorld.java (这回总该成了吧?)
* 错误3:
HelloWorld.java:1: Public class helloworld must be defined in a file called
"HelloWorld.java".
public class helloworld{
^
这个问题嘛,是因为你的类的名字与文件的名字不一致。(谁说的,明明看到人家都有
这样写的 ;( ) OK,准确地说,一个Java源程序中可以定义多个类,但是,具有public
属性的类只能有一个,而且要与文件名相一致。还有,main方法一定要放在这个public
的类之中,这样才能java(运行)这个类。另外一点是Java语言里面是严格区分大小写
的,初学者要注意呀。像上例中 helloworld 与 HelloWorld 就认为是不一样,因而...
oh... 好,改好了,嘻嘻... javac HelloWorld.java
...(咦,怎么什么也没有呀?)//faint 这就是编译通过了!看看是不是多了一个
HelloWorld.class ?
(hehe..按书上教的:) java HelloWorld (!! 这个我知道,不是java HelloWorld.class
哟)
* 错误4:
Exception in thread "main" java.lang.NoClassDefFoundError: HelloWorld
呵呵,这个嘛,就是著名的类路径(classpath)问题啦。实际上,类路径是在编译过程就
涉及的Java中的概念。classpath就是指明去哪里找用到的类,就这么简单。由于我们的
HelloWorld没用到其它的(非java.lang包中的)类,所以编译时没遇到这个问题。运行
时呢,就要指明你的类在哪里了。解决方法嘛,可以用下面的命令运行:
java -classpath . HelloWorld
“.”就代表当前目录。当然这样做有点麻烦(是“太麻烦”!),我们可以在环境变量
中设置默认的classpath。方法就照上述设置path那样。将classpath设为:
classpath=.;c:\jdk1.2\lib\dt.jar;c:\jdk1.2\lib\tools.jar 后面的两个建议也设上
,以后开发用的着。
java -classpath . HelloWorld(再不出来我就不学java了)
* 错误5:
Exception in thread "main" java.lang.NoSuchMethodError: main
(//咣当)别,坚持住。看看你的代码,问题出在main方法的定义上,写对地方了吗,
是这样写的吗:
public static void main(String args[]) { //一个字都不要差,先别问为什么了...
对,包括大小写!
java -classpath . HelloWorld (听天由命了!)
Hello World!
(faint!终于...)
欢迎来到Java世界!所以说,无法运行HelloWorld 真的并不是一个“最简单的问题”。
附:HelloWorld.java
// HelloWorld.java
public class HelloWorld {
public static void main(String args[]) {
System.out.println("Hello World!") ;
}
}











