新装的MyEclipse6.5在网上找了半天的注册码,都不可用。将下面的代码放在MyEclipse下运行后,可以得到注册码。这相当于一个注册机。我得到的如下:

administrator

nLR8ZC-855550-60675256396752354

断网粘贴上去之后:

Subscriber: administrator
Product ID: E3MP (MyEclipse Professional Subscription)
License version: 3.0
Full Maintenance Included
Subscription expiration date (YYYYMMDD): 20151207
Number of licenses: 5

可以用到2015年!真的不错!

import java.io.BufferedReader;   
import java.io.IOException;   
import java.io.InputStreamReader;   
 
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, "5");   
    System.out.println("Serial:" + res);   
    reader.readLine();   
  } catch (IOException ex) {   
  }   
}   
}

本文来自CSDN博客,转载请标明出处:http://blog.csdn.net/alifel/archive/2010/01/28/5264854.aspx

MyEclipse6.5注册码(转)的更多相关文章

  1. 100个Myeclipse6.5免费注册码

    下面提供了100个MyEclipse6.5的注册码供大家使用: register name:cghidigfa Serial:pLR8ZC-855550-6359775146444620 ------ ...

  2. 生成MyEclipse6.5&7.5&8.0注册码的java源码

    //运行后即可得到注册码 import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamRe ...

  3. 注册码 myeclipse6.5-6.8

    package controllersli; import java.io.BufferedReader; import java.io.IOException; import java.io.Inp ...

  4. MyEclipse6.5注册

    貌似现在用MyEclipse6.5的人已经不多了,网上的大部分也都已过期,怀旧的人如果想快速得到一个MyElicpse6.5的注册码 Subscriber: dw008 Subscription Co ...

  5. MyEclipse生成注册码

    今天正在使用的MyEclipse出现了使用过期,在网上发现一个可以生成注册码的程序,现在分享给各位. /** * myEclipse生成注册码 * 点击顶部:MyEclipse --> subs ...

  6. Axure 8.0.0.3312可用注册码

    用户名:aaa 注册码:2GQrt5XHYY7SBK/4b22Gm4Dh8alaR0/0k3gEN5h7FkVPIn8oG3uphlOeytIajxGU 用户名:axureuser 序列号:8wFfI ...

  7. 从网上找的 visual studio 的各个版本下载地址,vs2010/vs2012/vs2013带注册码

    从网上找的 visual studio 的各个版本下载地址,很全,从 6.0 一直 到 vs2013,要的拿去吧... Microsoft Visual Studio 6.0 下载:英文版360云盘下 ...

  8. navicat注册码

    1. navicat for mysql 9 注册码   :::   NAVL-EHNC-7N7P-W6GM  2. navicat for mysql 9.17中文版 注册码 :: NAVM-5ZC ...

  9. Axure RP 7.0注册码

    Axure RP 7.0注册码 用户名:axureuser 序列号:8wFfIX7a8hHq6yAy6T8zCz5R0NBKeVxo9IKu+kgKh79FL6IyPD6lK7G6+tqEV4LG   ...

随机推荐

  1. json+mvc

    返回JsonResult序列化的Json对象 public class MyController : Controller {    // 必须返回ActionResult类型     public ...

  2. eclipse不正常编译导致错误:Access denied for user 'root'@'localhost' (using password: YES)

    使用eclipse连接mysql报错:Access denied for user 'root'@'localhost' (using password: YES) 连接代码没有任何问题,网上找了很多 ...

  3. Bootstrap页面布局2 - 包含BS文件

    如图所示: bootstrap布局基于HTML5,为了使IE8以下也能使用某些HTML5的标签,必须要引入文件:http://html5shiv.googlecode.com/svn/trunk/ht ...

  4. EFDC主控文件efdc.inp文件的xml格式化处理——转载http://blog.sina.com.cn/s/articlelist_1584892573_0_1.html

    在对EFDC模型进行系统集成时,虽然可以通过一行一行读来进行解析处理,但那将是一个繁琐的工作.我们经过xml格式化处理后,再经xsd转成Dataset类对象,那么整个主控文件就是一个数据库表集合,对其 ...

  5. java ObjectOutputStream

    import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.IOException; import ...

  6. postgre去重复记录

    postgre去重复记录,主要用到row定位的一个系统表示 “ctid”,能查出纯净的不重复的记录,那要删掉重复值也就容易了,自己去折腾吧. 我所涉及的是得到不重复的记录,就一句话: select c ...

  7. Unicode与UTF8相互转化(使用MultiByteToWideChar)

    1.简述 最近在发送网络请求时遇到了中文字符乱码的问题,在代码中调试字符正常,用抓包工具抓的包中文字符显示正常,就是发送到服务器就显示乱码了,那就要将客户端和服务器设置统一的编码(UTF-8),而我们 ...

  8. 【Android测试】【第九节】MonkeyRunner—— 初识

    ◆版权声明:本文出自胖喵~的博客,转载必须注明出处. 转载请注明出处:http://www.cnblogs.com/by-dream/p/4836815.html 不得不说两句,过了这么久才再次更新博 ...

  9. php--在apache上配制rewrite重写

    配置步骤: 第一步:找到apache的配置文件httpd.conf(文件在conf目录下) 第二步:你首先必须得让服务器支持mod_rewrite,如果你使用的是虚拟主机,请事先询问你的主机提供商. ...

  10. gulp-less插件之less文件编译成css

    gulp 是基于node的,所以第一步要确保你已经安装了node环境,具体怎么安装可以到node官网去看一下(https://nodejs.org/en/) 1.全局按钮gulp 打开node窗口输入 ...