解决MyEclipse "Your MyEclipse subscription has expired" 提示
来源:互联网 发布:protobuffer java 编辑:程序博客网 时间:2024/06/05 02:08
自己解决 MyEclipse subscription expired
拷贝下面代码并编译:
package com;import java.text.DecimalFormat;import java.text.NumberFormat;import java.text.SimpleDateFormat;import java.util.Calendar;public class Test { public static final void main(String[] args){ String subscriber = "luncd"; //subscriber String licenseNum = "500"; //Number of Licenses String version = "100"; //版本号 String subscriptionCode = getSubscriptionCode(subscriber, version , licenseNum ,true); System.out.println(subscriptionCode); //gLR8ZO-655055-62677056522757051 } public static String getSubscriptionCode( String subscriber, String version, String licenseNum, boolean selected) { Calendar cal = Calendar.getInstance(); cal.add(1, 3); //年份加三年 cal.add(6, -1); //日期减一 //当前日期20141226,到期日期则为20171225 NumberFormat nf = new DecimalFormat("000"); licenseNum = nf.format(Integer.valueOf(licenseNum)); String verTime = selected ? (new StringBuffer("-")).append( (new SimpleDateFormat("yyMMdd")).format(cal.getTime())).append("0").toString() : "-0812310"; String type = "YE3MB-"; String need = (new StringBuffer(String.valueOf(subscriber.substring(0, 1)))).append(type).append(version).append(licenseNum).append(verTime).toString(); String dx = (new StringBuffer(String.valueOf(need))).append("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.").append(subscriber).toString(); int suf = decode(dx); String code = (new StringBuffer(String.valueOf(need))).append(String.valueOf(suf)).toString();return change(code); } private static int decode(String s) { int i = 0; char ac[] = s.toCharArray(); int j = 0; for (int k = ac.length; j < k; j++) i = 31 * i + ac[j]; return Math.abs(i); } private static String change(String s) { byte abyte0[] = s.getBytes(); char ac[] = new char[s.length()]; int i = 0; for (int k = abyte0.length; i < k; i++) { int 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; } return String.valueOf(ac); }}
运行结果:
输入新的注册码:
1 0
- 解决MyEclipse "Your MyEclipse subscription has expired" 提示
- Your MyEclipse subscription has expired
- 完美解决MyEclipse提示过期Your 30-day trial of MyEclipse has expired.
- MyEclipse提示过期“Your 30-day trial of MyEclipse has expired.”
- MyEclipse提示your trial period has expired时,如何手动获取MyEclipse注册码!
- MyEclipse提示过期“Your 30-day trial of MyEclipse has expired.”
- Your 30-day trial of MyEclipse has expired 解决方案
- myeclipse提示myeclipse trial expired
- 如何解决MyEclipse出现MyEclipse Trial Expired的提示
- 解决MyEclipse Trial Expired
- MyEclipse提示注册码MyEclipse Trial Expired解决方案
- MyEclipse到期提示Myeclipse Trial Expired
- myeclipse subscription code,myeclipse 注册码
- Java入门到精通——调错篇之解决MyEclipse 输入注册码后:Enter or update your subscription information.问题
- MyEclipse Subscription code生成器
- MyEclipse Subscription code生成器
- MyEclipse提示过期了,MyEclipse Trial Expired解决方法
- 提示MyEclipse Trial Expired,手动获取MyEclipse 注册码
- Linux下安装和使用boost库
- APP上架被拒理由
- Delphi : 使用ApplicationEvents来拦截窗体消息,阻止WebBrowser右键菜单
- iOS缓存思路
- Android 应用开发特色
- 解决MyEclipse "Your MyEclipse subscription has expired" 提示
- ICE提纲之demo/Glacier2/callback(跨网回调)
- 引用及指针
- unlink();
- linux 添加用户、权限
- 圆形ImageView系列(二)-----Xfermode+ImageView
- 用Glacier2进行事务管理
- 浏览器缓存知识小结及应用
- 栈与队列