??xml version="1.0" encoding="utf-8" standalone="yes"?>日韩精品一区二区三区,国产精品久久久久婷婷,国产成人在线视频免费播放http://www.aygfsteel.com/CreJavasky/最好的关系存在于对别h的爱胜于对别人的索求之上zh-cnSat, 05 Jul 2025 19:34:54 GMTSat, 05 Jul 2025 19:34:54 GMT60求助Axis 中文文档http://www.aygfsteel.com/CreJavasky/archive/2007/03/28/107015.html桥 水桥 水Wed, 28 Mar 2007 08:48:00 GMThttp://www.aygfsteel.com/CreJavasky/archive/2007/03/28/107015.htmlhttp://www.aygfsteel.com/CreJavasky/comments/107015.htmlhttp://www.aygfsteel.com/CreJavasky/archive/2007/03/28/107015.html#Feedback0http://www.aygfsteel.com/CreJavasky/comments/commentRss/107015.htmlhttp://www.aygfsteel.com/CreJavasky/services/trackbacks/107015.htmlzywmh1997@163.com

桥 水 2007-03-28 16:48 发表评论
]]>
人生中十件无能ؓ(f)力的?/title><link>http://www.aygfsteel.com/CreJavasky/archive/2007/03/15/104116.html</link><dc:creator>桥 水</dc:creator><author>桥 水</author><pubDate>Thu, 15 Mar 2007 15:24:00 GMT</pubDate><guid>http://www.aygfsteel.com/CreJavasky/archive/2007/03/15/104116.html</guid><wfw:comment>http://www.aygfsteel.com/CreJavasky/comments/104116.html</wfw:comment><comments>http://www.aygfsteel.com/CreJavasky/archive/2007/03/15/104116.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/CreJavasky/comments/commentRss/104116.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/CreJavasky/services/trackbacks/104116.html</trackback:ping><description><![CDATA[人生中十件无能ؓ(f)力的事:(x) (tng) (tng) (tng) (tng) <br /> (tng) (tng)<br />1Q?倒向你的墙?tng) (tng) (tng)?<br /> (tng) (tng)<br />2Q?M而去的h (tng) (tng) (tng) (tng) <br /> (tng) (tng)<br />3Q?逝的旉 (tng) (tng) (tng) (tng) <p></p><p> (tng) (tng)<br />4Q?没有选择的出w?tng) (tng) (tng)?<br /> (tng) (tng)<br />5Q?莫名其妙的孤独?tng) (tng) (tng)?<br /> (tng) (tng)<br />6Q?无可奈何的遗忘?tng) (tng) (tng)?<br /> (tng) (tng)<br />7Q?永远的过去?tng) (tng) (tng)?<br /> (tng) (tng)<br />8Q?别h的嘲W?tng) (tng) (tng)?<br /> (tng) (tng)<br />9Q?不可避免的死亡?tng) (tng) (tng)?<br /> (tng) (tng)<br />10Q?不可救药的喜Ƣ?tng)?/p><img src ="http://www.aygfsteel.com/CreJavasky/aggbug/104116.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/CreJavasky/" target="_blank">桥 水</a> 2007-03-15 23:24 <a href="http://www.aygfsteel.com/CreJavasky/archive/2007/03/15/104116.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>-jar参数q行应用时classpath的设|方?/title><link>http://www.aygfsteel.com/CreJavasky/archive/2007/02/09/98917.html</link><dc:creator>桥 水</dc:creator><author>桥 水</author><pubDate>Fri, 09 Feb 2007 01:59:00 GMT</pubDate><guid>http://www.aygfsteel.com/CreJavasky/archive/2007/02/09/98917.html</guid><wfw:comment>http://www.aygfsteel.com/CreJavasky/comments/98917.html</wfw:comment><comments>http://www.aygfsteel.com/CreJavasky/archive/2007/02/09/98917.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/CreJavasky/comments/commentRss/98917.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/CreJavasky/services/trackbacks/98917.html</trackback:ping><description><![CDATA[ <div class="wmqeeuq" id="entryCopyright"> <strong> <font color="black">转蝲链接Q?/font> </strong> <a snap_preview_added="no">http://www.zeali.net/entry/15</a> </div> <div style="FONT-WEIGHT: bold; FONT-SIZE: 12px; COLOR: #336666">关键? <a rel="tag" snap_preview_added="spa" snap_icon_added="spa" parent_link_icon="false">java</a>,<a rel="tag" snap_preview_added="spa" snap_icon_added="spa" parent_link_icon="false">-jar</a>,<a rel="tag" snap_preview_added="spa" snap_icon_added="spa" parent_link_icon="false">classpath</a>,<a rel="tag" snap_preview_added="spa" snap_icon_added="spa" parent_link_icon="false">W三方类?/a>,<a rel="tag" snap_preview_added="spa" snap_icon_added="spa" parent_link_icon="false">ClassLoader</a></div> <div class="wmqeeuq" id="entry_introduce"> <div id="wmqeeuq" class="entry_introduce">你是否在使用java -jar参数q行打包好的jar应用E序的时候发现应用程序无法找到classpath下设|好的第三方cd的内容?无论怎么讄classpath参数都无于事,L?x)报ClassNotFound的错误?那么本篇帖子可以帮助你摆q(ch)?:)</div> </div> <div class="wmqeeuq" id="entryBody"> <p>当用java -jar yourJarExe.jar来运行一个经q打包的应用E序的时候,你会(x)发现如何讄-classpath参数应用E序都找不到相应的第三方c,报ClassNotFound错误。实际上q是׃当?jar参数q行的时候,java VM?x)屏蔽所有的外部classpath,而只以本wyourJarExe.jar的内部class作ؓ(f)cȝL范围?/p> <p>**解决Ҏ(gu)**</p> <p>一 BootStrap class扩展Ҏ(gu)</p> <p>Java 命o(h)行提供了(jin)如何扩展bootStrap U别class的简单方?<br />-Xbootclasspath: (tng) (tng) (tng) (tng) (tng)完全取代基本核心(j)的Java class 搜烦(ch)路径.<br /> (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) 不常?否则要重新写所有Java 核心(j)class<br />-Xbootclasspath/a: 后缀在核?j)class搜烦(ch)路径后面.常用!!<br />-Xbootclasspath/p: 前缀在核?j)class搜烦(ch)路径前面.不常?避免<br /> (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) 引v不必要的冲突.</p> <p>语法如下:<br /> (tng)(分隔W与classpath参数cMQunix使用:?windows使用;Pq里以unixZ)<br /><strong> (tng)java -Xbootclasspath/a:/usrhome/thirdlib.jar: -jar yourJarExe.jar</strong></p> <p>?extend class 扩展Ҏ(gu)</p> <p>Java exten class 存放在{Java_home}\jre\lib\ext目录?当调用Java?Ҏ(gu)展class路径的搜索是自动?M(x)搜烦(ch)?q样,解决的方案就很简单了(jin),所有要使用的第三方的jar包都复制到ext 目录?</p> <p>?User class扩展Ҏ(gu)</p> <p>当?jar执行可执行Jar包时,JVMJar包所在目录设|ؓ(f)codebase目录,所有的class搜烦(ch)都在q个目录下开?所以如果用了(jin)其他W三方的jar?一个比较可以接受的可配|方?是利用jar包的Manifest扩展机制.<br />步骤如下:</p> <p> (tng)1.需要的W三方的jar?复制在同可执行jar所在的目录或某个子目录? (tng)比如:jar 包在 /usrhome/yourJarExe.jar 那么你可以把所有jar包复制到/usrhome目录下或/usrhome/lib {类似的子目录下.</p> <p> (tng)2.修改Manifest 文g</p> <p> (tng)在Manifest.mf文g里加入如下行</p> <p> (tng)Class-Path:classes12.jar lib/thirdlib.jar</p> <p> (tng)Class-Path 是可执行jar包运行依赖的关键?详细内容可以参考?a target="_blank" snap_preview_added="spa" snap_icon_added="spa" parent_link_icon="false">http://java.sun.com/docs/books/tutorial/deployment/jar/downman.html</a> (tng)。要注意的是 Class-Path 只是作ؓ(f)你本地机器的CLASSPATH环境变量的一个羃写,也就是说用这个前~表示在你的jar包执行机器上所有的CLASSPATH目录下寻扄应的W三方类/cd。你q不能通过 Class-Path 来加载位于你本n的jar包里面(或者网l上Q的jar文g。因Z理论上来Ԍ你的jar发布包不应该再去包含其他的第三方cdQ而应该通过使用说明来提醒用户去获取相应的支持类库)(j)。如果由于特D需要必L其他的第三方cdQjar, zip, class{)(j)直接打包在你自己的jar包里面一起发布,你就必须通过实现自定义的ClassLoader来按照自q意图加蝲q些W三方类库?/p> <p> <br />以上三种Ҏ(gu)<strong>推荐W一U?/strong>Q扩展性好Q操作v来也最方便.<br />另外~写自己的ClassLoader,来动态蝲入class,是更加复杂和高技?限于幅,不赘q?有兴了(jin)解可以去google一下custom classloaderQ或者参考我的另一日志:(x)<a title="让classpath参数走开" snap_preview_added="no" alt="让classpath参数走开">让classpath参数走开</a>?/p> <p>Java的安全机刉不同的JDK版本有不同的变化,?x)?jing)响很多核?j)CLASS,比如Thread,所以很多大型商业Y?要求JDK的版本很严格.部分原因也在?q也要求在发布自q写的应用时?不管大小,都要说明开发和试的JDK版本.</p> <p> <br />本文所q方法测试基于j2sdk 1.4.2_04-b05 </p> <p>----------------------------------------------------------------------------------------------</p> <p>?背景知识</p> <p>自JDK 1.2以后,JVM采用?jin)委?delegate)模式来蝲入classQ采用这U设计的原因可以参?a target="_blank" snap_preview_added="spa" snap_icon_added="spa" parent_link_icon="false">http://java.sun.com/docs/books/tutorial/ext/basics/load.html</a></p> <p>归纳来讲:是基于JVM sandbox(沙盒)安装模型上提供应用层的可定制的安全机?</p> <p> <br />Java虚拟?JVM)LClass的顺?/p> <p>1. Bootstrap classes</p> <p>属于Java q_核心(j)的class,比如java.lang.String{??qing)rt.jar{重要的核心(j)U别的class.q是由JVM Bootstrap class loader来蝲入的.一般是攄在{java_home}\jre\lib目录?/p> <p>2. Extension classes</p> <p>ZJava扩展机制,用来扩展Java核心(j)功能模块.比如Java串口通讯模块comm.jar.一般放|在{Java_home}\jre\lib\ext目录?/p> <p>3. User classes</p> <p>开发h员或其他W三方开发的JavaE序?通过命o(h)行的-classpath?cp,或者通过讄CLASSPATH环境变量来引?JVM通过攄在{java_home}\lib\tools.jar来寻扑֒调用用户U的class.常用的javac也是通过调用tools.jar来寻扄h定的路径来编译Java源程?q样引Z(jin)User class路径搜烦(ch)的顺序或优先U别的问?</p> <p> (tng)3.1 ~省?调用Java或javawa的当前\?.),是开发的class所存在的当前目?br /> (tng)3.2 CLASSPATH环境变量讄的\?如果讄?jin)CLASSPATH,则C(j)LASSPATH的g(x)覆盖~省?br /> (tng)3.3 执行Java的命令行-classpath?cp的?如果制定?jin)这两个命o(h)行参C一,它的g(x)覆盖环境变量CLASSPATH的?br /> (tng)3.4 -jar 选项:如果通过java -jar 来运行一个可执行的jar?q当前jar包会(x)覆盖上面所有的?换句话说,-jar 后面所跟的jar包的优先U别最?如果指定?jar选项,所有环境变量和命o(h)行制定的搜烦(ch)路径都将被忽?JVM APPClassloader只?x)以jar包ؓ(f)搜烦(ch)范围.<br />有关可执行jar有许多相关的安全斚w的描q?可以参?a target="_blank" snap_preview_added="spa" snap_icon_added="spa" parent_link_icon="false">http://java.sun.com/docs/books/tutorial/jar/</a> 来全面了(jin)?</p> <p>q也是ؓ(f)什么应用程序打包成可执行的jar包后,不管你怎么讄classpath都不能引用到W三方jar包的东西?</p> </div> <img src ="http://www.aygfsteel.com/CreJavasky/aggbug/98917.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/CreJavasky/" target="_blank">桥 水</a> 2007-02-09 09:59 <a href="http://www.aygfsteel.com/CreJavasky/archive/2007/02/09/98917.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>获取MAC地址Q?/title><link>http://www.aygfsteel.com/CreJavasky/archive/2006/12/25/89990.html</link><dc:creator>桥 水</dc:creator><author>桥 水</author><pubDate>Mon, 25 Dec 2006 14:22:00 GMT</pubDate><guid>http://www.aygfsteel.com/CreJavasky/archive/2006/12/25/89990.html</guid><wfw:comment>http://www.aygfsteel.com/CreJavasky/comments/89990.html</wfw:comment><comments>http://www.aygfsteel.com/CreJavasky/archive/2006/12/25/89990.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/CreJavasky/comments/commentRss/89990.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/CreJavasky/services/trackbacks/89990.html</trackback:ping><description><![CDATA[怎样用java获取MAC地址Q?img src ="http://www.aygfsteel.com/CreJavasky/aggbug/89990.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/CreJavasky/" target="_blank">桥 水</a> 2006-12-25 22:22 <a href="http://www.aygfsteel.com/CreJavasky/archive/2006/12/25/89990.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>hibernate遇到自增型的联合主键该怎么办?http://www.aygfsteel.com/CreJavasky/archive/2006/12/24/89760.html桥 水桥 水Sun, 24 Dec 2006 08:49:00 GMThttp://www.aygfsteel.com/CreJavasky/archive/2006/12/24/89760.htmlhttp://www.aygfsteel.com/CreJavasky/comments/89760.htmlhttp://www.aygfsteel.com/CreJavasky/archive/2006/12/24/89760.html#Feedback1http://www.aygfsteel.com/CreJavasky/comments/commentRss/89760.htmlhttp://www.aygfsteel.com/CreJavasky/services/trackbacks/89760.html

