首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > JAVA > Eclipse开发 >

eclipse中aptana的装配及破解

2012-07-02 
eclipse中aptana的安装及破解1、在http://update15.aptana.org/studio/26124/index.html中下载最新的aptana

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.javapackage com.aptana.ide.core.licensing;import java.util.Calendar;import java.util.TimeZone;// Referenced classes of package com.aptana.ide.core.licensing://            ILicenseKeypublic 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即可。

热点排行