最近想学flex,用的是eclipse的插件Flex Builder 3.0 plugin,因收费,所以从网上找了破解方法,整理下。
- package com.adobe.flexbuilder.project.asn.flexbuilder3;
- import com.adobe.asneu.a;
- import com.adobe.flexbuilder.project.asn.d;
- import java.util.Calendar;
- import java.util.Date;
- public final class FlexBuilder3License implements d {
- public static final boolean fIsBeta = false ;
- public static final int defaultTrialDays = 61 ;
- public static final int sixtyDayTrialExtension = 61 ;
- public static final int ninetyDayTrialExtension = 91 ;
- public static final FlexBuilder3License BAD_LICENSE = new FlexBuilder3License();
- public static final FlexBuilder3License TRIAL_LICENSE = new FlexBuilder3License(
- false );
- public static final FlexBuilder3License BETA_LICENSE = new FlexBuilder3License(
- false );
- private boolean fValid;
- private Date fExpireDate;
- private boolean fIsEdu;
- private boolean fIsPro;
- private boolean fIsNFR;
- private int fIsTryout;
- private FlexBuilder3License() {
- fValid = false ;
- fExpireDate = new Date();
- fIsEdu = false ;
- fIsPro = false ;
- fIsNFR = false ;
- fIsTryout = 0 ;
- }
- private FlexBuilder3License( boolean flag) {
- fValid = false ;
- fExpireDate = new Date();
- fIsEdu = false ;
- fIsPro = false ;
- fIsNFR = false ;
- fIsTryout = 0 ;
- fValid = true ;
- }
- public FlexBuilder3License(a a1) {
- fValid = false ;
- fExpireDate = new Date();
- fIsEdu = false ;
- fIsPro = false ;
- fIsNFR = false ;
- fIsTryout = 0 ;
- fIsPro = true ;
- }
- public boolean isValid() {
- return fValid;
- }
- public int getMajorVersion() {
- return 2 ;
- }
- public Date getExpirationDate() {
- Calendar calendar = Calendar.getInstance();
- calendar.set( 2 , 2 );
- calendar.set( 5 , 15 );
- calendar.set( 1 , 2888 );
- fExpireDate = calendar.getTime();
- return fExpireDate;
- }
- public int getEvalDays() {
- return 9999 ;
- }
- public long getEvalDaysLeft() {
- return 9999 ;
- }
- public boolean isExpired() {
- return false ;
- }
- public String getEdition() {
- return Messages3.getString( " FlexBuilderLicense.Pro " );
- }
- public boolean isTrial() {
- return false ;
- }
- public String getLastWarningMessage() {
- return null ;
- }
- public boolean isDateBased() {
- return false ;
- }
- public String toString() {
- return Messages3.getString( " FlexBuilderLicense.ProductName " );
- }
- public boolean isMxmlCompileEnabled() {
- return false ;
- }
- public boolean isIPRestricted() {
- return false ;
- }
- public boolean isTimeoutRestricted() {
- return false ;
- }
- public boolean isEducationalVersion() {
- return false ;
- }
- public boolean isPro() {
- return true ;
- }
- public boolean isUpgrade() {
- return false ;
- }
- public boolean isUpsell() {
- return false ;
- }
- public boolean isNFR() {
- return false ;
- }
- public boolean isUpgradeable() {
- return ! fIsEdu && ! fIsNFR && ! fIsPro;
- }
- public int isTryout() {
- return fIsTryout;
- }
- public int extendTrial() {
- return 1 ;
- }
- }
把上面的类从新编译一下,替换C:/Program Files/Adobe/Flex Builder 3 Plug-in/eclipse/plugins/com.adobe.flexbuilder.project_3.0.194161下zornproject.jar这个jar文件的里的与这个类的同名文件。(我得FlexBuidler安装在c盘)我用的是eclipse插件版的,那个安装版的没试过。
我已把zornproject.jar 这个jar文件 从新编译打的包,直接替换这个jar文件即可。