转载于:http://blog.chinaunix.net/u3/107875/showart_2281875.html
1、建立java Project,任意取个名字就行。
2、建立一个名字为MyEclipseGen的类文件,内容见附件。
3、运行该代码,在控制台中会出现:
please input register name:
please input register name:
×××××(你的name)
即生成序列号:
4、进入myeclipse,输入Subscriber和Subscription code即可。
其源码如下: