Activating the MyEclipse 6.5 method-Generate an activation code from a Java program

Source: Internet
Author: User
Tags dmca

Create a new Java class in MyEclipse, named Myeclipsekeygen, to copy the following Java code into the Myeclipsekeygen class, first modify the value of the variable subscriber , and then run the program to get Subscription Code. Enter subscriber and Subscriptioncode in the area shown, click "OK" to activate the MyEclipse6.5 (passed the test, I have successfully activated). Other myeclipse versions have not been tested.

1 ImportJava.text.DecimalFormat;2 ImportJava.text.NumberFormat;3 ImportJava.text.SimpleDateFormat;4 ImportJava.util.Calendar;5 6  Public classMyeclipsekeygen {7 8      Public Static Final voidMain (string[] args) {9String subscriber = "yuxinwangjing";//SubscriberTenString Licensenum = "500";//Number of Licenses OneString Version = "100";//Version number AString Subscriptioncode = Getsubscriptioncode (subscriber, version, Licensenum,true); -System.out.println (Subscriptioncode);//glr8zo-655055-62677056522757051 -     } the      -      Public StaticString Getsubscriptioncode (String subscriber, string version, String licensenum,Booleanselected) { -Calendar cal =calendar.getinstance (); -Cal.add (1, 3);//year plus three year +Cal.add (6,-1);//date minus one//The current date is 20141226 and the expiration date is 20171225 -NumberFormat NF =NewDecimalFormat ("000"); +Licensenum =Nf.format (integer.valueof (Licensenum)); AString Vertime = selected? (NewStringBuffer ("-")). Append (NewSimpleDateFormat ("YyMMdd")). Format (Cal.gettime ())). Append ("0"). ToString (): "0812310"; atString type = "ye3mb-"; -String need = (NewStringBuffer (string.valueof (subscriber.substring (0,1)) . Append (Type). Append (Version). Append (Licensenum). Append (Vertime). toString (); -String dx = (NewStringBuffer (string.valueof (need))). Append ("decompiling this copyrighted software is a violation of both your license AGR Eement 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. "). Append (subscriber). toString (); -         intSuf =decode (DX); -String Code = (NewStringBuffer (string.valueof (need))). Append (string.valueof (SUF)). toString (); -         returnChange (code); in     } -      to     Private Static intDecode (String s) { +  -         inti = 0; the         CharAc[] =S.tochararray (); *         intj = 0; $          for(intK = Ac.length; J < K; J + +)Panax Notoginsengi = * i +Ac[j]; -         returnMath.Abs (i); the     } +      A     Private Staticstring Change (string s) { the         byteAbyte0[] =s.getbytes (); +         CharAc[] =New Char[S.length ()]; -         inti = 0; $          for(intK = Abyte0.length; I < K; i++) { $             intj =Abyte0[i]; -             if(J >= && J <= 57) -j = ((j-48) + 5)% 10 + 48; the             Else if(J >= && J <= 90) -j = ((j-65) + 13)% 26 + 65;Wuyi             Else if(J >= && J <= 122) thej = ((j-97) + 13)% 26 + 97; -Ac[i] = (Char) J; Wu         } -         returnstring.valueof (AC); About     } $}

Activating the MyEclipse 6.5 method-Generate an activation code from a Java program

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.