随笔分类 -  07-JAVA

摘要:代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--packagetest;importjava.net.InetAddress;importjava.net.NetworkInterface;importjava.net.SocketExceptio... 阅读全文
posted @ 2010-08-18 22:27 angushine 阅读(1009) 评论(0) 推荐(0)
摘要:在eclipse的安装目录下找到eclipse.ini文件,在最后一行加上-Dfile.encoding=UTF-8即可(如下所示),该方法可解决JBPM流程设计器乱码出现的问题-startupplugins/org.eclipse.equinox.launcher_1.1.0.v20100507.jar--launcher.libraryplugins/org.eclipse.equinox.l... 阅读全文
posted @ 2010-08-15 22:36 angushine 阅读(557) 评论(0) 推荐(0)
摘要:运行eclipse3.6 helios的时候,如挂加载的项目比较大,类较多的时候,就容易报”java.lang.OutOfMemoryError: PermGen space” 的错误,然后整个eclipse就死掉了,尤其是在加载web项目做JSP预编译的时候更容易报错。PermGen space是保存类对象和方法的放射元数据的一块内存区域。解决办法就是在eclipse启动... 阅读全文
posted @ 2010-08-15 22:34 angushine 阅读(330) 评论(0) 推荐(0)
摘要:代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--packagecom;importjava.util.Date;publicclassStrFun{publicstaticvoidmain(String[]args){Stringsource="1... 阅读全文
posted @ 2010-01-07 20:28 angushine 阅读(279) 评论(0) 推荐(0)
摘要:[代码] 阅读全文
posted @ 2009-10-09 23:22 angushine 阅读(217) 评论(0) 推荐(0)
摘要:[代码] 阅读全文
posted @ 2009-10-09 23:16 angushine 阅读(312) 评论(0) 推荐(0)
摘要:[代码] 阅读全文
posted @ 2009-10-09 23:08 angushine 阅读(312) 评论(0) 推荐(0)
摘要:[代码] 阅读全文
posted @ 2009-10-09 23:06 angushine 阅读(393) 评论(0) 推荐(0)
摘要:[代码] 阅读全文
posted @ 2009-10-09 23:01 angushine 阅读(297) 评论(0) 推荐(0)
摘要:[代码] 阅读全文
posted @ 2009-10-09 22:56 angushine 阅读(467) 评论(0) 推荐(0)
摘要:Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->package utils; import java.awt.*; import java.awt.image.*; import java.util.*; public class VerImage... 阅读全文
posted @ 2009-03-21 22:38 angushine 阅读(1178) 评论(0) 推荐(0)
摘要:Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->package utils; import java.awt.Image; import java.awt.image.BufferedImage; import java.awt.image.Ren... 阅读全文
posted @ 2009-03-21 22:34 angushine 阅读(249) 评论(0) 推荐(0)
摘要:Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->package bll; import java.sql.Connection; import java.sql.DriverManager; import java.sql.PreparedState... 阅读全文
posted @ 2009-03-21 22:28 angushine 阅读(713) 评论(0) 推荐(0)
摘要:方法一: 在工程src目录下建立一个log4j.properties文件,该文件会自动拷贝到/WEB-INF/classes下,文件内容如下: Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->### set log levels ### log4j.... 阅读全文
posted @ 2009-03-21 22:23 angushine 阅读(1676) 评论(0) 推荐(0)
摘要:请注意,当使用 runnable 接口时,您不能直接创建所需类的对象并运行它;必须从 Thread 类的一个实例内部运行它。许多程序员更喜欢 runnable 接口,因为从 Thread 类继承会强加类层次。代码示例如下: Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlight... 阅读全文
posted @ 2009-03-21 22:17 angushine 阅读(174) 评论(0) 推荐(0)
摘要:Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->package job; import java.io.FileWriter; import java.io.IOException; import java.util.Date; import jav... 阅读全文
posted @ 2009-03-21 22:16 angushine 阅读(138) 评论(0) 推荐(0)
摘要:Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->import java.sql.*; public class db { public static void main(String [] args) { try ... 阅读全文
posted @ 2009-03-09 13:07 angushine 阅读(681) 评论(0) 推荐(0)