diff --git a/designer-base/src/main/java/com/fr/design/env/LocalDesignerWorkspaceInfo.java b/designer-base/src/main/java/com/fr/design/env/LocalDesignerWorkspaceInfo.java index ec1816e4d..ba2debeff 100644 --- a/designer-base/src/main/java/com/fr/design/env/LocalDesignerWorkspaceInfo.java +++ b/designer-base/src/main/java/com/fr/design/env/LocalDesignerWorkspaceInfo.java @@ -25,7 +25,7 @@ public class LocalDesignerWorkspaceInfo implements DesignerWorkspaceInfo { static { Properties properties = new Properties(); try { - properties.load(LocalDesignerWorkspaceInfo.class.getResourceAsStream("")); + properties.load(LocalDesignerWorkspaceInfo.class.getResourceAsStream("/com/fr/env/jarVersion.properties")); } catch (Exception ignored) { } REPORT_ENGINE_JAR = properties.getProperty(REPORT_ENGINE_KEY, "default.jar"); @@ -104,9 +104,9 @@ public class LocalDesignerWorkspaceInfo implements DesignerWorkspaceInfo { return false; } - File engineLib = new File(StableUtils.pathJoin(ProjectConstants.LIB_NAME, REPORT_ENGINE_JAR)); + File engineLib = new File(StableUtils.pathJoin(this.path, ProjectConstants.LIB_NAME, REPORT_ENGINE_JAR)); // 非安装版本允许自由切换 - boolean notExistLib = !ComparatorUtils.equals(GeneralUtils.readFullBuildNO(), InterProviderFactory.getProvider().getLocText("Fine-Core_Basic_About_No_Build")) + boolean notExistLib = true && !engineLib.exists(); if (notExistLib) { throw new MainVersionNotMatchException();