解决MyEclipse提示过期Your 30-day trial of MyEclipse has expired.
之前电脑安装过很多myeclipse版本,导致过期了,后续继续安装也提示过期。今天特意来彻底解决**不成功问题。
达到效果:**成功如图
1.首先安装**手册操作,导致出现MyEclipse提示过期Your 30-day trial of MyEclipse has expired.
并未解决**成功,以下是我使用的工具和手册。
2.后来在网上找了一篇文章,通过运行java程序来生成**码,代码如下:
mport java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; /** * Created by panda on 2018/5/23. * 注册MyEclipse***生成 */ public class RegistCodeTest { 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 RegistCodeTest() { super(); } public static void main(String[] args) { try { System.out.println("请输入注册名:"); BufferedReader reader = new BufferedReader(new InputStreamReader( System.in)); String userId = null; userId = reader.readLine(); RegistCodeTest myeclipsegen = new RegistCodeTest(); String res = myeclipsegen.getSerial(userId, "0"); System.out.println("生成的***:" + res); reader.readLine(); } catch (IOException ex) { } } }
运行后效果如下:
修改String res = myeclipsegen.getSerial(userId, "20"); 中"20"为"0"可以变成Number of Licenses为Unlimited.
然后
然后将刚才生成的***输入
点击下面的Finish即可
代码测试过了,可行!
从Myeclipse--》subscription information 即可进入update subscription界面。
3.操作完上面的步骤,并未解决问题,冒出新的问题:
product activation must be completed within 5 days “产品**必须要在5天内完成”
4.没办法,继续找方法
发现下面又有一个方法,继续尝试,结果还是未能**成功。
操作如下:
按照网上搜索的方法,怎么试,都是**不成功,提示:product activation must be completed within 5 days
后来实在没办法,就尝试了最后一种:用管理员打开cmd,转到*****目录,执行java -jar cracker.jar命令,打开cracker.jar后按照以下操作说明:
第一步:输入任意用户名
第二步:点击Systemid... 按钮,自动生成本机器的systemid。
--我的机子手工输入Systemid
--我的机子手工输入Systemid
第三步: 点菜单Tools->RebuildKey
第四步:点击active按钮.会在显示区域生成
LICENSE_KEY
ACTIVATION_CODE
ACTIVATION_KEY
ACTIVATION_CODE
ACTIVATION_KEY
这时候不要打开myeclipse的**页面输入。
第五步:打开菜单Tools->ReplaceJarFile,弹出文件选择对话框,到myeclipse的安装目录common文件夹下选择plugins文件夹
点击打开,程序会卡住,不要担心,正在替换文件呢!
一会之后,会输出信息,文件已被替换
第六步:点菜单Tools->SaveProperites
最后打开myeclipse,终于成功了
不知道别人都成功,就我不成功。