无法在IA 32位平台上加载AMD 64位.dll [英] Can't load AMD 64-bit .dll on a IA 32-bit platform

查看:147
本文介绍了无法在IA 32位平台上加载AMD 64位.dll的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我下载了用于线性编程的Gurobi软件包。我导入相应的gurobi.jar包。然后运行示例程序。然后出现以下错误:

I download the Gurobi package for linear programming. I import the corresponding gurobi.jar package. Then run the example program. Then it appears the following errors:


线程main中的异常java.lang.UnsatisfiedLinkError:
C:\ gurobi460 \ win64\win64\bin\GurobiJni46.dll:无法在IA 32位平台上加载AMD 64位
.dll

然后我下载了64位Jre窗口,并使用window - > preference - > Installed JRE来安装这个新的JRE。

Then I downloaded the window 64 bit Jre, and use the "window-->preference-->Installed JRE" to install this new JRE.

然而,它仍然出现了这个错误。

However, it still appeared this error.

推荐答案

如果你还是那个安装64位JRE后出现错误,这意味着运行Gurobi软件包的JVM仍然使用 32位JRE。

If you are still getting that error after installing the 64 bit JRE, it means that the JVM running Gurobi package is still using the 32 bit JRE.

检查您是否有全局和您正在使用的命令shell中更新了PATH和JAVA_HOME。 (也许你只需要退出并重新启动它。)

Check that you have updated the PATH and JAVA_HOME globally and in the command shell that you are using. (Maybe you just need to exit and restart it.)

通过运行java -version检查你的命令shell是否运行正确版本的Java并检查它是否显示它是64位JRE。

Check that your command shell runs the right version of Java by running "java -version" and checking that it says it is a 64bit JRE.

如果要通过包装器脚本/批处理文件启动示例,请确保脚本使用正确的JRE。根据需要修改......

If you are launching the example via a wrapper script / batch file, make sure that the script is using the right JRE. Modify as required ...

这篇关于无法在IA 32位平台上加载AMD 64位.dll的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