MyEclipse xx Install jad anti-compile plugin

Source: Internet
Author: User
Tags object object

1. Download the anti-compilation tool jad,:http://varaneckas.com/jad/

Unzip the downloaded Jadstar158.zip and put the Jad.exe file in the JDK installation directory

such as: C:\Program Files\java\jdk1.6.0_20\bin

2. Download the Eclipse anti-compile plugin net.sf.jadclipse_3.3.0.jar,:http://prdownloads.sourceforge.net/jadclipse/ Net.sf.jadclipse_3.3.0.jar?download

3. put the Net.sf.jadclipse_3.3.0.jar into the MyEclipse installation directory,

For example: Install directory \genuitec\dropins without Dropins, new, and then create a new features folder and plugins folder in Dropins, will net.sf.jadclipse_3.3.0. Jar to plugins, and then create a new Java project, run the following code (replace the last code in it, the actual location of your computer's decompile plug-in):

 PackageCom.deng;ImportJava.io.File; Importjava.util.ArrayList; Importjava.util.List; /*** MyEclipse Plugin Configuration Code generator * **/       Public classCreatepluginsconfig { PublicCreatepluginsconfig () {} Public voidprint (String path) {List<String> list =getfilelist (path); if(List = =NULL)             {                 return; }                 intLength =list.size ();  for(inti = 0; i < length; i++) {String result= ""; String Thepath=Getformatpath (getString (List.get (i))); File File=NewFile (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; }                     intlast = Filename.lastindexof ("_");//the position of the last underlineString 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); }                 }         }              PublicList<string>getfilelist (String path) {path=Getformatpath (path); Path= path + "/"; File FilePath=NewFile (path); if(!filepath.isdirectory ()) {                 return NULL; } string[] FileList=filepath.list (); List<String> Filelistfilter =NewArraylist<string>();  for(inti = 0; i < filelist.length; i++) {String tempfilename= Getformatpath (path +Filelist[i]);             Filelistfilter.add (TempFileName); }             returnFilelistfilter; }              PublicString getString (Object object) {if(Object = =NULL)             {                 return""; }             returnstring.valueof (object); }              Publicstring Getformatpath (string path) {Path= Path.replaceall ("\\\\", "/"); Path= Path.replaceall ("//", "/"); returnpath; }              Public Static voidMain (string[] args) {/*Replace the installation directory with your plugin*/String Plugin= "E:\\program Files\\myeclipse\\eclipse\\plugins"; Newcreatepluginsconfig (). print (plugin); }     }   

4. Restart MyEclipse, configure Jadclipse

In Eclipse's windows-> perferences->general->editors->file associations, modify the "*.class" default associated editor to "JadClipse The Class File Viewer. If there is no *.class, click "Add" to add a. Here you can open a. class file.

MyEclipse xx Install jad anti-compile plugin

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

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.