簡易代碼之家
BlogJava
::
首頁
::
聯系
::
聚合
::
管理
157 Posts :: 2 Stories :: 57 Comments :: 0 Trackbacks
常用鏈接
我的隨筆
我的評論
我的參與
最新評論
留言簿
(2)
給我留言
查看公開留言
查看私人留言
我參與的團隊
隨筆檔案
2015年6月 (1)
2015年4月 (5)
2015年3月 (2)
2015年1月 (3)
2014年12月 (2)
2014年11月 (3)
2014年10月 (4)
2014年9月 (4)
2014年8月 (5)
2014年7月 (11)
2014年6月 (1)
2014年4月 (1)
2013年11月 (1)
2013年8月 (1)
2013年7月 (4)
2013年6月 (1)
2013年5月 (6)
2013年4月 (3)
2013年3月 (2)
2013年2月 (2)
2013年1月 (1)
2012年10月 (3)
2012年9月 (10)
2012年8月 (3)
2012年7月 (2)
2012年6月 (1)
2012年4月 (4)
2011年4月 (1)
2011年3月 (1)
2011年2月 (2)
2010年12月 (2)
2010年10月 (1)
2010年9月 (1)
2010年8月 (2)
2010年7月 (1)
2010年6月 (5)
2010年5月 (9)
2010年3月 (1)
2010年1月 (2)
2009年11月 (1)
2009年9月 (5)
2009年5月 (4)
2009年4月 (7)
2008年10月 (3)
2008年8月 (1)
2008年7月 (5)
2008年6月 (2)
2008年5月 (1)
2008年4月 (3)
2008年3月 (6)
2008年1月 (3)
2007年12月 (1)
2007年11月 (1)
文章檔案
2012年10月 (1)
2007年11月 (1)
搜索
最新評論
1.?re: TFS新建根目錄文件夾
第三方
--手動閥
2.?re: Java web程序中備份oracle數據庫
要是寫上如何恢復數據庫就更好了
--yanwushu
3.?re: 一個調用百度地圖小實例[未登錄]
, .fj
--k
4.?re: Javascript實現Html頁面指定區域導出WORD
dsf
--d
5.?re: 移除JSCharts水印
fs.bg.2v(fX) 很棒
--zzz
閱讀排行榜
1.?Resource is out of sync with the file system的解決辦法(40117)
2.?巧用Ajax4Jsf的oncomplete事件(7161)
3.?一個調用百度地圖小實例(6644)
4.?集合的常用操作類CollectionUtils(5887)
5.?【百度地圖API】獲取行政區域的邊界(4634)
評論排行榜
1.?Resource is out of sync with the file system的解決辦法(8)
2.?Java中對日期的常用處理(6)
3.?實現文字上標的CSS樣式(4)
4.?Spring Mail中文亂碼問題(4)
5.?移除JSCharts水印(4)
生成MyEclipse 7.5注冊碼
新建一個工程,然后導入下面的MyecliseGen.java文件:
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)
{
}
}
}
運行此文件,在控制臺出現:
please input register name:
隨便一個名字,然后回車,即可出現注冊碼,然后在MyEclipse下,在菜單中選擇 Myeclipse->Subscription Information 然后 輸入Subscriber和Subscription code即可。
posted on 2012-07-02 17:28
Jakin.zhou
閱讀(2024)
評論(1)
編輯
收藏
Feedback
#
re: 生成MyEclipse 7.5注冊碼
2013-08-06 14:46
gy
aaaaa
回復
更多評論
新用戶注冊
刷新評論列表
只有注冊用戶
登錄
后才能發表評論。
網站導航:
博客園
IT新聞
Chat2DB
C++博客
博問
管理
Copyright @ Jakin.zhou
Powered by:
.Text
and
ASP.NET
Theme by:
.NET Monster
主站蜘蛛池模板:
a级男女仿爱免费视频
|
视频一区二区三区免费观看
|
免费国产在线视频
|
亚洲精品无码av人在线观看
|
国产日韩AV免费无码一区二区三区
|
亚洲av无码天堂一区二区三区
|
色综合久久精品亚洲国产
|
在线视频免费国产成人
|
国产亚洲精品第一综合
|
亚洲偷自拍拍综合网
|
a毛片视频免费观看影院
|
久久精品国产亚洲
|
午夜免费1000部
|
亚洲中文字幕乱码熟女在线
|
免费无码黄动漫在线观看
|
羞羞漫画小舞被黄漫免费
|
浮力影院亚洲国产第一页
|
久久免费区一区二区三波多野
|
91亚洲va在线天线va天堂va国产
|
亚洲美女视频免费
|
亚洲精华国产精华精华液
|
成人伊人亚洲人综合网站222
|
久久久受www免费人成
|
91亚洲导航深夜福利
|
妞干网免费观看视频
|
尤物视频在线免费观看
|
亚洲制服中文字幕第一区
|
黄色成人网站免费无码av
|
理论片在线观看免费
|
亚洲av一综合av一区
|
最近最新的免费中文字幕
|
caoporn国产精品免费
|
亚洲视频在线免费看
|
免费日韩在线视频
|
久久精品无码精品免费专区
|
亚洲天堂2017无码中文
|
国产精品亚洲综合一区
|
国产高清免费视频
|
久久免费99精品国产自在现线
|
亚洲理论在线观看
|
亚洲欧洲国产成人综合在线观看
|