Skip to content

Java 11 doesn't work..! #46

@keunoh

Description

@keunoh

Two days ago I completed this guide with Java 11 version.
But I retried it today but It didn't work.
There are compile error:
[class file has wrong version 61.0, should be 55.0 ]

Is it only can tested by Java 17?

AS-IS my pom.xml file:

org.springframework.boot
spring-boot-starter-parent
2.7.6

TOBE :

org.springframework.boot
spring-boot-starter-parent
3.0.0

if I change version
JobBuilder class and StepBuilder class are having more constructor.

return new JobBuilder("importUserJob", jobRepository)
.incrementer(new RunIdIncrementer())
.listener(listener)
.flow(step1)
.end()
.build();

So this code cannot be resolved!
because when I use 2.7.6 version JobBuilder class has only one constructor

public JobBuilder(String name) {
super(name);
}

How can I resolve this problem?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions