Skip to content

Cannot build ortools from binary with jdk8 #1191

@unfuse

Description

@unfuse

I attempted to use OR-Tools installed from binary (for Java, on Mac) in a local project, and encountered an error in compilation. Error below:

bad class file: /Users/david.kennedy/Downloads/or-tools_MacOsX-10.14.2_v7.0.6546/lib/com.google.ortools.jar(com/google/ortools/graph/LinearSumAssignment.class)
class file has wrong version 54.0, should be 52.0
Please remove or make sure it appears in the correct subdirectory of the classpath.`

The instructions state you need jdk 7, and i have jdk 8, but it seems like the jar was built with jdk 10

cat MANIFEST.MF
Manifest-Version: 1.0
Created-By: 10.0.1 (Oracle Corporation)

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions