Comments (3)
There is kinda a bug in the JSCIP CMakeLists.txt
here because it does not opt out of requiring AWT, which CMake's FindJNI.cmake
unfortunately defaults to requiring:
set(JNI_FIND_COMPONENTS AWT JVM)
# For compatibility purposes, if no components are specified both are
# considered required.
set(JNI_FIND_REQUIRED_AWT TRUE)
set(JNI_FIND_REQUIRED_JVM TRUE)
But you are missing not only the AWT JNI library, but also the Java headers (JAVA_INCLUDE_PATH
, JAVA_INCLUDE_PATH2
), or at least CMake cannot find them. Please make sure you install a full JDK (in distribution packages, that usually means installing the -devel
or -dev
subpackage of the Java/OpenJDK package) and not just the JRE parts. (And while theoretically a headless version should be sufficient, in practice, you will currently need AWT at build time, see above. There used to also be a runtime dependency on the AWT library, but I already fixed that part in commit 49e832b, so AWT is no longer required at runtime.)
I am keeping this open because of the unnecessary AWT build-time dependency, but this is mostly a user error.
from jscipopt.
Depending on how you installed Java, you may also have to set the JAVA_HOME
environment variable. But it should not be necessary for an installation from GNU/Linux distribution packages of OpenJDK.
from jscipopt.
The AWT library is no longer required after commit 468efd0. But you will need to fix your missing Java includes for JSCIP to actually build.
from jscipopt.
Related Issues (20)
- Documentation for JSCIPOpt API HOT 4
- any method for get the best solution gap? if solved with time limit. HOT 1
- any method can find the reason why infeasible HOT 1
- how to run JSCIP test exmple on macbook HOT 39
- error of running Linear.java from Eclipse
- 还需要windows8.1的sdk HOT 1
- how to set init solution before solve? HOT 1
- error when build scip-7.0 on windows HOT 1
- how to use FiberSCIP to solve integer programming model from Java? HOT 1
- Benders decompostion in JSCIPOpt
- questions relate to JSCIPOpt installation on windows HOT 10
- Logarithmic expression on a decision variable HOT 4
- Is there any function to set the initial value for the Integer Linear Programming (ILP) problem? HOT 2
- Accessing model or solution status HOT 3
- How to model by column vectors in jscip? HOT 3
- No "Release" folder created HOT 1
- Add lazy constraints at runtime HOT 3
- The import scip cannot be resolved Java(268435846) HOT 4
- build deprecation warnings HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jscipopt.