`

eclipse中aptana的安装及破解

 
阅读更多

1、在http://update15.aptana.org/studio/26124/index.html 中下载最新的aptana最新的eclipse插件,并按照页面中的提示安装(eclipse中稍微不一样);

2、进入\eclipse\plugins下将com.aptana.ide.core_1.5.0.26112.jar(不同版本可能不一致,但都是com.aptana.ide.core_****.jar),复制到F盘下,解压,找到com\aptana\ide\core\licensing下的ClientKey.class和ILicenseKey.class复制到F盘下;

3、到http://download.csdn.net/detail/chssheng2007/2294307 下载jad,解压后放到F盘,“运行”-》“cmd”-》命令行,到F盘下,执行“jad ClientKey.class ”和“jad ILicenseKey.class ”命令,生成ClientKey.jad和 ILicenseKey.jad文件,扩展名改为.java,删除 ClientKey.class和 ILicenseKey.class两个文件;

4、修改ClientKey.java文件为:

// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) 
// Source File Name:   ClientKey.java

package com.aptana.ide.core.licensing;

import java.util.Calendar;
import java.util.TimeZone;

// Referenced classes of package com.aptana.ide.core.licensing:
//            ILicenseKey

public final class ClientKey
    implements ILicenseKey
{

    public ClientKey(int type, String email, long expiration)
    {
        this.type = type;
        this.email = email;
        this.expiration = expiration;
    }

    public boolean isCloseToExpiring()
    {
        return false;
    }

    public boolean isValid()
    {
        return true;
    }

    public boolean isCloseToMatching()
    {
        return true;
    }

    public boolean isExpired()
    {
        return false;
    }

    public String getEmail()
    {
        return email;
    }

    public Calendar getExpiration()
    {
        Calendar expirationCal = Calendar.getInstance(GMT);
        expirationCal.add(Calendar.YEAR, 50);
        return expirationCal;
    }

    public boolean isTrial()
    {
        return false;
    }

    public boolean isPro()
    {
        return true;
    }

    public static String trimEncryptedLicense(String encrypted)
    {
        String newEncrypted = encrypted;
        newEncrypted = newEncrypted.trim();
        newEncrypted = newEncrypted.replaceAll("--begin-aptana-license--", "");
        newEncrypted = newEncrypted.replaceAll("--end-aptana-license--", "");
        newEncrypted = newEncrypted.replaceAll("\\s+", "");
        return newEncrypted;
    }

    public static final String BEGIN_LICENSE_MARKER = "--begin-aptana-license--";
    public static final String END_LICENSE_MARKER = "--end-aptana-license--";
    private static final TimeZone GMT = TimeZone.getTimeZone("GMT");
    public static final String EMAILS_NON_MATCHING = "EMAILS_NON_MATCHING";
	public static final ClientKey EMPTY_KEY = new ClientKey(0, "lpluck08@163.com", 0L);
    private String email;
    private long expiration;
    private int type;

}

 5、在命令行中执行“javac *.java”,将ClientKey.java和 ILicenseKey.java编译出class文件,放到 com.aptana.ide.core_****.jar的com\aptana\ide\core\licensing目录下,覆盖到 \eclipse\plugins目录下。重启eclipse即可。

分享到:
评论
1 楼 Matrixes 2012-12-19  
不知道结果是怎么样的。

相关推荐

Global site tag (gtag.js) - Google Analytics