MyEclipse registration code is automatically generated (support MyEclipse8 and previous versions)

Source: Internet
Author: User
Tags readline dmca

Open MyEclipse Create a new Java project (project name arbitrary), and then create a new Class (class name Myeclipsegen), paste the following code, run, you can generate MyEclipse registration code

1  PackageHelloWorld;2 ImportJava.io.BufferedReader; 3  Importjava.io.IOException; 4  ImportJava.io.InputStreamReader; 5   6   Public classMyeclipsegen {7  Private Static FinalString 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" five years imprisonment for a first offense . Think about it; Pay for a license, avoid prosecution, and feel better about yourself. "; 8   9   Publicstring Getserial (String userId, String licensenum) {TenJava.util.Calendar cal =java.util.Calendar.getInstance ();  OneCal.add (1, 3);  ACal.add (6,-1);  -Java.text.NumberFormat NF =NewJava.text.DecimalFormat ("000");  -Licensenum =Nf.format (integer.valueof (licensenum));  theString Vertime =NewStringBuilder ("-"). Append ( -      NewJava.text.SimpleDateFormat ("YyMMdd"). Format (Cal.gettime ())) -. Append ("0"). toString ();  -String type = "ye3mp-";  +String need =NewStringBuilder (userid.substring (0, 1) . Append (type) -. Append ("300"). Append (Licensenum). Append (Vertime). toString ();  +String dx =NewStringBuilder (Need). Append (LL). Append (userId) A . toString ();  at    intSuf = This. Decode (DX);  -String Code =NewStringBuilder (Need). Append (string.valueof (SUF)) - . toString ();  -   return  This. Change (code);  -  }    -    in  Private intDecode (String s) { -    inti;  to   Char[] AC;  +    intJ;  -    intK;  thei = 0;  *AC =S.tochararray ();  $j = 0; Panax NotoginsengK =ac.length;  -     while(J <k) { thei = (* i) +Ac[j];  +J + +;  A    }    the    returnMath.Abs (i);  +  }    -    $  Privatestring Change (string s) { $    byte[] abyte0;  -    Char[] AC;  -    inti;  the    intK;  -    intJ; WuyiABYTE0 =s.getbytes ();  theAC =New Char[S.length ()];  -i = 0;  WuK =abyte0.length;  -     while(I <k) { Aboutj =Abyte0[i];  $     if((J >=) && (J <= 57)) {    -j = ((((j-48) + 5)% 10) + 48;  -}Else if((J >=) && (J <= 90)) {    -j = ((((j-65) + 13)% 26) + 65;  A}Else if(J >= && (J <= 122))) {    +j = ((((j-97) + 13)% 26) + 97;  the      }    -Ac[i] = (Char) J;  $i++;  the    }    the   returnstring.valueof (AC);  the  } the    -   PublicMyeclipsegen () { in   Super();  the  }    the    About   Public Static voidMain (string[] args) { the   Try {    theSYSTEM.OUT.PRINTLN ("Please input register name:");  theBufferedReader reader =NewBufferedReader (NewInputStreamReader ( + system.in));  -String userId =NULL;  theUserId =Reader.readline (); BayiMyeclipsegen Myeclipsegen =NewMyeclipsegen ();  theString res = myeclipsegen.getserial (userId, "5");  theSystem.out.println ("Serial:" +res);  - Reader.readline ();  -}Catch(IOException ex) { the    }    the  }    the}
View Code

MyEclipse registration code is automatically generated (support MyEclipse8 and previous versions)

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.