[] Cp, reproduced] the message "MyEclipse Trial Expired" is displayed. How to manually obtain the MyEclipse registration code! Awesome !, Myeclipseexpired

Source: Internet
Author: User
Tags dmca

[] Cp, reproduced] the message "MyEclipse Trial Expired" is displayed. How to manually obtain the MyEclipse registration code! Awesome !, Myeclipseexpired

 

1. Create a JAVA Project and name it as long as it complies with the rules.

2. Right-click src in the Project you just created, create a new class, name it MyEclipseGen, delete all the original code in. java, and copy the following code to the file. Run. Enter a string of characters as prompted. We recommend that you take the first letter of the name and press Enter. A registration code is displayed, and then copy the registration code.

As shown in:



3. Then MyEclipse --> subscribe Information, enter the string you just entered in the first line as prompted, and paste the registration code in the second line.

If it succeeds, you will find the following prompt. Click finish to finish. Congratulations !!



 

The code in CSDN contains labels .. Very troublesome .. I removed the label ..

Really NB !! I tried it. You can use it...

Code example


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, "20 ");
System. out. println ("Serial:" + res );
Reader. readLine ();
} Catch (IOException ex ){
}
}
}

 

 

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.