myeclipse trial expired


  1. import java.io.*;     
  2.   
  3. public class MyEclipseGen {     
  4.     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.";     
  5.     public String getSerial(String userId, String licenseNum) {     
  6.         java.util.Calendar cal = java.util.Calendar.getInstance();     
  7.         cal.add(13);     
  8.         cal.add(6, -1);     
  9.         java.text.NumberFormat nf = new java.text.DecimalFormat("000");     
  10.         licenseNum = nf.format(Integer.valueOf(licenseNum));     
  11.         String verTime = new StringBuilder("-").append(new java.text.     
  12.                 SimpleDateFormat("yyMMdd").format(cal.getTime())).append("0").     
  13.                          toString();     
  14.         String type = "YE3MP-";     
  15.         String need = new StringBuilder(userId.substring(01)).append(type).     
  16.                       append("300").append(licenseNum).append(verTime).toString();     
  17.         String dx = new StringBuilder(need).append(LL).append(userId).toString();     
  18.         int suf = this.decode(dx);     
  19.         String code = new StringBuilder(need).append(String.valueOf(suf)).     
  20.                       toString();     
  21.         return this.change(code);     
  22.     }     
  23.   
  24.     private int decode(String s) {     
  25.         int i;     
  26.         char[] ac;     
  27.         int j;     
  28.         int k;     
  29.         i = 0;     
  30.         ac = s.toCharArray();     
  31.         j = 0;     
  32.         k = ac.length;     
  33.         while (j < k) {     
  34.             i = (31 * i) + ac[j];     
  35.             j++;     
  36.         }     
  37.         return Math.abs(i);     
  38.     }     
  39.   
  40.     private String change(String s) {     
  41.         byte[] abyte0;     
  42.         char[] ac;     
  43.         int i;     
  44.         int k;     
  45.         int j;     
  46.         abyte0 = s.getBytes();     
  47.         ac = new char[s.length()];     
  48.         i = 0;     
  49.         k = abyte0.length;     
  50.         while (i < k) {     
  51.             j = abyte0[i];     
  52.             if ((j >= 48) && (j <= 57)) {     
  53.                 j = (((j - 48) + 5) % 10) + 48;     
  54.             } else if ((j >= 65) && (j <= 90)) {     
  55.                 j = (((j - 65) + 13) % 26) + 65;     
  56.             } else if ((j >= 97) && (j <= 122)) {     
  57.                 j = (((j - 97) + 13) % 26) + 97;     
  58.             }     
  59.             ac[i] = (char) j;     
  60.             i++;     
  61.         }     
  62.         return String.valueOf(ac);     
  63.     }     
  64.   
  65.     public MyEclipseGen() {     
  66.         super();     
  67.     }     
  68.   
  69.     public static void main(String[] args) {     
  70.         try {     
  71.             System.out.println("please input register name:");     
  72.             BufferedReader reader = new BufferedReader(new InputStreamReader(     
  73.                     System.in));     
  74.             String userId = null;     
  75.             userId = reader.readLine();     
  76.             MyEclipseGen myeclipsegen = new MyEclipseGen();     
  77.             String res = myeclipsegen.getSerial(userId, "0");     
  78.             System.out.println("Serial:" + res);     
  79.             reader.readLine();     
  80.         } catch (IOException ex) {     
  81.         }     
  82.     }     
  83. }  
  84. 运行后效果如下:

     

    修改String res = myeclipsegen.getSerial(userId, "20"); 中"20"为"0"可以变成Number of Licenses为Unlimited.

     

    然后

    然后将刚才生成的序列号输入

    点击下面的Finish即可

    代码测试过了,可行!

    从Myeclipse--》subscription information 即可进入update subscription界面。

    ok,现在可以了吧?恭喜你!


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值