MyEclipse10.0安裝jad反編譯外掛程式

來源:互聯網
上載者:User

1.下載反編譯工具jad(下面提供下載)

將下載下來的jadstar158.zip解壓縮,將jad.exe檔案放入jdk安裝目錄下

如:C:\Program Files\Java\jdk1.6.0_20\bin 

2.下載eclipse反編譯外掛程式net.sf.jadclipse_3.3.0.jar(下面提供下載)

3.將net.sf.jadclipse_3.3.0.jar 放入MyEclipse安裝目錄下,

 如 :安裝目錄\Genuitec\dropins下 沒有dropins,建立之,然後在dropins中建立features檔案夾和plugins檔案夾,將net.sf.jadclipse_3.3.0.jar拷貝到plugins中,然後建立java工程,運行以下代碼(替換其中最後的代碼,你電腦反編譯外掛程式所在的實際位置):

import java.io.File;   import java.util.ArrayList;   import java.util.List;   /**  * MyEclipse10.0 外掛程式配置代碼產生器  *  *  */  public class CreatePluginsConfig   {         public CreatePluginsConfig()       {       }         public void print(String path)       {           List<String> list = getFileList(path);           if (list == null)           {               return;           }             int length = list.size();           for (int i = 0; i < length; i++)           {               String result = "";               String thePath = getFormatPath(getString(list.get(i)));               File file = new File(thePath);               if (file.isDirectory())               {                   String fileName = file.getName();                   if (fileName.indexOf("_") < 0)                   {                       print(thePath);                       continue;                   }                   String[] filenames = fileName.split("_");                   String filename1 = filenames[0];                   String filename2 = filenames[1];                   result = filename1 + "," + filename2 + ",file:/" + path + "\\"                          + fileName + "\\,4,false";                   System.out.println(result);               } else if (file.isFile())               {                   String fileName = file.getName();                   if (fileName.indexOf("_") < 0)                   {                       continue;                   }                   int last = fileName.lastIndexOf("_");// 最後一個底線的位置                   String filename1 = fileName.substring(0, last);                   String filename2 = fileName.substring(last + 1, fileName                           .length() - 4);                   result = filename1 + "," + filename2 + ",file:/" + path + "\\"                          + fileName + ",4,false";                   System.out.println(result);               }             }       }         public List<String> getFileList(String path)       {           path = getFormatPath(path);           path = path + "/";           File filePath = new File(path);           if (!filePath.isDirectory())           {               return null;           }           String[] filelist = filePath.list();           List<String> filelistFilter = new ArrayList<String>();             for (int i = 0; i < filelist.length; i++)           {               String tempfilename = getFormatPath(path + filelist[i]);               filelistFilter.add(tempfilename);           }           return filelistFilter;       }         public String getString(Object object)       {           if (object == null)           {               return "";           }           return String.valueOf(object);       }         public String getFormatPath(String path)       {           path = path.replaceAll("\\\\", "/");           path = path.replaceAll("//", "/");           return path;       }         public static void main(String[] args)       {           /*替換成你的外掛程式的安裝目錄*/         String plugin = "D:\\MyEclipse 10\\MyEclipse 10\\dropins\\plugins";        new CreatePluginsConfig().print(plugin);       }   }  

4.重啟MyEclipse,配置 jadclipse


在Eclipse 的Windows—> Perferences—>General->Editors->File Associations 中修改“*.class”預設關聯的編輯器為“JadClipse Class File Viewer”。如果沒有*.class,則點擊“add"增加一個。

 

安裝設定完畢,可以雙擊class檔案。

資源:jadstar158.zip (233 KB)

 
                       net.sf.jadclipse_3.3.0.jar (44 KB)

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.