Skip to main content
How do I use Gurobi in an Eclipse Java project?
On Windows
- First, add the file gurobi.jar to the project:
- Select Project > Properties, select Java Build Path, and select Libraries.
- Add gurobi.jar as an External JAR; the file gurobi.jar is in the lib subdirectory of the Gurobi installation.
- Next, add the native libraries to the path for the Run Configuration:
- Select the Run Configuration and select the Environment tab.
- Set the system environment variable PATH to the absolute location of the bin subdirectory of the Gurobi installation.
On Linux
- First, add the file gurobi.jar to the project:
- select Project > Properties, select Java Build Path, and select Libraries.
- Add gurobi.jar as an External JAR; the file gurobi.jar is in the lib subdirectory of the Gurobi installation.
- Next, add the native libraries to the path for the Run Configuration
- Select the Run Configuration and select the Environment tab.
- Set the system environment variable LD_LIBRARY_PATH to the absolute location of the lib subdirectory of the Gurobi installation.
On MacOS
- No special configuration is necessary with the default installation of Gurobi Optimizer.
Further information
Comments
0 comments
Article is closed for comments.