echo ""; echo ""; echo ""; echo ""; if(!is_admin){echo "";} » Java 仲子说

欢迎您光临我的个人网站!


2009-03-01

javax.net.SocketFactory对应的Jar包是jsse.jar

Posted in Java at 14:21 by 仲远

标签:
Zhongyuan Wang

97100fe403b8

?????????????????????SocketFactory????????import???????
javax.net.SocketFactory
???????????????JAR????????????????????????????????????????JDK 1.6???????Classpath???C:\Program Files\Java\jre6\lib??jsse.jar??????????????
???????????java???????????????????????????????Java??????????????????????

...查看全文

2009-02-03

JDBC中的Communications link failure due to underlying exception错误的解决办法

Posted in Java, spring+struts+hibernate at 16:50 by 仲远

标签:

???????JDBC??Mysql???????“Connection reset”??????????
Connection couldn’t be established to jdbc:mysql://***/***?user=***&password=********
com.mysql.jdbc.CommunicationsException: Communications link failure due to underlying exception: 

** BEGIN NESTED EXCEPTION ** 
com.mysql.jdbc.CommunicationsException
MESSAGE: Communications link failure due to underlying exception:  ** BEGIN NESTED EXCEPTION ** 
java.net.S...查看全文

2009-01-18

使用JDom进行XML分析时的一个小错误以及解决办法

Posted in Java at 8:59 by 仲远

标签:

???JDom??XML?????????????
java.net.SocketException: Unexpected end of file from server
 at sun.net.www.http.HttpClient.parseHTTPHeader(Unknown Source)
 at sun.net.www.http.HttpClient.parseHTTP(Unknown Source)
 at sun.net.www.http.HttpClient.parseHTTPHeader(Unknown Source)
 at sun.net.www.http.HttpClient.parseHTTP(Unknown Source)
 at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
 at org.apache.xerces.impl.XMLEntityMa...查看全文

2008-11-13

Ubuntu8.1下安装JDK,配置Java运行环境

Posted in 实验室, Java, FreeBSD/Unix服务器 at 18:56 by 仲远

标签:

???Ubuntu8.1????????????Java????????JDK?JRE??????????????Ubuntu???JDK????
?????Sun????Linux???JDK???????????1?????????JDK??????Sun???????2?Sun??????Unix???????????????????Linux?Unix?????JDK??Windows???JDK???????????????????Sun???Java?????JDK????????
?Ubuntu????JDK?????????????????????
?1???apt-get?????
sudo apt-get install sun-java6-jdk
???????????????????????????????????????“E: Couldn’t find package sun-java6-jdk”??????????apt-get?????????????????????...查看全文

2008-03-09

Unix服务器下Web应用开发所不能够承受之痛:中文乱码问题!

Posted in Java, PHP, FreeBSD/Unix服务器 at 19:34 by 仲远

标签:

????????????????????????????
?????http://www.wangzhongyuan.com/archives/311.html
?????????????????????Unix????Linux??????????????????????????????????????????????????????????????????(??Java)???????????????????????????????????????????Unix??????????????????????“????”?
?????????????????????????????????????????????????????????????????????????????????????????????????gb2312??utf-8????????????????????????????
??????????????????????
1???Unix???(Freebsd)??????????????...查看全文

2008-03-08

jdk1.5与1.6的区别

Posted in Java at 21:53 by 仲远

标签:

??JDK1.6?????JDK 6 Update 5???????????jdk1.5+Eclipse3.2????????????????????Jdk1.4.2?btw?Jdk1.4.2??????~
?????????????????????????JDK1.6+Eclipse3.3???Jdk1.6?jdk1.5????????????
http://java.sun.com/javase/6/webnotes/features.html
??????????????????

...查看全文

2007-11-04

针对JDBC是否释放资源对内存的影响所做的实验

Posted in Java at 17:37 by 仲远

标签:

??10?30?????????JDBC???????????????????????JDBC??Mysql?????Connection?Statement?Resultset???????????????????????????????????????????????????????????????????????????????????8???
(1)?????????Connection???conn?????????????????????????Statement s??Resultset rs: s.close();rs.close()?
?????????1.3G?????
Mem: 92M Active, 29M Inact, 42M Wired, 88K Cache, 32M Buf, 1329M Free
?????????????????12M?????????????????????????12M???
Mem: 104M Active, 29M Inact, 42M Wired, 88K C...查看全文

2007-10-30

使用JDBC后记得关闭并释放数据库连接资源噢:)

Posted in Java, JobTong at 13:34 by 仲远

标签:

????Jobtong???????????????????????? out of memory ! ????????1.5G??????????????????????????check??????????????????????????conn?????????????????Statement??????????????????????????????????????????????????????
???????????JDBC???????????????????
????????????????
Connection conn = null;
??ResultSet rs = null;
??PreparedStatement pss = null;
??try
??{
?? conn = dataSource.getConnection(USERID,PASSWORD);
?? pss = conn.prepareStatement(&...查看全文

2007-10-20

彻底解决使用命令行方式运行SWT/Jface时出错的问题

Posted in Java at 22:49 by 仲远

标签:

??eclipse3.2??SWT??????????????????????????????????????????
Exception in thread “main” java.lang.UnsatisfiedLinkError: no swt-win32-3232 in java.library
?????
??????????SWT????????DLL???
????????????
?http://eclipse.teccomm.les.inf.puc-rio.br/downloads/drops/R-3.2.2-200702121330/index.php (???Google??????)
??swt-3.2.2-win32-win32-x86.zip
???????????????
swt.jar
swt-win32-3232.dll
?????????????
java -classpath ./lib...查看全文

2007-04-02

设置Java的环境变量

Posted in Java at 19:08 by 仲远

标签:

??eclipse???????????????PHPeclipse??SGWrap?????????eclipse????????jre???jdk?????????????????????????????????JAVA_HOME??????????????eclipse???????????????????????????java??????????????????java?????
Windows?JAVA??????????3??JAVA_HOME?CLASSPATH?PATH????????
JAVA_HOME????JDK???????C:\JDK_1.4.2?????????????bin?lib???????????JDK???????????????????????????????????????????C:\XXXXXX\xxxxx\XXXX\xxxx\XXXX\xxxx\XXXX\xxx……
?????????????????????????????
JAVA_HOME=C:\JDK_1.4.2查看全文

Pages (3): « 1 [2] 3 »