MyEclipse提示过期“Your 30-day trial of MyEclipse has expired.”

转载 2013年12月03日 19:05:57
今天MyEclipse提示过期了,MyEclipse Trial Expired.
网上找到了一个注册类可以生成Myeclipse注册码.
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 imprisonment 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) {        

                                            }        

                                    }        

                            }
运行后效果如下:
 
修改String res = myeclipsegen.getSerial(userId, "20"); "20""0"可以变成Number of LicensesUnlimited.

register name :自己随便输入一个就可以,如果不能用就换一个名字
 
然后
然后将刚才生成的序列号输入
点击下面的Finish即可
代码测试过了,可行!
Myeclipse--subscription information 即可进入update subscription界面。
ok,现在可以了吧?恭喜你!

相关文章推荐

MyEclipse提示过期“Your 30-day trial of MyEclipse has expired.”

原文出处:http://blog.163.com/jw0104@126/blog/static/846064912014215105326638/ 今天MyEclipse提示过期了,MyEcli...

Your 30-day trial of MyEclipse has expired 解决方案

今天MyEclipse提示过期了,MyEclipse Trial Expired. 网上找到了一个注册类可以生成Myeclipse注册码.   [java] view plain cop...
  • shgege1
  • shgege1
  • 2017年01月19日 14:02
  • 621

解决MyEclipse "Your MyEclipse subscription has expired" 提示

自己解决 MyEclipse subscription expired,手动运行Java代码用原来注册的subscriber 名称为参数获取新的注册码。...

MyEclipse提示过期,MyEclipse Trial Expired解决方法及激活

1、建立JAVA Project,随便命名,只要符合规则就行。 2、在刚刚建好的Project右击src,新建一个类,命名为MyEclipseGen,再把下面的代码复制到文件中。运行,按照提示输入一...

MyEclipse Trial Expired 问题及解决方案

此问题解决方案有两种:   第一种:下载MyEclipse注册机,地址:http://download.csdn.net/detail/zzq2yz1314/4756537   第二种:手动生...

myeclipse10破解

好久没有使用myeclipse,今天打开突然提示“Your unactivated use of MyEclipse expired 6 days ago”.      其实就是当时没有激活...

Delphi7高级应用开发随书源码

  • 2003年04月30日 00:00
  • 676KB
  • 下载

MyEclipse到期提示Myeclipse Trial Expired

1.新建一个java项目,或者在已有的项目中新建一个MyEclipseGen.java文件 2.将如下代码考入保存: import java.io.*; public class MyEclip...

myeclipse trial expired

今天MyEclipse提示过期了,MyEclipse Trial Expired. 网上找到了一个注册类可以生成Myeclipse注册码. import java.io.*; ...

myeclipse trial expired

今天用MyEclipse7.5时遇到这个问题了,网上一搜发现这个方法还真是好使,就转载一下咯。 原文地址:http://blog.csdn.net/yuyuyuyuy/article/det...
内容举报
返回顶部
收藏助手
不良信息举报
您举报文章:MyEclipse提示过期“Your 30-day trial of MyEclipse has expired.”
举报原因:
原因补充:

(最多只允许输入30个字)