中国IT动力,最新最全的IT技术教程
最新100篇 | 推荐100篇 | 专题100篇 | 排行榜 | 搜索 | 在线API文档 | 网通镜像
首 页 | 程序开发 | 操作系统 | 软件应用 | 图形图象 | 网络应用 | 精文荟萃 | 教育认证 | 硬件维护 | 未整理篇 | 站长教程
ASP JS PHP工程 ASP.NET 网站建设 UML J2EESUN .NET VC VB VFP 网络维护 数据库 DB2 SQL2000 Oracle Mysql
服务器 Win2000 Office C DreamWeaver FireWorks Flash PhotoShop 上网宝典 CorelDraw 协议大全 网络安全 微软认证
硬件维护  CPU  主板  硬盘  内存  显卡  显示器  键盘鼠标  声卡音箱  打印机  机箱电源  BIOS  网卡  C#  Java  Delphi  vs.net2005
  当前位置:> 程序开发 > 编程语言 > Java > 测试
Integrate the Jad Decompiler Plug-in into Eclipse
作者:未知 时间:2005-08-10 22:21 出处:Java频道 责编:chinaitpower
              摘要:Integrate the Jad Decompiler Plug-in into Eclipse
on't you hate it when you are debugging your code within Eclipse, and while stepping into a method call, a Class File Editor pops up exclaiming "Source Not Found"? Wouldn't you rather see the Java source the next time that happens? By integrating a Java decompiler into your IDE, you can enable this functionality. Follow this complete step-by-step guide to integrate the Jad decompiler into Eclipse. Along the way, you'll find out what makes Java decompilers such handy additions to the developer's toolkit.

Installation
First, you need to download the necessary tools. Before anything else, make sure you have an installation of Eclipse. This article uses Eclipse 3.0.1. Note that in order to use Eclipse 3, you must use a J2SE of 1.4 or higher. This article uses J2SE 5.0 (formerly Tiger).

 
Figure 1. Eclipse JadClipse Settings

Now download the latest version of the Jad Java decompiler. This article uses version 1.5.8 for Windows. Unzip the zip file to your computer:

  1. Add your JAD_HOME directory to your PATH environment variable. For example, I unzipped my Jad download to C:\jadnt158 and added it to PATH.
  2. To test whether you have configured correctly, open a new DOS shell. Type 'jad' at the prompt. You should see information about Jad and options for usage.

Next, download the latest version (beta 2.06) of the JadClipse plugin for Eclipse. Unzip the zip file to your computer. Copy the jadclipse folder (not jadclipse_b206) to your Eclipse\plugins folder.

Finally, download the Spring Framework (Spring 1.1.2 was the latest version at the time of this article) and unzip the download to your computer.

 
Figure 2. Eclipse Workbench File Associations Settings

Configure JadClipse
Now configure the JadClipse plugin within Eclipse:

  1. Open Eclipse. At the top menu, click Window->Preferences->Java->JadClipse.
  2. Set Path to decompiler = %jadnt158_directory%\jad.exe. Additionally, you can also set the output directory for decompiled files as well (see Figure 1). Click Apply.
  3. Now expand the Workbench node, and choose File Associations. In the top box named File Types, select *.class. In the bottom box named Associated Editors, select JadClipse Class File Viewer, and click Default (see Figure 2).

关闭本页
 
首页 | 投资与合作 | 服务条款 | 隐私政策 | 收藏本站 | 设为首页 | 新用户注册 | 免责声明 | 使用帮助
Copyright ©2005-2008 chinaitpower.com All rights reserved. www.chinaitpower.com 版权所有