You can't get dual values for an integer program. However, once you solve the MIP, you can create the fixed LP model, solve that, and get the dual values for that model. This is illustrated in the mip2 example, found in the examples subdirectories of Gurobi (ex: examples\java\Mip2.java).