LifeNote
  Try to find something different in your life and then write it down      Java乐园:www.java-bj.cn 资料下载

2008年4月24日

     摘要: 这个工具感觉非常方便 介绍给大家
安装方法:
help => Software Updates => Find and Install... => Search for new features to install,单击"New Remote Site..." 在URL栏输入 http://www.technoetic.com/eclipse/update.然后下一步,就可以看到“jode decompiler plugin *.*”,选上安装就可以了。

安装好后可以看到Window => Preferences... => Java => Jode Decompiler选项卡。

配置:Window => Preferences... => General => Editors => File Associations找到"*.class"在"Associated editors"里面可以看到"Jode class file viewer"选中它再单击Default按钮.

在Eclipse中展开ja  阅读全文
posted @ 2008-04-24 15:05 LifeNote 阅读(1287) | 评论 (8)编辑 收藏
 
     摘要: 1.Java数据库操作基本流程
a .数据库连接1.Drivermanager 链接数据库
String className,url,uid,pwd;
className="Oracle.jdbc.driver.OracleDriver";
uid="scott";
pwd="tiger";
url="jdbc:oracle:thin:@localhost:1521:ora92";
Class.forName(classname);
Connection conn=DriverManager.getConnection(url,uid,pwd);
2.JNDI链接数据库
String jndi ="jdbc/db"; // e20-040 9L0-609 数据源的名称
//context是一组名称到对象的绑定组成
Hashtable env=new Hashtable ();
Context ctx=(Context)new InitialContext.lookup("env")  阅读全文
posted @ 2008-04-24 10:36 LifeNote 阅读(1196) | 评论 (4)编辑 收藏