2013年6月5日
摘要: 1.问题:Exception in thread "main" java.lang.NoClassDefFoundError: org/dom4j/DocumentExceptionat HibernateTest.main(HibernateTest.java:14)方法:添加dom4j.jar(解析hibernate.cfg.xml文件)?2.问题:Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactoryat org 阅读全文
posted @ 2013-06-05 13:51 swxj 阅读(227) 评论(0) 推荐(0) 编辑
摘要: http://wenku.baidu.com/view/2b006bd676a20029bd642d80.html 阅读全文
posted @ 2013-06-05 13:49 swxj 阅读(125) 评论(0) 推荐(0) 编辑
摘要: 一、java.lang.ClassNotFoundException: javassist.util.proxy.MethodFilterlog4j:WARNNoappenderscouldbefoundforlogger(org.hibernate.type.BasicTypeRegistry).log4j:WARNPleaseinitializethelog4jsystemproperly.Exceptioninthread"main"org.hibernate.HibernateException:Unabletoinstantiatedefaulttuplizer[ 阅读全文
posted @ 2013-06-05 13:45 swxj 阅读(23047) 评论(0) 推荐(2) 编辑
  2013年4月24日
摘要: 一、下载安装Eclipse3.3eclipse-SDK-3.3.1.1-win32.zip下载地址:­http://www.eclipse.org/downloads/download.php?file=/eclipse/downloads/drops/R-3.3.1.1-200710231652/eclipse-SDK-3.3.1.1-win32.zip­将eclipse-SDK-3.3.1.1-win32.zip解压缩到一个目录,比如D:\,则会生成一个D:\eclipse文件夹,里面有eclipse.exe,以及两个重要文件夹plugins和features。 阅读全文
posted @ 2013-04-24 17:17 swxj 阅读(651) 评论(0) 推荐(0) 编辑
  2013年3月27日
摘要: using System;using System.Management;using System.Runtime;using System.Runtime.InteropServices;using System.Text;namespace TSConsoleApplication{ /**/ /// <summary> /// VS2005专业教程网收集整理,http://www.vs2005.com/ /// </summary> public class TSControl { /**/ /// <summary> /// Terminal Ser 阅读全文
posted @ 2013-03-27 14:51 swxj 阅读(798) 评论(0) 推荐(0) 编辑
  2013年3月18日
摘要: 窗体动画效果,使用windows提供的API:usingSystem;usingSystem.Collections.Generic;usingSystem.ComponentModel;usingSystem.Data;usingSystem.Drawing;usingSystem.Text;usingSystem.Windows.Forms;usingSystem.Runtime.InteropServices;namespaceWindowsApplication1{publicpartialclassForm1:Form{[DllImportAttribute("user32 阅读全文
posted @ 2013-03-18 16:21 swxj 阅读(419) 评论(0) 推荐(0) 编辑
  2013年3月13日
摘要: 首先要导入对命名空间usingSystem.Runtime.InteropServices;的引用[StructLayout(LayoutKind.Sequential, Pack = 1)]internalstructTokPriv1Luid{publicintCount;publiclongLuid;publicintAttr;}[DllImport("kernel32.dll", ExactSpelling =true)]internalstaticexternIntPtrGetCurrentProcess();[DllImport("advapi32.dl 阅读全文
posted @ 2013-03-13 10:11 swxj 阅读(269) 评论(0) 推荐(0) 编辑
  2013年2月20日
摘要: 一、直接禁止使用屏幕保护功能如果不需要屏幕保护功能,我们可以通过修改注册表来达到这个目的。点击“开始”菜单下的“运行”,输入regedit,打开注册表编辑器,找到HKEY_CURRENT_USER\Control Panel\desktop\ScreenSaveActive(如果你的注册表中没有ScreenSaveActive就新建这个字符串),就是“ScreenSaveActive”这个字符串决定了屏幕保护功能是否可用,其键值为0或1,为“0”时表示不用屏幕保护功能,为“1”则表示可用。所以,双击“ScreenSaveActive”,然后将其键值改为“0”就可以禁止使用屏幕保护功能。二、使“ 阅读全文
posted @ 2013-02-20 17:54 swxj 阅读(1045) 评论(0) 推荐(0) 编辑
  2013年2月19日
摘要: 对于在win7内核下的vs2008破解,和在xp内核系统下的破解是不同的.传统的破解方式: 一、先安装试用版,然后在“添加或删除程序”里找到VS2008,点“更改/删除”就会看到一个输入序列号的地方,把序列号输进去,点“升级”按钮即可,Team Suite和Professional通用。 二、把ISO中的Setup/setup.sdb文件中的[Product Key],由“T2CRQGDKBVW7KJR8C6CKXMW3D”修改为“PYHYPWXB3BB2CCMV9DX9VDY8T”,之后正常安装即可但在win7和win2008R2中,第一种方法是行不通的,因为win7系统中微软遮蔽了序列.. 阅读全文
posted @ 2013-02-19 10:14 swxj 阅读(311) 评论(0) 推荐(0) 编辑
  2013年1月24日
摘要: 自己开发过程中学习开发的,再次提供给大家共享,共同学习。以下代码主要是用来检测输入的字符串是否是合法的Ip地址: private void button1_Click(object sender, EventArgs e) { string con = textBox1.Text.ToString().Trim();//获得输入的字符串 if (con.Contains(".")) { string[] lines = new string[4]; st... 阅读全文
posted @ 2013-01-24 17:37 swxj 阅读(3780) 评论(0) 推荐(0) 编辑