MyEclipse and Eclipse install Java anti-compile plugin

Source: Internet
Author: User

Plug-in required package

1. Unzip the jad1.5.8g.zip. Put the jad.exe into the bin directory of the JRE: HTTP://ISHARE.IASK.SINA.COM.CN/F/15708995.HTML?FROM=DL

As the author under the D:\program Files\java\jre6\bin

2. Install Jadeclipse Http://jaist.dl.sourceforge.net/sourceforge/jadclipse/net.sf.jadclipse_3.3.0.jar

The Jadclipse_3.1.0.jar replication plug-in directory on the personal machine environment is MyEclipse version 7.5,eclipse version 3.3. Other versions are consistent. Under the \plugins directory of the Eclipse installation directory, such as author: d:\ Program Files\eclipse\pluginsmyeclipse Copy to Common\plugins directory, such as author: D:\program Files\genuitec\common\plugins

for Eclipse installation

As follows: Windows-> perference-> Java There should be more than one jadclipse directory, and the related settings can be modified in this configuration jadclipse:

Set path to Decompiler as the full path to Jad.exe, as the author's: D:\program Files\java\jre6\bin\jad.exe

If there is a problem with Chinese anti-compilation, click Window > Preferences > Java > Jadclipse > Misc to tick the convert Unicode strings into ANSI strings option.

This plug-in installation is successful, click on the class file to view the source code, see the source of MongoDB

for MyEclipse installation

MyEclipse has not provided the link installation since 7.0, but instead installs the plugin in a way that writes configuration information to the Bundles.info file. The steps are as follows:

1. Download the plugin you need for the installation, the structure needs to be consistent with the link installation time:

+yourpluginname (Your plugin filename--parent)

+----Plugins (default required folder--child)

+----Features (default required folder--child)

eg. my file structure is

+jadplugin

+------Features

+-------Plugins

2. Copy the plugin folder to the Custom plugins folder (which is your own easy to manage, self-built folder, D:\program files\genuitec\common\jadplugin\plugins)

3. Use MyEclipse to create a new Java file with the following code:

Import java.io.file;import java.util.arraylist;import java.util.list;//myeclipse 7.5 Plug-in Configuration code generator public class Pluginutil        {public pluginutil () {} 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 ("_");//The position of the final underscore 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) {/* The installation directory of your plug-in. The parameter String plugin content is the absolute path to which you want to install the plug-in.        Install only need to replace their own plug-in path can */String plugin = "D:/program files//genuitec/common/jadplugin";    New Pluginutil (). print (plugin); }}

4. Run the above code,

5. Copy the contents of the console output to D:/program files/genuitec/myeclipse 7.5/configuration/org.eclipse.equinox.simpleconfigurator/ The Bundles.info file.
5. Restart MyEclipse to complete the installation.

The following configuration is consistent with the eclipse installation.

MyEclipse and Eclipse install Java anti-compile plugin

Related Article

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.