随笔分类 -  Java

上一页 1 2 3 4 5 6 7 8 9 下一页
JXSE and Equinox Tutorial, Part 1
摘要:http://java.dzone.com/articles/jxse-and-equinox-tutorial-part————————————————————————————————————————————————————————AbstractThis extended series of tutorials will cover the various ways that the JAVA P2P framework JXSE (formerly popularly known as JXTA, and currently the most up-to-date JAVA implem 阅读全文
posted @ 2013-11-07 16:38 网络大豆 阅读(368) 评论(0) 推荐(0)
JXTA+JavaFX实现的网络黑白棋测试地址
摘要:http://www.qhdbaobao.com/dist/secondegg-reversi.html————————————————————————————————————————————————————需要安装最新的JavaFX浏览器插件(按照提示安装)房间(双击右下表格的单元格可邀请在线用户)游戏中 阅读全文
posted @ 2013-11-06 15:34 网络大豆 阅读(393) 评论(0) 推荐(0)
JNLP + Applet + Bouncy Castle
摘要:http://stackoverflow.com/questions/4275005/jnlp-applet-bouncy-castle——————————————————————————————————————————————————Ok, so here is the answer:First of all, as Bloodboiler suggested, you are in trouble if your applet uses jars signed by different certificates. So your solution should be to sign the 阅读全文
posted @ 2013-10-16 11:02 网络大豆 阅读(294) 评论(0) 推荐(0)
图标资源
摘要:http://www.famfamfam.com/lab/icons/silk/ 阅读全文
posted @ 2013-10-14 08:41 网络大豆 阅读(183) 评论(0) 推荐(0)
内部类与外部类变量同名时,如何在内部类中引用外部类变量?
摘要:http://webservices.ctocio.com.cn/wsdev/12/9021512_1.shtml—————————————————————————————————————————————————— 注意实现四:使用this关键字获取内部类与外部类对象的引用。 在外部类和成员内部类中,都可以定义变量。成员内部类可以随意访问外部类中的变量,而外部类不能够直接访问内部类中的变量,只有通过使用内部类 对象来引用内部类的成员变量。不过需要注意的是,在外部类中定义的变量与内部类中定义的变量名字可以相同。也就是说,在外部类中可以定义一个变量i,在内 部类中也可以定义一个变量i。此时新的问. 阅读全文
posted @ 2013-10-11 16:00 网络大豆 阅读(3262) 评论(0) 推荐(0)
Java Applet and ServiceLoader
摘要:http://stackoverflow.com/questions/14062813/java-applet-and-serviceloader 阅读全文
posted @ 2013-10-10 17:02 网络大豆 阅读(163) 评论(0) 推荐(0)
通过ModuleImplAdvertisement向自定义服务传递参数
摘要:无意中发现通过ModuleImplAdvertisement可以向自定义服务传递参数,有空试一试。————————————————————————————————————————————————————————这种方式可以实现参数的传递,只是有些不合适。具体某个结点在加入对等组时,通常都是首先在网络上发现对等组通告,若发现,则本地不在生成对等组通告,否则的话,本地要生成对等组通告。这就造成了通告中的参数必须一样。而实际上在我的想法了,既然是同一个对等组的通告,应该在各个结点之间是完全相同的,如果不同就不大合适了。 阅读全文
posted @ 2013-09-30 10:45 网络大豆 阅读(193) 评论(0) 推荐(0)
hibernate里createSQLQuery的addEntity()和setResultTransformer()方法
摘要:http://langgufu.iteye.com/blog/1565397————————————————————————————————————————————————————————————————————1.使用SQLQuery对原生SQL查询执行的控制是通过SQLQuery接口进行的,通过执行Session.createSQLQuery()获取这个接口。最简单的情况下,我们可以采用以下形式:List cats = sess.createSQLQuery( " select * from cats " ).addEntity(Cat. class ).list(); 阅读全文
posted @ 2013-09-26 23:22 网络大豆 阅读(417) 评论(0) 推荐(0)
JXTA中定义自己的成员服务
摘要:http://blog.csdn.net/neusoftware_20063500/article/details/4302903——————————————————————————————————————————————————————————————————————————成员服务:MemberShipService这个服务是点组用于管理成员的一项服务,既然是服务就可以自己装载和卸载,我们的目的就是定义自己的规则,符合自定义规则的成员可以加入组,否则不可以。所以我们需要实现三个实现类,MemberShipService的实现类、Credential的实现类,Authenticator的实现 阅读全文
posted @ 2013-09-14 13:28 网络大豆 阅读(717) 评论(0) 推荐(0)
java.io.IOException: Messenger was closed
摘要:程序运行一段时间后抛出异常java.io.IOException: Messenger was closed,不知道是啥原因?——————————————————————————————————————————————————在本机同时启动了服务器和客户端,跑了一晚上也没出现这个问题。难道跟网速有关?又一次,一个服务器两个客户端,跑了五个小时后,出现问题。 阅读全文
posted @ 2013-09-11 18:19 网络大豆 阅读(209) 评论(0) 推荐(0)
jbpm4.4+ssh配置(有些使用经验很好)
摘要:http://www.cnblogs.com/cmzcheng/archive/2011/11/20/2255806.html——————————————————————————————————————————————————————————————————1. JBPM简介JBPM,全称是Java Business Process Management(业务流程管理),它是覆盖了业务流程管理、工作流、服务协作等领域的一个开源的、灵活的、易扩展的基于java实现的流程业务处理 框架(Business Process Management)。jBPM是公开源代码项目,它使用要遵循 Apache 阅读全文
posted @ 2013-09-09 19:34 网络大豆 阅读(429) 评论(0) 推荐(0)
NetBeans IDE 7.4 Beta版本build JavaFX时生成的可执行jar包执行时找不到依赖的jar包
摘要:现象,执行时抛出java.lang.ClassNotFoundException异常:Executing E:\secondegg\secondegg-reversi\dist\run802221143\secondegg-reversi.jar using platform D:\Program Files\Java\jdk1.7.0_25\jre/bin/javaException in Application init methodjava.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAcces... 阅读全文
posted @ 2013-09-05 00:00 网络大豆 阅读(1451) 评论(0) 推荐(0)
如何判断Socket连接失效
摘要:http://cuisuqiang.iteye.com/blog/1453632————————————————————————————————————————————————————————————————————现在都搞升级,本人也也使用JDK6进行开发。在开发工程中对Socket进行管理时对于这个连接的超时和是否失效进行研究。结果网上的资料很是让人失望,可以说google和百度下来,前几页原创很少都是抄袭。说正经的,对于连接超时和失效肯定会想到设置超时时间和判断连接是否可用。但是设置超时时间后起作用是在调用read方法的时候,如果只是设置了超时时间却没有调用read,那么就算服务端中断连 阅读全文
posted @ 2013-08-24 16:26 网络大豆 阅读(1021) 评论(0) 推荐(0)
log4j:ERROR LogMananger.repositorySelector was null likely due to error in class reloading, using NOPLoggerRepository.
摘要:The reason for the error is a new listener in Tomcat 6.0.24. You can fix this error by adding this line:org.apache.catalina.loader.WebappClassLoader.ENABLE_CLEAR_REFERENCES=falseto the "conf/catalina.properties" file in your tomcat directory. 阅读全文
posted @ 2013-08-18 19:54 网络大豆 阅读(1160) 评论(0) 推荐(0)
设置结点的ID为固定ID
摘要:https://www.java.net//forum/topic/jxta/jxta-community-forum/how-initialize-pse-jxse-27————————————————————————————————————————————————————————————————————borysdOfflineJoined: 2009-11-22Does anybody know how to initialize PSE in 2.7? If I start a rdv peer without peerId or infrastructureID then an ed 阅读全文
posted @ 2013-08-11 17:41 网络大豆 阅读(630) 评论(2) 推荐(0)
CalendarUtil
摘要:1 package ch.makery.address.util; 2 3 import java.text.ParseException; 4 import java.text.SimpleDateFormat; 5 import java.util.Calendar; 6 7 /** 8 * Helper functions for handling dates. 9 */10 public class CalendarUtil {11 12 /**13 * Default date format in the form 2013-03-18.14 */15 pr... 阅读全文
posted @ 2013-08-09 15:51 网络大豆 阅读(425) 评论(0) 推荐(0)
修改Oracle 10g Express Edition默认的8080端口
摘要:http://sucre.blog.51cto.com/1084905/475531——————————————————————————————————————————————————————————————————————以前发表了一篇文章用另一种方法解决Address already in use: JVM_Bind:8080(http://sucre.blog.51cto.com/1084905/413988) ,这是在发生冲突的时候的解决方法,那怎么才能让冲突不再发生呢,试试下面的方法吧,有了它,上面的方法估计就只是救火时才能用到呢。选择“运行SQL命令”,进入如下提示符 SQL> 阅读全文
posted @ 2013-08-08 21:02 网络大豆 阅读(491) 评论(0) 推荐(0)
五虎
摘要:http://code.google.com/p/fivetiger/————————————————————————————————————————————————————给大家推荐一个小游戏《五虎》这是一个鲁中南地区非常流行的益智棋类对战游戏。在网上找了n久也没有人发现有人写出来过,估计是这种游戏流行面比较窄,很多人都不了解。所以决心把它写出来,就当作弘扬民族文化了。这里的游戏规则不是我自己创立出来的,只凭着当年玩的时候留下的记忆,写出来的。尤其是在我上初中的时候,风靡的不得了,因为道具准备简单,就地捡一些石子和木棍,然后在地上画个棋盘就可以玩了。咱当年也是打遍全班无敌手(没吹牛。。。)还 阅读全文
posted @ 2013-08-08 15:27 网络大豆 阅读(486) 评论(0) 推荐(0)
easily add files to META-INF in NetBeans
摘要:http://georgeinfo.blog.163.com/blog/static/16368334120101019104044650/————————————————————————————————————————————————————————————These days when you find me working in Java, you’ll find me working in NetBeans. If I wanted to spend my time manually editing ant scripts, you’d probably find me working 阅读全文
posted @ 2013-08-07 21:42 网络大豆 阅读(580) 评论(0) 推荐(0)
PENCIL PROJECT --- An open-source GUI prototyping tool that's available for ALL platforms.
摘要:http://pencil.evolus.vn/Default.html 阅读全文
posted @ 2013-08-05 10:24 网络大豆 阅读(200) 评论(0) 推荐(0)

上一页 1 2 3 4 5 6 7 8 9 下一页