??xml version="1.0" encoding="utf-8" standalone="yes"?>
׃是处于创业期的团队,需要从前台照顾到后収ͼ所以希望你的js也很?gu)Q当然同P你如果听qjquery、prototype、ext-js{opensource?x)更?
有兴的兄弟可以讉K的网?http://www.j.cn
可以直接历发到我的邮?hama916@gmail.com
当然提供业界领先的待遇标准与晋升Z(x)Q落?jin)俗套?j)
对了(jin)Q欢q北京本地实?fn)?外地q?jin),提供不?jin)宿舍)Q希望你的年轅R激情ؓ(f)我们的团队带来活?-)
]]>
The short answer is to add the following options when the JVM is started:-Xdebug -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n
There are a number of ways you can do this depending on how you normally start Tomcat:
JPDA_ADDRESS=8000
and JPDA_TRANSPORT=dt_socket
and then start tomcat using catalina jpda start(sh catalina.sh jpda start)
.
Alternatively, you can set the java program's command-line arguments for the JPDA settings. For Tomcat, you specify them in the CATALINA_OPTS environment variable and the catalina.sh or catalina.bat script adds the value of the environment variable to the java command that starts Tomcat; for example:
bash:
declare -x CATALINA_OPTS="-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8000" $JWSDP_HOME/bin/catalina.sh start
csh:
setenv CATALINA_OPTS "-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8000" $JWSDP_HOME/bin/catalina.sh start
Windows:
set JPDA_TRANSPORT=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8000 %JWSDP_HOME%\bin\catalina start
The port does not need to be set to 8000, it may be any value appropriate for your system.
Whilst this is very useful in development it should not be used in production because of both security and performance implications.
This answer assumes that you have a project set up with all of the fixings and have some idea of what you're doing in this respect. If not then thats really outside the scope of this topic and more in the scope of you needing to go to eclipse.org and read up on how to use your ide, and maybe practice a little bit before you come back to this. We're also going to assume you have some idea of what a debugger is and how to use one.
Make sure tomcat is started and that your app is deployed and the sources, etc are all defined as resources in your app. If you have a servlet or something, set a breakpoint where its sure to hit on the next request. Go to "Run->Debug...". Click on "Remote Java Applications", then click "New". Type in the title and all. Notice that port 8000 from the Tomcat instructions. Save and run. Eclipse will connect to the VM that Tomcat is running under. Wow, that was easy! Now go type the url to submit to your servlet or whatever in your browser. Boom you hit the breakpoint right? Have fun!
cvs tag release_1_0
开始一个新的里E碑Q?br />cvs commit -r 2 标记所有文件开始进?.x的开?/p>
注意QCVS里的revsion和Y件包的发布版本可以没有直接的关系。但所有文件用和发布版本一致的版本h较有助于l护?/i>
版本分支的徏?/u>
在开发项目的2.x版本的时候发?.x有问题,?.x又不敢用Q则从先前标记的里程:(x)release_1_0导出一个分?release_1_0_patch
cvs rtag -b -r release_1_0 release_1_0_patch proj_dir
一些h先在另外一个目录下导出release_1_0_patchq个分支Q解?.0中的紧急问题,
cvs checkout -r release_1_0_patch
而其他h员仍旧在目的主q分?.x上开?/p>
在release_1_0_patch上修正错误后Q标C?.0的错误修正版本号
cvs tag release_1_0_patch_1
如果2.0认ؓ(f)q些错误修改?.0里也需要,也可以在2.0的开发目录下合ƈrelease_1_0_patch_1中的修改到当前代码中Q?br />cvs update -j release_1_0_patch_1
“美国的军费占全球军费开支的一半,而中国的人口是美国的五六倍。ؓ(f)什么指责中国?”随后,沙祖h高嗓韻I“美国该如何做,q是国的主权,但美国不应告诉中国该如何做!?/p>
在谈?qing)台湾未来是否可能宣布“独立”时Q沙康更是直言不讳Q“台湑֮布‘独立’的那一刻,不管谁支持它Q中国都别无选择。……在q个问题上,M人都不应该有MqL。我们将不惜一切代仗?/p>
沙祖庯补充道:(x)“对于中国,一寔R土比生命更有价倹{在q一点上Q我们永q不?x)退~。?/p>
q一pd大胆a论,让西方大跌眼镜,也让国h颇感意外。而惟有熟(zhn)沙康的h知道Q这是其一贯风根{?/p>
“典型的现实M外交?/strong>
一向大胆敢a的沙康本来׃乏拥。随着BBC节目的播放,半个月来Q“沙式语录”迅速风靡网上中文论坛和博客。让国人“Shut up”的英文讲话录音甚至被网民剪辑出来,攑ֈ|上供h下蝲?/p>
Z沙祖L(fng)q段发言受到|民如此q捧Q?span class="yqlink">
清华大学军控问题专家李{教授评h(hun)_(d)?沙祖?说的是实话。?/p> 在个人风gQ这个农民出w、喜q武侠说的外交官承认“不大相信外交辞令”,他也不讳a自己讲话_,?fn)惯有话都摆在桌面上谈。美国报U对沙氏讲话风格的评论是“o(h)人吃惊的坦率(surprisingly frank)”。在李{看来Q沙康的外交思\属于比较典型的现实主义,虽然他自己未必意识到?/p>
“现实主义的思\是按照国家利益和实力来计算国家之间的互动。这L(fng)思\明、清晎ͼҎ(gu)理解。沙康用此思\q行交流ӞҎ(gu)当然?x)感觉到‘坦率’。?/p>
李{_(d)“此外,沙祖庯责军控外交的时期也是中国实质性参与国际军控的时期Q国家投入的研究力度很大。在很多实质性军控问题上Q中国必表达明的态度Q而且也有对策研究基础做这L(fng)表态。在开始阶D,外国人对q些坦率实比较吃惊。?/p>
TestComparator.java
package com.fangq.collections;
import java.util.Arrays;
import org.apache.commons.lang.math.RandomUtils;
/**
*
* @author fangq
*/
public class TestComparator {
public static void main(String[] args){
StudentDTO[] dtos = new StudentDTO[10];
for(int i=0;i<dtos.length;i++){
dtos[i] = new StudentDTO();
dtos[i].setXh("xh"+i);
dtos[i].setXm("xm"+i);
dtos[i].setNl(String.valueOf(i+RandomUtils.nextInt(20)));
}
System.out.println("排序?==============");
for(int j=0;j<dtos.length;j++)
System.out.println("姓名Q?+dtos[j].getXm()+"q龄Q?+dtos[j].getNl());
Arrays.sort(dtos,new StudentComparator());
System.out.println("排序?==============");
for(int k=0;k<dtos.length;k++)
System.out.println("姓名Q?+dtos[k].getXm()+"q龄Q?+dtos[k].getNl());
}
}
@author Li Gong
Li Gong自从JXTA目正式启动Q到2001q?月正式发布,?001q?月JavaOne上的介绍׃直担任JXTA目的工E指导及(qing)首席设计师。此前,在JDK 1.1?.2版本的开发期_(d)他主着Java安全和网l小l。他在清华大学获得了(jin)学士和硕士学位,从剑桥大学获得了(jin)博士学位。他是IEEE Internet Computing和ACM TISSEC的编委会(x)成员Q也在IEEE S&P、IEEE CSFW和ACM CCS担Q要职。他拥有6美国专利,已经撰写?0技术论文和2本书Qƈ且于1994q获得了(jin)IEEE通信l织颁发的Leonard G. Abraham奖。目前,他在北京担QSun公司的中国工E研I所的ȝ理?br />
java Test
该命令的javaQ告诉操作系l开始运行java虚拟?Test 必须有mainҎ(gu)Q是该applicationU程的v点,其他所有线E都p个初始线E启?/p>
在java虚拟机内部有两种U程Q一U是守护U程Q一U非守护U程。守护线E通常是虚拟机自己使用的,比如执行垃圾攉的线E。当然java也可以把创徏的线E标Cؓ(f)守护U程