Skip to content

Problem importing BrowsCapField.class in IntelliJ (2022.3.3) #66

Open
@lgringo

Description

@lgringo

When adding the dependency into maven pom.xml :
<dependency> <groupId>com.blueconic</groupId> <artifactId>browscap-java</artifactId> <version>1.4.5</version> </dependency>

Intellij cannot import class com.blueconic.browscap.BrowsCapField

When looking at the jar in External Libraries, this class is not read correctly :

Image

I've tried to rebuild the project with different version of Java :

  • 1.8 : everything's good
  • 11 : everything's good
  • 21 : error occurred.

My project is using JDK 11 to build.

Looks like the jar sent to maven central was built with java 21, whereas github action 'Java CI with Maven' use JDK 11.

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