卡饭网 > 其他 > 正文

myeclipse试用一段时间后提示注册码失败怎么激活?

来源:本站整理 作者:梦在深巷 时间:2016-02-14 11:16:20

下载后的myeclipse用了一段时间后,弹出注册码失效了怎么办?今天给大家分享如何破解myeclipse

myeclipse试用一段时间后提示注册码失败怎么激活?

1、打开你的myeclipse,新建一个java项目。

myeclipse试用一段时间后提示注册码失败怎么激活?

2、在新建的项目下创建一个类,具体如下步骤。

myeclipse试用一段时间后提示注册码失败怎么激活?

3、在该类下,加入下列打码(将下列代码复制到code类中)

复制内容到剪贴板

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

myeclipse试用一段时间后提示注册码失败怎么激活?

4、然后运行该类。具体如下

myeclipse试用一段时间后提示注册码失败怎么激活?

5、运行后控制,输入登录账户然后回城就能生产注册码

myeclipse试用一段时间后提示注册码失败怎么激活?

6、在myeclipse栏目下找到subscription information选项

myeclipse试用一段时间后提示注册码失败怎么激活?

7、将生成的注册码复制到对应位置,完成激活(一定时间内)。

myeclipse试用一段时间后提示注册码失败怎么激活?

相关推荐