根据网上的帖子整理了一下Aptana的安装,以备以后使用。
1、从官方现在Aptana的Eclipse 插件,我下载的是aptana_update_024747.zip文件,然后解压该文件到任意目录下。我把他放到了我的D:/aptana
地址:http://update.aptana.com/update/studio/3.2/
2、安装
打开MyEclipse选择Help-->software upates-->find and install...
-->search for new features to install然后“next”,然后选择“new local site...”,在打开的对话框中选择你刚才解压的文件夹(我的是D:/aptana),然后点击“ok”,回到"install"对话框,然后点击"finish"。
接下来这步很重要,在接下开弹出的对话框中选择除最后一项"com.aptana.ide.professional_1.2.7.024688_200905101224" 不选外,其他都选。余下的步骤按提示一步步做就行。
安装完后会提示你重启MyEclipse,这样就安装完成了。
3、设置
在Perferences对话框中选择General-->editors-->File Association,将File Types 是*.html、*.htm、*.js、*.css的都设置成Aptana开头的为默认编辑器。
在Perferences对话框中选择Aptana->editors->javascript->code assist ,勾选上jQuery。
aptana破解(我没有验证过)
1、找到\eclipse\plugins\com.aptana.ide.core_1.2.1.020137.jar这个文件,因为版本号可能不同,只有找到com.aptana.ide.core_开头的就可以了,复制出来,解压后找到com\aptana\ide\core\licensing下的ClientKey.class,这个文件就是管理客户端KEY的字节码文件 。
将下面的代码保存为ClientKey.java:
编译后生成新的ClientKey.class,将它替换掉com.aptana.ide.core_1.2.1.020137.jar\com\aptana\ide\core\licensing下的ClientKey.class即可,然后将com.aptana.ide.core_1.2.1.020137.jar覆盖\eclipse\plugins\下的那个,这样就可以了。
1、从官方现在Aptana的Eclipse 插件,我下载的是aptana_update_024747.zip文件,然后解压该文件到任意目录下。我把他放到了我的D:/aptana
地址:http://update.aptana.com/update/studio/3.2/
2、安装
打开MyEclipse选择Help-->software upates-->find and install...
-->search for new features to install然后“next”,然后选择“new local site...”,在打开的对话框中选择你刚才解压的文件夹(我的是D:/aptana),然后点击“ok”,回到"install"对话框,然后点击"finish"。
接下来这步很重要,在接下开弹出的对话框中选择除最后一项"com.aptana.ide.professional_1.2.7.024688_200905101224" 不选外,其他都选。余下的步骤按提示一步步做就行。
安装完后会提示你重启MyEclipse,这样就安装完成了。
3、设置
在Perferences对话框中选择General-->editors-->File Association,将File Types 是*.html、*.htm、*.js、*.css的都设置成Aptana开头的为默认编辑器。
在Perferences对话框中选择Aptana->editors->javascript->code assist ,勾选上jQuery。
aptana破解(我没有验证过)
1、找到\eclipse\plugins\com.aptana.ide.core_1.2.1.020137.jar这个文件,因为版本号可能不同,只有找到com.aptana.ide.core_开头的就可以了,复制出来,解压后找到com\aptana\ide\core\licensing下的ClientKey.class,这个文件就是管理客户端KEY的字节码文件 。
将下面的代码保存为ClientKey.java:
package com.aptana.ide.core.licensing;
import java.util.Calendar;
import java.util.TimeZone;
public final class ClientKey
{
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 false;
}
public boolean isExpired()
{
return false;
}
public String getEmail()
{
return email;
}
public Calendar getExpiration()
{
Calendar expirationCal = Calendar.getInstance();
expirationCal.add(Calendar.YEAR, 50);
return expirationCal;
}
public boolean isTrial()
{
return false;
}
public boolean isPro()
{
return !isTrial();
}
public boolean shouldProPluginsRun()
{
if(isPro())
return true;
else
return !isExpired();
}
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--";
public static final int PRO = 0;
public static final int TRIAL = 1;
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, "youemail@163.com", 0L);
private String email;
private long expiration;
private int type;
}
编译后生成新的ClientKey.class,将它替换掉com.aptana.ide.core_1.2.1.020137.jar\com\aptana\ide\core\licensing下的ClientKey.class即可,然后将com.aptana.ide.core_1.2.1.020137.jar覆盖\eclipse\plugins\下的那个,这样就可以了。