dennisegen / MOST

MOST - Metabolic Optimization and Simulation Tool
3 stars 4 forks source link

If Gurobi not installed, Set Up Solver menu item doesn't work 2nd time clicked #104

Closed jimkell closed 10 years ago

jimkell commented 10 years ago

If Gurobi is not installed or the version is not sufficient, second time Options -> Set Up Solver clicked the following error is thrown:

Exception in thread "AWT-EventQueue-0" java.lang.NoClassDefFoundError: Could not initialize class gurobi.GurobiJni at gurobi.GRBEnv.(GRBEnv.java:16) at gurobi.GRBEnv.(GRBEnv.java:11) at edu.rutgers.MOST.optimization.solvers.GurobiSolver.isGurobiLinked(GurobiSolver.java:54) at edu.rutgers.MOST.presentation.GraphicalInterface$84.actionPerformed(GraphicalInterface.java:2208)

(I didn't copy the rest of the error message, the important part is here.)

The error is from this line:

GRBEnv env = new GRBEnv();

in the public static boolean isGurobiLinked() method.

First click works fine. To duplicate conditions, uninstall Gurobi. Then either do not reinstall at all or install and old version like 5.0.2