桥 水 2006-12-24 16:49 发表评论
]]>
怎样在和标签中设|初|http://www.aygfsteel.com/CreJavasky/archive/2006/08/07/62112.html桥 水桥 水Mon, 07 Aug 2006 01:27:00 GMThttp://www.aygfsteel.com/CreJavasky/archive/2006/08/07/62112.htmlhttp://www.aygfsteel.com/CreJavasky/comments/62112.htmlhttp://www.aygfsteel.com/CreJavasky/archive/2006/08/07/62112.html#Feedback1http://www.aygfsteel.com/CreJavasky/comments/commentRss/62112.htmlhttp://www.aygfsteel.com/CreJavasky/services/trackbacks/62112.html

桥 水 2006-08-07 09:27 发表评论
]]>
java中的equals()Ҏ(gu)?=="Q?/title><link>http://www.aygfsteel.com/CreJavasky/archive/2006/06/26/55174.html</link><dc:creator>桥 水</dc:creator><author>桥 水</author><pubDate>Mon, 26 Jun 2006 08:35:00 GMT</pubDate><guid>http://www.aygfsteel.com/CreJavasky/archive/2006/06/26/55174.html</guid><wfw:comment>http://www.aygfsteel.com/CreJavasky/comments/55174.html</wfw:comment><comments>http://www.aygfsteel.com/CreJavasky/archive/2006/06/26/55174.html#Feedback</comments><slash:comments>2</slash:comments><wfw:commentRss>http://www.aygfsteel.com/CreJavasky/comments/commentRss/55174.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/CreJavasky/services/trackbacks/55174.html</trackback:ping><description><![CDATA[ (tng) (tng) (tng) 在写javaE序时往往要遇到判断两个实例是否相{的问题Q那么Object中的equals(Object),到底比较的是两个实例中的什么呢Q我认ؓ(f)他们比较的是创徏实例时所深成的hashCodeQ?可是我的直觉认ؓ(f)不是q样?,如下Q? <br /> (tng) (tng) (tng) class Test { <br /> (tng) (tng) (tng)  (tng) (tng) (tng) public String name;<br /> (tng) (tng) (tng) (tng) } <br /><br /> (tng) (tng) (tng) Test t = new Test(); <br /> (tng) (tng) (tng) t.name = "hello";<br /> (tng) (tng) (tng) Test two = new Test(); <br /> (tng) (tng) (tng) two.name = "hello"; <br /><br /> (tng) (tng) (tng) 其中t.equals(two) 和  t == two q回的都是falseQ(其中t和two这两个实例所生成的hashCode是不相同的)(j) <br /><br /> (tng) (tng) (tng) 而对如下Q? <br /> (tng) (tng) (tng) String st = "hello";<br /> (tng) (tng) (tng) String str = new String("hello");<br /> (tng) (tng) (tng) 其中str.equals(str)和st == strq回的分别是true和false Q其中st和str这两个实例所生成的hashCode是相同的Q? <br /><br /> (tng) (tng) (tng) q里我有一个问题,在什么情况下"=="才成立?以前我认Z个实例的hashCode向同q两个实例就成立?jin),可是上面的例子已l证明了(jin)不成立了(jin)? 那到底什么情况下"=="才成立呢Q(不要告诉我,他们的条件是要在同一个实例的情况下,那我?!!!!Q? <br /><br /> (tng) (tng) (tng) 那不同的实例与hashCode有什么样的关pdQ? <img src ="http://www.aygfsteel.com/CreJavasky/aggbug/55174.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/CreJavasky/" target="_blank">桥 水</a> 2006-06-26 16:35 <a href="http://www.aygfsteel.com/CreJavasky/archive/2006/06/26/55174.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>dojo资料http://www.aygfsteel.com/CreJavasky/archive/2006/06/25/54961.html桥 水桥 水Sun, 25 Jun 2006 01:46:00 GMThttp://www.aygfsteel.com/CreJavasky/archive/2006/06/25/54961.htmlhttp://www.aygfsteel.com/CreJavasky/comments/54961.htmlhttp://www.aygfsteel.com/CreJavasky/archive/2006/06/25/54961.html#Feedback0http://www.aygfsteel.com/CreJavasky/comments/commentRss/54961.htmlhttp://www.aygfsteel.com/CreJavasky/services/trackbacks/54961.html

