myeclipse 7.1 keygen

1、建立java Project,任意取个名字就行。

2、建立一个名字为MyEclipseGen的类文件,内容见附件。

3、运行该代码,在控制台中会出现:

please input register name:
×××××(你的name)

即生成序列号:

4、进入myeclipse,输入Subscriber和Subscription code即可。

代码如下:

 

Java代码
  1. import java.io.*;  
  2.   
  3. public class MyEclipseGen {  
  4. 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.";  
  5. public String getSerial(String userId, String licenseNum) {  
  6. java.util.Calendar cal = java.util.Calendar.getInstance();  
  7. cal.add(13);  
  8. cal.add(6, -1);  
  9. java.text.NumberFormat nf = new java.text.DecimalFormat("000");  
  10. licenseNum = nf.format(Integer.valueOf(licenseNum));  
  11. String verTime = new StringBuilder("-").append(new java.text.  
  12. SimpleDateFormat("yyMMdd").format(cal.getTime())).append("0").  
  13. toString();  
  14. String type = "YE3MP-";  
  15. String need = new StringBuilder(userId.substring(01)).append(type).  
  16. append("300").append(licenseNum).append(verTime).toString();  
  17. String dx = new StringBuilder(need).append(LL).append(userId).toString();  
  18. int suf = this.decode(dx);  
  19. String code = new StringBuilder(need).append(String.valueOf(suf)).  
  20. toString();  
  21. return this.change(code);  
  22. }  
  23.   
  24. private int decode(String s) {  
  25. int i;  
  26. char[] ac;  
  27. int j;  
  28. int k;  
  29. i = 0;  
  30. ac = s.toCharArray();  
  31. j = 0;  
  32. k = ac.length;  
  33. while (j < k) {  
  34. i = (31 * i) + ac[j];  
  35. j++;  
  36. }  
  37. return Math.abs(i);  
  38. }  
  39.   
  40. private String change(String s) {  
  41. byte[] abyte0;  
  42. char[] ac;  
  43. int i;  
  44. int k;  
  45. int j;  
  46. abyte0 = s.getBytes();  
  47. ac = new char[s.length()];  
  48. i = 0;  
  49. k = abyte0.length;  
  50. while (i < k) {  
  51. j = abyte0[i];  
  52. if ((j >= 48) && (j <= 57)) {  
  53. j = (((j - 48) + 5) % 10) + 48;  
  54. else if ((j >= 65) && (j <= 90)) {  
  55. j = (((j - 65) + 13) % 26) + 65;  
  56. else if ((j >= 97) && (j <= 122)) {  
  57. j = (((j - 97) + 13) % 26) + 97;  
  58. }  
  59. ac[i] = (char) j;  
  60. i++;  
  61. }  
  62. return String.valueOf(ac);  
  63. }  
  64.   
  65. public MyEclipseGen() {  
  66. super();  
  67. }  
  68.   
  69. public static void main(String[] args) {  
  70. try {  
  71. System.out.println("please input register name:");  
  72. BufferedReader reader = new BufferedReader(new InputStreamReader(  
  73. System.in));  
  74. String userId = null;  
  75. userId = reader.readLine();  
  76. MyEclipseGen myeclipsegen = new MyEclipseGen();  
  77. String res = myeclipsegen.getSerial(userId, "20");  
  78. System.out.println("Serial:" + res);  
  79. reader.readLine();  
  80. catch (IOException ex) {  
  81. }  
  82. }  
  83. }  

下面文章或许你还感兴趣

  • myeclipse 7.5 keygen 源代码
  • 转-MyEclipse9 破解方法
  • 解决Spring Tool Suite和Maven2找不到JDK的问题
  • Maven2 常用命令
  • FDT3.5正式版已经发布
  • 收藏-Flex Builder 3 on Eclipse 3.5
  • Ubuntu下搭建Java开发环境
  • 自定义 Tree Data descriptor
  • JasperReport与JPA结合设计报表
  • 转发-最新MyEclipse 7.5 插件安装方法

发表评论

电子邮件地址不会被公开。 必填项已用 * 标注

*

您可以使用这些 HTML 标签和属性: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>