运行以下程序,生成key:

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, "0");    

                          System.out.println("Serial:" + res);    

                          reader.readLine();    

                      } catch (IOException ex) {    

                      }    

                  }    

              }

myeclipse trial expired暂时解决办法的更多相关文章

  1. myeclipse trial expired[转]

    转自:http://blog.csdn.net/yuyuyuyuy/article/details/5878122 今天MyEclipse提示过期了,MyEclipse Trial Expired. ...

  2. myeclipse 启动卡住的解决办法

    myeclipse 启动卡住的解决办法 今天启动myeclipse突然卡住,CPU一直占用,启动任务管理器强制关闭.重启myeclipse,重启电脑都不能够解决. 上网查找,在工程路径(工作空间的路径 ...

  3. MyEclipse总是quick update解决办法

    这个问题的解决办法是关闭自动更新 1. Windows > Preferences > MyEclipse> Community Essentials, 把选项 "Sear ...

  4. Ubuntu使用MyEclipse闪退的解决办法

    修改myeclipse.ini文件, -Xmx512m-XX:MaxPermSize=512m-XX:ReservedCodeCacheSize=256m-Dosgi.nls.warnings=ign ...

  5. myEclipse开发内存溢出解决办法myEclipse调整jvm内存大小java.lang.OutOfMemoryError: PermGen space及其解决方法

    摘要: tomcat部署多个项目后,启动tomcat正常,访问项目时却会出现该错误在网上查了查又试了好几次,才解决,将解决方法记录下来,以方便以后查看或让遇到同样问题的朋友有个参考 PermGen s ...

  6. []cp,转载]提示MyEclipse Trial Expired,如何手动获取MyEclipse 注册码!很牛!

    1.建立JAVA Project,随便命名,只要符合规则就行. 2.在刚刚建好的Project右击src,新建一个类,命名为MyEclipseGen,把.java里本来有的代码全部删掉,再把下面的代码 ...

  7. MyEclipse激活失败,解决办法

    文章参考:http://www.cnblogs.com/dingyuanxin/p/4046356.html 失败可能是:systemid和exe破解出来的那个对应不上: 1.启动MyEclipse, ...

  8. 今天提示MyEclipse Trial Expired,如何手动获取MyEclipse 注册码!很牛!

    1.建立JAVA Project,随便命名,只要符合规则就行. 2.在刚刚建好的Project右击src,新建一个类,命名为MyEclipseGen,把.java里本来有的代码全部删掉,再把下面的代码 ...

  9. MyEclipse不能自动编译解决办法总结

    yEclipse在debug模式下,有时会碰到修改的文件无法自动编译的问题,以下的方法可以逐一尝试一下. 1.确保:Project->build automatically 已经被选上. 2.p ...

随机推荐

  1. Fortran学习笔记:03 数组(Array)

    Fortran学习笔记目录 书接上回:Fortran学习笔记:02 流控制语句 数组(Array) 定义数组 一维数组 program main implicit none integer :: i ...

  2. 现代 C++ 对多线程/并发的支持(上) -- 节选自 C++ 之父的 《A Tour of C++》

    本文翻译自 C++ 之父 Bjarne Stroustrup 的 C++ 之旅(A Tour of C++)一书的第 13 章 Concurrency.用短短数十页,带你一窥现代 C++ 对并发/多线 ...

  3. Ubuntu20.04安装 maven并配置阿里源

    Ubuntu20.04安装 maven并配置阿里源 sudo apt update sudo apt install maven #安装maven,默认安装路径为/usr/share/maven 添加 ...

  4. 人力节省 50%,研发效能提升 40%,阿里 Serverless 架构落地实践

    作者 | 万佳 嘉宾 | 杨皓然(不瞋) 导读:云的下一波浪潮是什么?杨皓然称"是 Serverless".作为一名阿里老兵,他早在 2010 年即加入阿里云,曾深度参与阿里云飞天 ...

  5. JOIN US | SphereEx 精英集结

    新环境.新气象,SphereEx 欢迎志同道合的你加入! 关于 SphereEx 北京思斐软件技术有限公司(sphere-ex.com),是一家致力于构建新型分布式数据基础设施的公司,秉承开源.共享. ...

  6. 题解 [HAOI2018]反色游戏

    题目传送门 题目大意 给出一个 \(n\) 个点 \(m\) 条无向边的图,每个点都有一个 \(\in [0,1]\) 的权值,每次可以选择一条边,然后将该边相连两点权值异或上 \(1\).问有多少种 ...

  7. Python3 网络通信 网络聊天室 文件传输

    Python3 网络通信 网络聊天室 文件传输 功能描述 该项目将实现一个文字和文件传输的客户端和服务器程序通信应用程序.它将传输和接收视频文件. 文本消息必须通过TCP与服务器通信,而客户端自己用U ...

  8. 如何在印刷品中使用遵循SIL Open Font License协议的字体

    如何在印刷品中使用遵循SIL Open Font License协议的字体 昨天在知乎看到了一个问题,( 如何在设计中声明字体开源许可证? - 知乎 (zhihu.com),恰好最近在研究一些开源协议 ...

  9. 浅析ReDoS的原理与实践

    转载于http://www.freebuf.com/articles/network/124422.html ReDoS(Regular expression Denial of Service) 正 ...

  10. 寻找写代码感觉(八)之SpringBoot过滤器的使用

    一.什么是过滤器? 过滤器是对数据进行过滤,预处理过程,当我们访问网站时,有时候会发布一些敏感信息,发完以后有的会用*替代,还有就是登陆权限控制等,一个资源,没有经过授权,肯定是不能让用户随便访问的, ...