【转】myeclipse的破解方法

转自:http://blog.csdn.net/yuyuyuyuy/article/details/5878122

1. 获得myeclipse的5天试用

今天MyEclipse提示过期了,MyEclipse Trial Expired.

网上找到了一个注册类可以生成Myeclipse注册码.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
import java.io.*;     
  
public class MyEclipseGen {     
    private static final String LL = "Decompiling this copyrighted software is a violation of both your license agreement and the Digital Millenium Copyright Act of 1998 (http://www.loc.gov/copyright/legislation/dmca.pdf). Under section 1204 of the DMCA, penalties range up to a $500,000 fine or up to five years im*ment for a first offense. Think about it; pay for a license, avoid prosecution, and feel better about yourself.";     
 
    public String getSerial(String userId, String licenseNum) {     
        java.util.Calendar cal = java.util.Calendar.getInstance();     
        cal.add(1, 3);      
        cal.add(6, -1);      
                     java.text.NumberFormat nf = new java.text.DecimalFormat("000");       
                      licenseNum = nf.format(Integer.valueOf(licenseNum));     
                      String verTime = new StringBuilder("-").append(      
                              new java.text.SimpleDateFormat("yyMMdd").format(cal.getTime()))
                              .append("0").toString();      
                      String type = "YE3MP-";       
                      String need = new StringBuilder(userId.substring(0, 1)).append(type).append("300").append(licenseNum).append(verTime).toString();       
                      String dx = new StringBuilder(need).append(LL).append(userId).toString();     
                      int suf = this.decode(dx);     
                      String code = new StringBuilder(need).append(String.valueOf(suf)).toString();     
                      return this.change(code);     
                  }     
 
                  private int decode(String s) {       
                      int i;      
                      char[] ac;      
                      int j;      
                      int k;      
                      i = 0; 
                      ac = s.toCharArray();       
                      j = 0;       
                      k = ac.length;     
                       while (j < k) {      
                          i = (31 * i) + ac[j];       
                          j++;       
                      }       
                      return Math.abs(i);       
                  }     
  
                 private String change(String s) {       
                      byte[] abyte0;       
                      char[] ac;       
                      int i;       
                      int k;       
                      int j;       
                      abyte0 = s.getBytes();     
                      ac = new char[s.length()];       
                      i = 0;       
                      k = abyte0.length;      
                      while (i < k) {       
                          j = abyte0[i];       
                          if ((j >= 48) && (j <= 57)) {       
                              j = (((j - 48) + 5) % 10) + 48;       
                          } else if ((j >= 65) && (j <= 90)) {       
                             j = (((j - 65) + 13) % 26) + 65;       
                          } else if ((j >= 97) && (j <= 122)) {       
                              j = (((j - 97) + 13) % 26) + 97;       
                          }     
                          ac[i] = (char) j;      
                          i++;      
                      }       
                      return String.valueOf(ac);       
                  }     
  
                  public MyEclipseGen() {       
                      super();       
                  }     
 
                  public static void main(String[] args) {       
                      try {       
                          System.out.println("please input register name:");      
                          BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));     
                          String userId = null;       
                          userId = reader.readLine();       
                          MyEclipseGen myeclipsegen = new MyEclipseGen();       
                          String res = myeclipsegen.getSerial(userId, "0");       
                          System.out.println("Serial:" + res);       
                          reader.readLine();       
                      } catch (IOException ex) {       
                      }       
                  }       
              }

编译运行后,输入注册名,即得对应的serial。在trial expired 的提示框中点击unlock或从myeclipse的面板上选择myEclipse->subscription information,在打开的update subscription面板上,填入对注册名及serial,点击finish即可注册成功。

2. 获得myeclipse的长期使用权限

注册成功后,第二天,发现myeclipse提示还有5天就将过期。于是找了个新的破解软件的方法。以下主要内容来自:http://www.sxrczx.com/t/article/8ad0ed7521434d278d401bdeea5fd820.htm

1、下载Myeclipse.10 破解补丁.zip 先关闭Myeclipse。运行该软件需要JDK环境。

2、解压缩到任意目录,点击Myeclipse.10.5 破解补丁/crack/run.bat

3、输入Usercode,点击SystemId...,将自动生成SystemId。

4、点击Active,将生成相关的破解注册码。

【转】myeclipse的破解方法

其中的对应关系为:(在上图都有标注明确的对应关系。)

LICENSEE对应于Subscriber
LICENSE_KEY对应于Subscription Code
ACTIVATION_KEY对应于Activation Code

很奇怪,myeclipse并不能根据这些得到码进行激活,提示激活码invalid。不过,经过第5、6步后,发现myeclipse还是可以激活成功的。

5、这个时候要注意了,不要着急打开Myeclipse,先点击激活工具左上角的Tools,选择ReplaceJarFile,稍等片刻,文件夹选择机器上安装MyEclipse->Common->plugins文件夹。然后软件会卡住,此时正在替换plugins中的文件,等软件恢复文件即替换完成。

【转】myeclipse的破解方法

6、点击激活工具Tools的SaveProperites,他会保存一些Myeclipse激活时需要读取的配置文件。

7、此时可以打开Myeclipse,就可以发现myeclipse已经被激活了。

今天群里一位同学的机器上运行碰到如下异常:

1
Unable to access jarfile *.jar

打不开破解工具,原因是jvm虚拟内存太低,我看了他的机器配置,win7中文OS,内存2GB,可能虚拟内存分配的比较少,解决办法:编辑run.bat文件,完整内容如下(你可以复制以下内容保存成run.bat替换旧的文件):

1
java -Xms256m-Xmx1024m-jar *.jar

【转】myeclipse的破解方法

上一篇:ASP.NET Core 根据环境变量支持多个 appsettings.json配置文件 (开发和生产)


下一篇:java泛型