Myeclipse8.5 subscription expired自己动手获取Myeclipse的注册码
2024-08-24 22:38:39
步骤:
1.在myeclipse中新建一个java project
2.在src目录下建立一个名为MyEclipseGen的类
3.将下面的代码复制到该类中,并运行。
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, "20");
System.out.println("Serial:" + res);
reader.readLine();
} catch (IOException ex) {
}
}
}
4.按照提示输入注册名(自己随便输入即可),然后会自动产生注册码
5.打开“MyEclipse”----“subscription information”对话框,输入刚才产生的注册码和用户名即可。
最新文章
- STM32之位绑定
- 41. Unique Binary Search Trees &;&; Unique Binary Search Trees II
- 027. asp.net中数据绑定控件之 GridView控件
- MYSQL存储过程实现in传入参数 where in(&#39;1&#39;,&#39;2&#39;)
- EBP的妙用[无法使用ESP定律时]
- Linux 命令 - alias: 设置或显示别名
- 关于Excel Networkdays方法的实现
- 使用navicat 11 出现不能返回存储过程结果的问题
- python成长之路——第八天
- ubuntu环境ceph配置入门(一)
- SSH三作品的框架和流程
- POST和GET的详细解释以及区别
- 6.vue如何上传到svn
- java中判断字符串是否为数字的方法的几种方法
- 全面剖析Redis Cluster原理和应用
- 关于IE浏览器 ajax 请求返回数据不对的问题
- 华为交换机-SNMP配置
- SQL EXCEPT INTERSECT
- javascript鼠标拖拽的那些事情
- 视觉单词模型、词袋模型BoW
热门文章
- node.js整理 06异步编程
- js兼容方法:通过样式名获取元素,byClass
- java 常见下载合集
- 指针与const
- 原生 js 写分页
- ural 2073. Log Files
- ACM ICPC 2015 Moscow Subregional Russia, Moscow, Dolgoprudny, October, 18, 2015 D. Delay Time
- iOS数据持久化文件读写之偏好设置
- 生理周期[PKU1006]
- mysql的关于TABLE_SCHEMA的sql语句和nformation_schema表