how to determine whether installed library is 32 bit or 64 bit on windows? - dll

How to determine whether library is 32 bit or 64 bit from the library file ? I have installed gstreamer from ossbuild for this I know its 32 bit but suppose if someone else installs a library what is the way to find if it is compatible with 32bit or 64bit . Also are the format of the library similar or they differ?

When you said "Library", I guess you mean "runtime Library" aka. Dynamic-Link Library (DLL), is that correct?
In that case, this might be a duplicate of this question

Related

Error when running a 32 bit .dll on a 64 bit JVM Inteliij

I am getting the below error when I try to execute the below line of code in my project. I added a 64 bit JDK to my project properties . I am using Intellij as my IDE
System.loadibrary(smsjavaagentapi)
Fatal Error: Exception from System.loadibrary(smsjavaagentapi) java.lang.unsatisfiedLinkError smsjavaagentapi.dll: Can't load IA 32 bit .dll on an AMD 64-bit platform
I think the problem is that I am using a 64 bit JVM and I am trying to run a 32 bit .dll. I don't have an option to install 32 bit JDK on my machine and add it to my project properties nor I can port the .dll to 64 bit . Is there a work around for this?
There is a limitation at the OS level which prevents a 32-bit shared library being loaded by a 64 bit process, so your options are
modify the OS to allow this (not easy)
migrate the DLL to 64-bit by recompiling it.
install a 32-bit JVM (easier)
download a 32-bit JVM and unpack it without install it. (doesn't require any special permission)
You might find you can get a version of IntelliJ which ships with a 32-bit JVM, or install another program which installs a 32-bit JVM and use just the JVM.

PyQt 5.11 missing WebEngine modules

So I read the note on "PyQt 5.11 missing WebEngine modules" at https://www.riverbankcomputing.com/software/pyqt/download5. But it doesn't help me understand why, or what to do regarding the missing WebEngine modules? The only thing that works is to revert to PyQt 5.10.0 or use x64 version. Can anyone explain and help me understand how I am meant to continue using PyQt5 x86 when the modules I use are now missing in 5.11.x and there appears to be no resource to re-acquire them. Are the WebEngine modules no longer supported in 32 bit or something?
The problem is simple, PyQt5 uses the binaries provided by Qt, and currently Qt no longer provides binaries for 32 bits, only for 64 bits.
Can you use Qt WebEngine for 32 bits ?
Yes you can but you will have to compile Qt manually and the dependencies of Qt WebEngine, and after that you will have to compile PyQt5.
References:
https://forum.qt.io/topic/91096/how-to-make-qtwebengine-work-on-windows-10-32-bit

This java instance does not support a 64-bit JVM

I home host a Minecraft server and I just updated Java to update 65, the server worked perfectly before updating but now, it says
"This Java instance does not support a 64-bit JVM. Please install the desired version."
Installing 32-bit Java doesn't help and this also happens when I run my Minecraft client.
I have 64-bit Windows 7 running 64-bit Java 7.
If anybody can help that would be great.
EDIT: Fixed it, apparently I'm just an idiot and had 32-bit installed when I updated java, and since I thought I had 64-bit installed I never thought to re-install it. Sorry for wasting your time
As the author stated, the solution was pretty simple. Bringing it to an answer to help future users
This java instance does not support a 64-bit JVM
This error is associated with your System looking for a Java 64-bit Virtual Machine and not finding any.
To solve it, you must make sure that the 64-bit Java is installed. The problem the OP had was: He assumed he had the 64-bit installed, but he did not.
To download Java, access Java Website
Because you are using 64 bit minecraft client, you are not able to work even with 32 bit JVM.
Kindly install all the things, mincraft server,client, JVM of 32 bit only. You can run it definitely. If still not able to work, let me know with exact error message you are getting.

32 bit JDK on 64 bit Weblogic Server

Is it possible to run an application on a 64 bit Weblogic 10.3.2 Server instance with a 32 bit JDK?
The reason for me to doing this is getting an exceptions while running my program using 64 bit JDK.
UCFWin32JNI.dll: Can't load IA 32-bit .dll on a AMD 64-bit platform
The error is gone when using 32 bit JDK.
If it is possible, then how?
Thanks!
A 32-bit version of a library cannot be loaded and used by a 64-bit JVM, and vice versa.
Moreover, UCFWin32JNI.dll does not appear to be a WebLogic library at all. In fact, it appears to be a library from Documentum. You ought to be looking for a 64-bit version of that library (if it is available) as it appears to be a 32-bit version going by the name and the error message produced. Finally, you'll need to place the 64-bit version in one of the directories constituting java.library.path.
No problems at all running a 32bit JVM on a 64bit platform. In fact, for some applications it can actually be more efficient, due to the fact that certain data types are innately larger on a 64bit JVM (ints I think are an example of this from memory)
A 64bit JVM provides all sorts of advantages for an application requiring access to a larger heap, but there's no harm at all in running a 32bit JVM.

mod_jk on windows 64 bit

Anyone know where to get a windows 64 bit shared object for mod_jk. I've just moved to 64 bit machine. It's not where I would expect to find it: http://www.apache.org/dist/tomcat/tomcat-connectors/jk/binaries/win64/jk-1.2.28/ia64/
I found various binaries for windows here:
http://www.apache.org/dist/tomcat/tomcat-connectors/jk/binaries/windows/
It worked for me in apache 2.2 32-bit.
So far the best place to find 64 bit binaries for mod_jk is Apache Lounge. Otherwise, the only way to do this is to download sources and then compile them for 64 bit platform. The instruction is included in readme file. It will point you to native/building.txt with more details on how to achieve this. Here is also a discussion regarding 64bit download for mod_jk that maybe helpful.