Gurobi package in powershell
AnsweredHi everyone,
I'm executing a java program in powershell which uses gurobi package. When I execute it in Eclipse it works just fine but when I execute it in powershell, it does not recognize the code where I import the gurobi packages like this one: "import com.gurobi.gurobi.GRB;".
Can I have some help here, please?
Thank for the assistance on this.
0
-
Official comment
This post is more than two years old. Some information may not be up to date. For current information, please check the Gurobi Documentation or Knowledge Base. If you need more help, please create a new post in the community forum, or try Gurobot, our chatbot interface offering instant, expert-level support. -
Hi Jacquelin,
Assuming you have the installation at C:\gurobi1101\... the following should work to run our Mip1 example
javac -classpath .;C:\gurobi1101\win64\lib\gurobi.jar C:\gurobi1101\win64\examples\java\Mip1.java
java -cp .;C:\gurobi1101\win64\lib\gurobi.jar C:\gurobi1101\win64\examples\java\Mip1Can you let me know if this works for you?
- Riley
0
Post is closed for comments.
Comments
2 comments