Today tip MyEclipse Trial Expired, how to manually get the MyEclipse registration code! It's bull!

Source: Internet
Author: User
Tags readline dmca

1, build Java Project, casually named, as long as it conforms to the rules on the line.

2. In the project just built right click on SRC, create a new class, named Myeclipsegen, the. Java in the original code all deleted, and then copy the following code into the file. Run, follow the prompts to enter a string of characters, the proposed name of the first letter, and then enter, will appear a string of registration code, and then copy the registration code.

As shown in the following:



3, then MyEclipse---Subscription information, follow the prompts the first line entered the string you just entered, the second line paste the registration code.

If successful, you should find the following prompt, click Finish, congratulations on your success!!



The code in the CSDN is labeled. Very troublesome. I've removed the markings.

It's really nb!!. I have tried, and can use ...

Code ↓↓↓↓↓↓↓


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" 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 (""). 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 = (* 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 >=) && (J <= 57)) {
j = ((((j-48) + 5)% 10) + 48;
} else if ((J >=) && (J <= 90)) {
j = ((((j-65) + 13)% 26) + 65;
} else if ((J >=) && (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) {
}
}
}

The above content is from: http://blog.csdn.net/yuyuyuyuy/archive/2010/09/11/5878122.aspx

Thanks to the author!!!

Today tip MyEclipse Trial Expired, how to manually get the MyEclipse registration code! It's bull!

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.