Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Are the Katalon studio platform and its plugin able to pass compiling based on JDK 1.8? #72

Open
liuyang-123 opened this issue Apr 4, 2023 · 2 comments

Comments

@liuyang-123
Copy link

liuyang-123 commented Apr 4, 2023

Hi,

From your document, The prerequisite to the JDK version is 1.8.

But from my testing, both the latest released version 1.0.11 and the latest version 1.0.20 on the master branch can not pass the compiling based on JDK 1.8. Please see the following error:

[ERROR]
[ERROR] /C:/workspaces/github/katalon-studio-platform/com.katalon.platform/src/main/java/com/katalon/platform/ui/viewer/TypeCheckStyleCellTableLabelProvider.java:[3,37] cannot access org.eclipse.core.runtime.jobs.IJobChangeEvent
[ERROR]   bad class file: C:\Users\LiuYang\.m2\repository\org\eclipse\platform\org.eclipse.core.jobs\3.13.300\org.eclipse.core.jobs-3.13.300.jar(org/eclipse/core/runtime/jobs/IJobChangeEvent.class)
[ERROR]     class file has wrong version 55.0, should be 52.0
[ERROR]     Please remove or make sure it appears in the correct subdirectory of the classpath.

We concern with this because we are developing the plugins for Katalon. So could you please confirm the minimum JDK version that this project needs?

Thank you.

@sergey-oplavin
Copy link

Hi team, any reply?

@sergey-oplavin
Copy link

I had a look at it and found that the issue caused by the fact that org.eclipse.platform:org.eclipse.core.jobs declaration in org.eclipse.platform:org.eclipse.core.runtime:3.12.0 defines version range: [3.2.0,4.0.0), so maven picks up the latest (3.14.0 as of now) value from that range --> the error.
To fix that, you can specify version explicitly in your pom.xml, e.g. 3.10.800 (the version which seems to be used in Katalon Studio 8.6.0):

<dependencyManagement>
    <dependencies>
        <dependency>
            <groupId>org.eclipse.platform</groupId>
            <artifactId>org.eclipse.core.jobs</artifactId>
            <version>3.10.800</version>
        </dependency>
    </dependencies>
</dependencyManagement>

Maybe this should be defined in the com.katalon:com.katalon.platform.parent pom?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants