[MyEclipse installation and configuration tutorial] 2. Using the registered machine code to crack MyEclipse

Keywords: Java MyEclipse JDK svn

From: http://blog.csdn.net/bing Bing a/article/details/53130341

MyEclipse installation configuration is divided into the following steps:


1, Install JDK and configure environment variables:

[MyEclipse installation and configuration tutorial] 1. Install JDK and configure the environment variable - blog - blog Channel - CSDN.NET

http://blog.csdn.net/bing_bing_a/article/details/53128132


2, Use the registration code to crack MyEclipse, that is, this article.

3, Install SVN:

4, To configure Tomcat:





1, Start MyEclipse and set up the workspace



2, Create a new java project



Start with a first name and capitalize.



Create a new package, and copy the java file of the register.


Attached registration machine code:


  1. package ***;  
  2.   
  3. import java.io.BufferedReader;  
  4. import java.io.IOException;  
  5. import java.io.InputStreamReader;  
  6.   
  7. public class Register {  
  8.   
  9.     /** 
  10.      * @param args 
  11.      */  
  12.         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.";  
  13.         public String getSerial(String userId, String licenseNum){  
  14.             java.util.Calendar cal = java.util.Calendar.getInstance();  
  15.             cal.add(13);  
  16.             cal.add(6, -1);  
  17.             java.text.NumberFormat nf = new java.text.DecimalFormat("000");  
  18.             licenseNum = nf.format(Integer.valueOf(licenseNum));  
  19.             String verTime = new StringBuilder("-").append(new java.text.  
  20.                     SimpleDateFormat("yyMMdd").format(cal.getTime())).append("0").  
  21.                              toString();  
  22.             String type = "YE3MP-";  
  23.             String need = new StringBuilder(userId.substring(01)).append(type).  
  24.                           append("300").append(licenseNum).append(verTime).toString();  
  25.             String dx = new StringBuilder(need).append(LL).append(userId).toString();  
  26.             int suf = this.decode(dx);  
  27.             String code = new StringBuilder(need).append(String.valueOf(suf)).  
  28.                           toString();  
  29.             return this.change(code);  
  30.         }  
  31.   
  32.         private int decode(String s){  
  33.             int i;  
  34.             char[] ac;  
  35.             int j;  
  36.             int k;  
  37.             i = 0;  
  38.             ac = s.toCharArray();  
  39.             j = 0;  
  40.             k = ac.length;  
  41.             while (j < k){  
  42.                 i = (31 * i) + ac[j];  
  43.                 j++;  
  44.             }  
  45.             return Math.abs(i);  
  46.         }  
  47.   
  48.         private String change(String s){  
  49.             byte[] abyte0;  
  50.             char[] ac;  
  51.             int i;  
  52.             int k;  
  53.             int j;  
  54.             abyte0 = s.getBytes();  
  55.             ac = new char[s.length()];  
  56.             i = 0;  
  57.             k = abyte0.length;  
  58.             while (i < k){  
  59.                 j = abyte0[i];  
  60.                 if ((j >= 48) && (j <= 57)){  
  61.                     j = (((j - 48) + 5) % 10) + 48;  
  62.                 } else if ((j >= 65) && (j <= 90)){  
  63.                     j = (((j - 65) + 13) % 26) + 65;  
  64.                 } else if ((j >= 97) && (j <= 122)){  
  65.                     j = (((j - 97) + 13) % 26) + 97;  
  66.                 }  
  67.                 ac[i] = (char) j;  
  68.                 i++;  
  69.             }  
  70.             return String.valueOf(ac);  
  71.         }  
  72.   
  73.         public Register(){  
  74.             super();  
  75.         }  
  76.   
  77.         public static void main(String[] args){  
  78.             try{  
  79.                 System.out.println("please input register name:");  
  80.                 BufferedReader reader = new BufferedReader(new InputStreamReader(  
  81.                         System.in));  
  82.                 String userId = null;  
  83.                 userId = reader.readLine();  
  84.                 Register myeclipsegen = new Register();  
  85.                 String res = myeclipsegen.getSerial(userId, "20");  
  86.                 System.out.println("Serial:" + res);  
  87.                 reader.readLine();  
  88.             } catch (IOException ex){  }  
  89.         }  
  90.   
  91.   
  92.   
  93. }  



3, After there are no errors, run the project



4, Enter any name and press enter

So you get the serial number.



5, Go to MyEcilpse to set the serial number








Done!



Posted by pngtest on Thu, 30 Apr 2020 16:52:37 -0700