Loading a dll in Java For Windows XP


I'm attempting to load a dll using the System.loadLibrary("myDllFile") that I built on a linux machine using Makefile.  I get a *java.lang.UnsatisfiedLinkError c:\test\myDllFile.dll: can't load this .dll (machine code=0x101) on a IA 32-bit platform* exception when I run the main java class containing the loadLibrary statement. I'm attempting to run the java class on Windows XP.  Do I need a separate dll for widows xp (32bit) and windows 7 (64 bit)?
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

I'm not sure how could you build a dll on Unix machine and then use it on windows?
You cross-compiled it from Linux to Windows? Otherwise you can't run it on any Windows architecture

and this is about compatibility of 32-bit DLL with Windows 64, thosugh tis is not a java question - it is better to ask somehwre MS related:
Short answer is yes, you need a different DLL for 32-bit and 64-bit platforms.  If you built the DLL targeting a 64-bit platform, you won't be able to load it on Windows XP 32-bit.  Additionally, you'll need to make sure you are using the corresponding JVM (applies only on 64-bit machines).  The 64-bit JVM can't load 32-bit DLLs and vice-versa.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.