MyEclipse7.5注册码 xmind 7.5 注册码

MyEclipse是收费的,在开源软件大行其道的今天,总让人感到多少有些不便,我这些天也是一直在用MyEclipse7.5,是三十天试用的,今天到期了,所以想办法找到注册码。
很简单,新建一个工程,然后导入下面的java文件:
MyecliseGen.java

importjava.io.BufferedReader;
importjava.io.IOException;
importjava.io.InputStreamReader;
publicclass MyeclipseGen {
privatestatic final String LL = "Decompiling this copyrighted software isa violation of both your license agreement and the DigitalMillenium Copyright Act of 1998(http://www.loc.gov/copyright/legislation/dmca.pdf). Under section1204 of the DMCA, penalties range up to a $500,000 fine or up tofive years imprisonment for a first offense. Think about it; payfor a license, avoid prosecution, and feel better aboutyourself.";
publicString 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 = newjava.text.DecimalFormat("000");
licenseNum =nf.format(Integer.valueOf(licenseNum));
String verTime = newStringBuilder("-").append(
newjava.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 = newStringBuilder(need).append(LL).append(userId)
.toString();
int suf = this.decode(dx);
String code = newStringBuilder(need).append(String.valueOf(suf))
.toString();
return this.change(code);
}
privateint decode(String s) {
int i;
char[] ac;
int j;
int k;
i = 0;
ac = s.toCharArray();
MyEclipse7.5注册码 xmind 7.5 注册码
j = 0;
k = ac.length;
while (j < k) {
i = (31 * i) + ac[j];
j++;
}
return Math.abs(i);
}
privateString 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);
}
publicMyeclipseGen() {
super();
}
publicstatic void main(String[] args){
try {
System.out.println("please input registername:");
BufferedReader reader = new BufferedReader(newInputStreamReader(
System.in));
String userId = null;
userId = reader.readLine();
MyeclipseGen myeclipsegen = newMyeclipseGen();
String res = myeclipsegen.getSerial(userId,"5");
System.out.println("Serial:" +res);
reader.readLine();
} catch (IOException ex) {
}
}
}
运行此文件,在控制台出现:
please input registername:
随便一个名字,然后回车,即可出现注册码,然后在MyEclipse下,在菜单中选择Myeclipse->SubscriptionInformation 然后 输入Subscriber和Subscription code即可。

  

爱华网本文地址 » http://www.aihuau.com/a/25101015/272584.html

更多阅读

myeclipse7.5下载 myeclipse 7.5 64位

Genuitec宣布了MyEclipse Enterprise Workbench7-更智能、更快捷、更简单和更便宜的J2EE工具的新版本的诞生。MyEclipse 7.5版本新增了基于GUI可视化开发Swing组件的功能,对于这项功能相信很多的Programmer已期待已久了,大多Swing爱

声明:《MyEclipse7.5注册码 xmind 7.5 注册码》为网友温柔的放肆分享!如侵犯到您的合法权益请联系我们删除