• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

myeclipse试用一段时间后提示注册码失败怎么激活?

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

下载后的myeclipse用了一段时间后,弹出注册码失效了怎么办?今天给大家分享如何破解myeclipse

1、打开你的myeclipse,新建一个java项目。

2、在新建的项目下创建一个类,具体如下步骤。

3、在该类下,加入下列打码(将下列代码复制到code类中)

 

复制内容到剪贴板
  1. package demo;   
  2.   
  3. import java.io.BufferedReader;     
  4.   
  5. import java.io.IOException;     
  6.   
  7. import java.io.InputStreamReader;    
  8.   
  9. public class code {   
  10.   
  11. 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 imprisonment for a first offense. Think about it; pay for a license, avoid prosecution, and feel better about yourself.";     
  12.   
  13. public String getSerial(String userId, String licenseNum) {     
  14.   
  15.   java.util.Calendar cal = java.util.Calendar.getInstance();     
  16.   
  17.   cal.add(1, 3);     
  18.   
  19.   cal.add(6, -1);     
  20.   
  21.   java.text.NumberFormat nf = new java.text.DecimalFormat("000");     
  22.   
  23.   licenseNum = nf.format(Integer.valueOf(licenseNum));     
  24.   
  25.   String verTime = new StringBuilder("-").append(     
  26.   
  27.     new java.text.SimpleDateFormat("yyMMdd").format(cal.getTime()))     
  28.   
  29.     .append("0").toString();     
  30.   
  31.   String type = "YE3MP-";     
  32.   
  33.   String need = new StringBuilder(userId.substring(0, 1)).append(type)  .append("300").append(licenseNum).append(verTime).toString();     
  34.   
  35.   String dx = new StringBuilder(need).append(LL).append(userId)   .toString();     
  36.   
  37.   int suf = this.decode(dx);     
  38.   
  39.   String code = new StringBuilder(need).append(String.valueOf(suf))   .toString();     
  40.   
  41.   return this.change(code);  }     
  42.   
  43. private int decode(String s) {     
  44.   
  45.   int i;     
  46.   
  47.   char[] ac;     
  48.   
  49.   int j;     
  50.   
  51.   int k;     
  52.   
  53.   i = 0;     
  54.   
  55.   ac = s.toCharArray();     
  56.   
  57.   j = 0;     
  58.   
  59.   k = ac.length;     
  60.   
  61.   while (j < k) {     
  62.   
  63.    i = (31 * i) + ac[j];     
  64.   
  65.    j++;     
  66.   
  67.   }     
  68.   
  69.   return Math.abs(i);     
  70.   
  71. }     
  72.   
  73. private String change(String s) {     
  74.   
  75.   byte[] abyte0;  char[] ac; int i;  int k;  int j;     
  76.   
  77.   abyte0 = s.getBytes();     
  78.   
  79.   ac = new char[s.length()];     
  80.   
  81.   i = 0;     
  82.   
  83.   k = abyte0.length;     
  84.   
  85.   while (i < k) {     
  86.   
  87.    j = abyte0[i];     
  88.   
  89.    if ((j >= 48) && (j <= 57)) {     
  90.   
  91.     j = (((j - 48) + 5) % 10) + 48;     
  92.   
  93.    } else if ((j >= 65) && (j <= 90)) {     
  94.   
  95.     j = (((j - 65) + 13) % 26) + 65;     
  96.   
  97.    } else if ((j >= 97) && (j <= 122)) {     
  98.   
  99.     j = (((j - 97) + 13) % 26) + 97;     
  100.   
  101.    }     
  102.   
  103.    ac[i] = (char) j;     
  104.   
  105.    i++;     
  106.   
  107.   }     
  108.   
  109.   return String.valueOf(ac);     
  110.   
  111. }     
  112.   
  113. public code() {     
  114.   
  115.   super();     
  116.   
  117. }     
  118.   
  119. public static void main(String[] args) {     
  120.   
  121.   try {     
  122.   
  123.    System.out.println("please input register name:");     
  124.   
  125.    BufferedReader reader = new BufferedReader(new InputStreamReader(     
  126.   
  127.      System.in));     
  128.   
  129.    String userId = null;     
  130.   
  131.    userId = reader.readLine();     
  132.   
  133.   code myeclipsegen = new code();     
  134.   
  135.    String res = myeclipsegen.getSerial(userId, "5");     
  136.   
  137.    System.out.println("Serial:" + res);     
  138.   
  139.    reader.readLine();     
  140.   
  141.   } catch (IOException ex) {     
  142.   
  143.   }     
  144.   
  145. }     
  146.   
  147. }  

4、然后运行该类。具体如下

5、运行后控制,输入登录账户然后回城就能生产注册码

6、在myeclipse栏目下找到subscription information选项

7、将生成的注册码复制到对应位置,完成激活(一定时间内)。

相关推荐:

myeclipse误删的项目文件怎么找回?

myeclipse怎么导出war包?Web项目导出war包的方法

myeclipse创建spring配置文件正确却显示红叉该怎么办?


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap