打开MyEclipse新建一个Javaproject,然后新建类,粘贴例如以下代码,就可以生成MyEclipse的注冊码

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)
{   
 
}   
}   
}

MyEclipse-6.5注冊码生成器源代码的更多相关文章

  1. MyEclipse 8.0注冊码+原版下载_Java开发软件

    MyEclipse是一个十分优秀的用于开发Java, J2EE的Eclipse插件集合,MyEclipse的功能很强大,支持也十分广泛,尤其是对各种开元产品的支持十分不错.MyEclipse眼下支持J ...

  2. MyEclipse各种版本号注冊码

    一:MyEclipse_6.0.1GA_E3.3.1_FullStackInstaller注冊码 Subscriber:javp Subscription Code:wLR7ZL-655551-685 ...

  3. 基于Servlet、JSP、JDBC、MySQL的一个简单的用户注冊模块(附完整源代码)

    近期看老罗视频,做了一个简单的用户注冊系统.用户通过网页(JSP)输入用户名.真名和password,Servlet接收后通过JDBC将信息保存到MySQL中.尽管是个简单的不能再简单的东西,但麻雀虽 ...

  4. 协议的注冊与维护——ndpi源代码分析

    在前面的文章中,我们对ndpi中的example做了源代码分析.这一次我们将尽可能深入的了解ndpi内部的结构和运作.我们将带着以下三个目的(问题)去阅读ndpi的源代码. 1.ndpi内部是怎么样注 ...

  5. 【spring源代码分析】--Bean的解析与注冊

    接着上一节继续分析,DefaultBeanDefinitionDocumentReader的parseBeanDefinitions方法: protected void parseBeanDefini ...

  6. 2014年到期的myeclipse5.5.1注冊码

    假设点击Myeclipse的载入项目到server的图标没有反应,这就是MyEclipse过期了,下面是还能用一年的注冊码: subscriber: axin  Serial:nLR8ZC-85557 ...

  7. myeclipse6.0下载及注冊码

    myeclipse6.0 下载地址.官方下载地址: http://www.myeclipseide.com/module-htmlpages-display-pid-4.html 本地快速下载地址: ...

  8. 从注冊流程 分析怎样安全退出多个Activity 多种方式(附DEMO)

    前言 因为一个同学问到我怎样依照一个流程走好之后回到首页.我曾经看到过4个解决方式,后来发现有做个记录和总结的必要,就写了这篇博文. (之前看小强也写过一篇,这里通过自身的分析完整的总结一下下面6种方 ...

  9. Myeclipse7.5 下载 安装 注冊 注冊码 100%成功

    myeclipse7.5启动画面 1.下载Myeclipse官方原版 官方原版:或者 http://downloads.myeclipseide.com/downloads/products/ewor ...

随机推荐

  1. Flash中用AS3做的游戏,导出apk安装到手机上滤镜效果出不来为什么?

    主要原因是,导出apk文件时渲染模式设置成了GPU.改掉就行了.

  2. Struts2-ActionContext

    官方解释: The ActionContext is the context in which an {@link Action} is executed. Each context is basic ...

  3. CodeForces 225C Barcode DP

    也是一道dp ,想到了就会觉得很巧妙 矩阵中只有白块和黑块,要求repaint后满足下述条件: 每列一种颜色 根据输入范围x, y 要求条纹宽度在[x, y] 之间 数据范围: n, m, x and ...

  4. C# 7.0

    C# 7.0 本文参考Roslyn项目中的Issue:#118. 1. C# 7.0 新特性1: 基于Tuple的“多”返回值方法 2. C# 7.0 新特性2: 本地方法 3. C# 7.0 新特性 ...

  5. javaScript 网页特效 输出语句

    大家好,我是小强老师,今天主要讲解 三个最为常用的输出语句.  alert() 弹出警示框 window.alert(‘继续学习’);  完整的写法 效果如下: 因为alert 属于window 对象 ...

  6. springmvc中使用response的out.print问题

    public ModelAndView handleRequest(HttpServletRequest request, HttpServletResponse response) throws E ...

  7. Flask web开发 处理Ajax请求

    本文介绍如何处理ajax请求, 一.处理ajax的post请求 举例一: js代码举例如下: var id = obj.parentNode.parentNode.id; $.post("/ ...

  8. Fiddler 教程(转)

    阅读目录 Fiddler的基本介绍 Fiddler的工作原理 同类的其它工具 Fiddler如何捕获Firefox的会话 Fiddler如何捕获HTTPS会话 Fiddler的基本界面 Fiddler ...

  9. 基于visual Studio2013解决C语言竞赛题之0520相邻元素

          题目

  10. iOS viewController添加导航条以及返回跳转选择

    给单独的viewcontroller或者在Appdelegate的主页面添加导航条,只要在viewcontroller上添加navigationcontroller,在添加此navigationcon ...