当前位置:首页 » 编程博文
开发技术指南» 文章正文
    引言: 1.下载eclipse和log4j相关软件2.在eclipse中建立一个java项目,比如HelloEclipse,在此过程中add 外部jar log4j.jar文件3。
 

 

 ·开始学习java swing编程    »显示摘要«
    摘要:从网上下载了最新的netbeans 4.0 beta版和java 1.5,虽然大家都说开始学习时不要用ide环境比较好,但我还是选择用ide开始学习,:) 不过开始使用nb时确实非常的不习惯,开始时最困扰我的是菜单的设计,nb的菜单设计不象delphi或者vc/vb,只可以看见最上面一层的菜单,不能看见子菜单,找来找去才发现只有在inspector窗口才可以修改子菜单的属性。 另外,奇怪的是n......
 ·linux下让jdk支持中文    »显示摘要«
    摘要:1. 原因jdk需要从字体配置文件中读取字体列表,而默认的字体列表并无中文字体。2. 解决方法为jdk的字体配置文件添加中文字体3. 操作步骤 3.1. 复制字体文件到jdk的字体目录 cd /usr/local/java/jre/lib/fontscp /usr/share/fonts/zh_cn/truetype/gbsn00l.ttf . 3.2. 生成字体列表文件 ......


在eclipse里使用log4j记录程序日志

1.下载eclipse与log4j相关软件

2.在eclipse中建立一个java项目,比如helloeclipse,在此过程中add 外部jar log4j.jar文件 【程序编程相关:小小姑娘清晨起床 提着裤子上茅房 茅房里

【推荐阅读:爱死北大了~强多作业

3.利用eclipse的import功能引入log4j.properties文件,并且进行修改,log4j在你下载的log4j包的example/lf/lf5里就有 【扩展信息:下载信息内容时文件名称的指定

如下:

# for the general syntax of property based configuration files see the

# documenation of org.apache.log4j.propertyconfigurator.

# the root category uses the appender called a1. since no priority is

# specified, the root category assumes the default priority for root

# which is debug in log4j. the root category is the only category that

# has a default priority. all other categories need not be assigned a

# priority in which case they inherit their priority from the


...   下一页
    摘要:string str=textbox2.text ; // datagrid1.datasource =directory.getfiles (str); datagrid1.datasource =directory.getfiles (str,"*.aspx");//获取目录下.aspx后缀的文件列表 datagrid1.databind (); ......
» 本期热门文章:

©2000-2007 All Rights Reserved. 最佳浏览:1024X768 MSIE