<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Program/Java | Hessian's Blog</title><link>https://hessian.cn/cat/program/java</link><description>Hessian 的技术笔记：Linux、C++、网络与嵌入式</description><language>zh-CN</language><atom:link href="https://hessian.cn/cat/program/java/index.xml" rel="self" type="application/rss+xml"/><item><title>解决IE8下FlashSocket无法连接java websocket的问题</title><link>https://hessian.cn/p/1534.html</link><pubDate>Sat, 26 Jan 2019 11:40:21 +0800</pubDate><guid>https://hessian.cn/p/1534.html</guid><description>参考文章： iOS 与 Java 服务器之间 SSL 握手失败的解决：Cipher Suites&#10;Flash socket在IE8下会使用TLSv1进行通信，且Cipher suites只有有限几项jre默认不支持的。 我服务端用的是Springboot+Tomcat Embed，开启debug之后会看到cipher suite不支持的异常：not found cipher suites in common。&#10;</description></item><item><title>[转]SMALI文件语法</title><link>https://hessian.cn/p/1068.html</link><pubDate>Tue, 19 Mar 2013 12:27:16 +0800</pubDate><guid>https://hessian.cn/p/1068.html</guid><description>来源地址：http://bbs.pediy.com/showthread.php?t=151769&#10;参考资料：http://code.google.com/p/smali/wiki/Registers&#10;dalvik字节码有两种类型，原始类型和引用类型。对象和数组是引用类型，其它都是原始类型。&#10;V void，只能用于返回值类型&#10;Z boolean&#10;B byte&#10;S short&#10;C char&#10;I int&#10;J long（64位）&#10;F float&#10;D double(64位)&#10;对象以Lpackage/name/ObjectName;的形式表示。前面的L表示这是一个对象类型，package/name/是该对象所在的 包，ObjectName是对象的名字，“;”表示对象名称的结束。相当于java中的package.name.ObjectName。例 如：Ljava/lang/String;相当于java.lang.String&#10;</description></item><item><title>【转】编程语言/JAVA 转 Netbeans 5.5 界面英文问题解决</title><link>https://hessian.cn/p/596.html</link><pubDate>Wed, 04 May 2011 13:45:00 +0800</pubDate><guid>https://hessian.cn/p/596.html</guid><description> Netbeans 5.5 界面英文问题解决&#10;从昨晚搞到现在。Netbeans的界面语言问题终于解决了。&#10;问题：从官网下载的netbeans不论是中文版还是英文版默认的操作界面都是中文，并且字体十分恶心。&#10;目标效果：把界面语言改成英文并使系统正常支持中文。&#10;解决办法：&#10;进入netbeans-5.5etc ，其中netbeans-5.5为netbeans的安装路径。&#10;编辑netbeans.conf&#10;将其中的#command line switchs下面那行变为：&#10;netbeans_default_options=”-J-Xms128m -J-Xmx256m -J-XX:PermSize=32m -J-XX:MaxPermSize=160m -J-Xverify:none -J-Dapple.laf.useScreenMenuBar=true -J-Duser.language=zh -J-Duser.country=US –fontsize 13″&#10;说明：&#10;关于前面几个参数的解释可以参照netbeans的guide：&#10;http://www.netbeans.org/kb/55/using-netbeans/configuring.html#pgfId-1158626&#10;后面的几个参数-J-Duser.language=zh -J-Duser.country=US –fontsize 13是调用java的本身系统属性，设置语言为中文，国家为美国。这点很重要！&#10;国家是美国使netbeans的界面为英文，而语言为中文使netbeans可以支持中文，如果只需要英文则可以把language设为en，不过在调用file browser的时候会发现左边一系列windows特性的中文按钮都回变成乱码。&#10;在netbeans的toolsoptionsfonts&amp;colorssyntax下的language选项设置all languages的default的字体为一个能够支持中文的字体，如：Microsoft YaHei&#10;</description></item><item><title>[转]netbeans 输出窗口中文乱码解决方法</title><link>https://hessian.cn/p/511.html</link><pubDate>Tue, 21 Dec 2010 02:46:00 +0800</pubDate><guid>https://hessian.cn/p/511.html</guid><description> src:http://fanchi.javaeye.com/blog/315875&#10; &#10;找到 etcnetbeans.conf&#10;添加-J-Dfile.encoding=UTF-8参数&#10;netbeans_default_options=”-J-Dfile.encoding=UTF-8&#10;</description></item><item><title>[转]使用线程创建的三种方式实现j2me联网功能</title><link>https://hessian.cn/p/363.html</link><pubDate>Thu, 03 Jun 2010 10:53:00 +0800</pubDate><guid>https://hessian.cn/p/363.html</guid><description>src: http://www.javaeye.com/topic/420224&#10;在j2me联网时，在eclipse控制台下有一个警告：“若要避免潜在的死锁，应该在commandAction()处理程序之外的其他线程中执行可能 会阻塞的，操作（如网络连接）。 为了避免潜在的死锁，我们经常把把联网的代码部分写到一个线程中去执行。 而实际应用中，网络连接的事务也都是使用一个单独的线程进行的。</description></item><item><title>[转]深入理解MIDP的界面类体系</title><link>https://hessian.cn/p/638.html</link><pubDate>Fri, 08 Jan 2010 17:51:00 +0800</pubDate><guid>https://hessian.cn/p/638.html</guid><description>因为在MIDP手机编程中，没有控制台的概念，所以所有的MIDP手机软件都必须有自己的界面，下面就熟悉一下MIDP的界面类体系。&#10;首先说明的是，MIDP的标准界面类都位于javax.microedition.lcdui包中，使用时一定要记得引入。&#10;</description></item><item><title>[转]常用 JDBC 驱动名字和 URL 列表</title><link>https://hessian.cn/p/627.html</link><pubDate>Mon, 28 Sep 2009 11:01:00 +0800</pubDate><guid>https://hessian.cn/p/627.html</guid><description>ODBC  driver&#10;sun.jdbc.odbc.JdbcOdbcDriver&#10;jdbc:odbc:name&#10;用 COM.ibm.db2.jdbc.net.DB2Driver 连接到 DB2 数据库&#10;一个 DB2 URL 的示例:&#10;jdbc:db2://aServer.myCompany.com:50002/name&#10;用 com.sybase.jdbc.SybDriver连接到 Sybase 数据库&#10;一个 Sybase URL 的示例:&#10;jdbc:sybase:Tds:aServer.myCompany.com:2025&#10;</description></item></channel></rss>