桥 水 2006-06-25 09:46 发表评论
]]>
一个hibernate中的事务问题?http://www.aygfsteel.com/CreJavasky/archive/2006/06/24/54945.html桥 水桥 水Sat, 24 Jun 2006 15:08:00 GMThttp://www.aygfsteel.com/CreJavasky/archive/2006/06/24/54945.htmlhttp://www.aygfsteel.com/CreJavasky/comments/54945.htmlhttp://www.aygfsteel.com/CreJavasky/archive/2006/06/24/54945.html#Feedback0http://www.aygfsteel.com/CreJavasky/comments/commentRss/54945.htmlhttp://www.aygfsteel.com/CreJavasky/services/trackbacks/54945.html (tng) (tng)
 (tng) (tng) (tng) Session session = HibernateUtil.currentSession();
 (tng) (tng) (tng) Transaction trans = session.beginTransaction();
 (tng) (tng) (tng) Admin a = (Admin) session.get(Admin.class, admin.getAdminId());
 (tng) (tng) (tng) session.delete(a);
 (tng) (tng) (tng) trans.commit();
 (tng) (tng) (tng) HibernateUtil.closeSession();

 (tng) (tng) (tng) Z么像q样的删除操作必要攑֜一个事务中才能够执?而去掉了(jin)事务性就不能够执行删除操作了(jin)?

桥 水 2006-06-24 23:08 发表评论
]]>
Jbuilder中打包问题? http://www.aygfsteel.com/CreJavasky/archive/2006/06/24/54932.html桥 水桥 水Sat, 24 Jun 2006 11:44:00 GMThttp://www.aygfsteel.com/CreJavasky/archive/2006/06/24/54932.htmlhttp://www.aygfsteel.com/CreJavasky/comments/54932.htmlhttp://www.aygfsteel.com/CreJavasky/archive/2006/06/24/54932.html#Feedback2http://www.aygfsteel.com/CreJavasky/comments/commentRss/54932.htmlhttp://www.aygfsteel.com/CreJavasky/services/trackbacks/54932.html (tng) (tng) (tng) 我在Jbuilder 2005中与*.hbm.xml对应的pojo的javac,在打包成j2ee的warӞ却不能打包进去,q是什么问题?

桥 水 2006-06-24 19:44 发表评论
]]>
վ֩ģ壺 | | | | | | ǡ| ²| | | Ͻ| | ػ| | ͨ| ³ƶ| | | ϴ| Ϋ| | | | | ̨| ͬ| | ̳| | ƽ| ˮ| ƽ| «| ľ| ӽ| | Դ| | ƽ| | |