Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't load AMD 64-bit .dll on a IA 32-bit platform

Tags:

java

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:

Exception in thread "main" java.lang.UnsatisfiedLinkError: C:\gurobi460\win64\win64\bin\GurobiJni46.dll: Can't load AMD 64-bit .dll on a IA 32-bit platform

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.

like image 663
Guihua Avatar asked Apr 15 '12 23:04

Guihua


People also ask

Is there a way to convert a 32-bit DLL to 64-bit?

Yes, you'll have to recompile the DLL for 64-bit. Your only other option is to switch to a 32-bit JVM, or otherwise get some 32-bit process to load the DLL on your behalf and communicate with that process somehow. Show activity on this post.

Can I run a 32-bit DLL on a 64-bit JVM?

Yes, you'll have to recompile the DLL for 64-bit. Your only other option is to switch to a 32-bit JVM, or otherwise get some 32-bit process to load the DLL on your behalf and communicate with that process somehow. I had the same issue with a Java application using tibco dll originally intended to run on Win XP.

Is it possible to run a TIBCO DLL on 64 bit?

Yes, you'll have to recompile the DLL for 64-bit. Your only other option is to switch to a 32-bit JVM, or otherwise get some 32-bit process to load the DLL on your behalf and communicate with that process somehow. Show activity on this post. I had the same issue with a Java application using tibco dll originally intended to run on Win XP.

Why can't I run a 64-bit SQL Developer on a 32-bit JRE?

I think the problem is that the 32-bit java jdk is trying load a 64-bit DLL from the windows directory. You need to download and install the 64-bit SQLDeveloper and tell it to use the 64-bit JDK. It may be that you only have a JRE installed, in which case you will need to download and install a JDK.


1 Answers

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.

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.)

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.

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 ...

If you are launching the example via an IDE, check that the IDE is using the right JRE to launch. Check and modify the IDE configs. The details will depend on the IDE you are using. Check the documentation. (Just setting external environment variables such as JAVA_HOME may not be sufficient in this case.)

like image 172
Stephen C Avatar answered Sep 22 '22 01:09

Stephen C