Does 64-bit Windows XP provide compatibility with 32-bit exe files? - java

A customer cannot run our Java program. The shortcut executes a 32-bit copy of javaw.exe (the Java runtime) and then it passes the .jar file as a parameter (the Java program)
I am wondering if it is possibly caused by him running 64 bit XP. I do not know if it is 64 bit or not, but I know it is XP pro
This program is tested in XP 32 bit and Vista 32 bit and Win7 64bit (using the compatibility layer).
Does XP also have this compatibility layer?

Yes, it does:
The 64-bit versions of Microsoft Windows Server 2003 and of Microsoft
Windows XP use the Microsoft Windows-32-on-Windows-64 (WOW64)
subsystem to run 32-bit programs without modifications. The 64-bit
versions of Windows Server 2003 and of Windows XP do not provide
support for 16-bit binaries or 32-bit drivers. Programs that depend on
16-bit binaries or 32-bit drivers cannot run on the 64-bit versions of
Windows Server 2003 or of Windows XP unless the program manufacturer
provides an update for the program.

Many folks run 32-bit Java on 64-bit Windows (and other O/S's). In general usage, performance is the same, sometimes better, than 64-bit Java, which comes into its own when programs need very large heaps. It should be no problem.

Related

How to get JDK 8 - 32 bit for Mac OS X for Openhab development?

According to openhab tutorial they said that openhab developers should use JDK 8 - 32 bit for Mac OSX, How can I install JDK 8 - 32 bit, the only available version of JDK 8 is 64 bit !
I believe you have misread the documentation. This page notes that you must use 32-bit Java on ARM chips, rather than 64-bit.
Please use the 32-bit version of the JVM for ARM platforms, even on 64-bit operating systems. Serial connections won't work with a 64-bit JVM, preventing bindings like Z-Wave from functioning.
ARM chips are used in many of the home automation devices and used in computers such as the Raspberry Pi. But ARM chips are not used in Macs, which currently use 64-bit Intel Core chips.
According to this Question, Java apps are agnostic regarding their host OS being 32-bit or 64-bit. Only native-code libraries called from Java may care about 32/64 bits of the host OS.
I’m not a user of OpenHAB, so I’m not certain
I give up… Stack Overflow is losing my edits.
All the recent Macs run 64-bit macOS.
If you still want to install JDK32 bit, you can have any OS using a virtual machine (VMware Fusion, Parallels, or VirtualBox) and then install JDK inside that VM.
For the openHAB recommended is to use Zulu.
More accurate answer provided by: Basil Bourque

Compile 32 bit Java builds on 64 bit machine with Eclipse

so the questions as in the title, I need to run my server application in Tomcat on a System which is 32 bit Windows XP, I am working and compiling on my 64 bit Windows 7 in Eclipse. How do I compile it to 32 bit, what do I need to do? I assume it won't work on the 32 bit Windows when I'm compiling it on a 64 bit machine?
Java doesn't build 32-bit or 64-bit applications - bytecode is portable across different bit architectures.
The only exception is native libraries that you might be using in your code. If there are any then you will have to manually compile those for the respective platform. Otherwise the java code is totally portable across 32-bit and 64-bit platforms.
The problem is your JNI DLL, which needs to be compiled for 32-bit to match the 32-bit JRE.
Java is independent of the OS.
You can compile with your 64bit machine and run this on a 32bit computer as long as this computer has a 32bit VM.
If you're still searching for some "simple" solution, one would be to install a 32 bit os in a virtual machine and run eclipse from there.. Very ugly I know, but it works.
Another approach is mentioned here. How to launch java swing app which used precompled DLL from cmd?
You could install a 32bits jdk on a 64bits machine. point the JAVA_HOME to this jdk and use it. It

Is it OK to use 32 Bit eclipse RCP on 64 bit Mac OS X?

I got eclipse RCP juno 64 bit crashes on Mac OS X, and I posted this question in StackExchange Mac - https://apple.stackexchange.com/questions/67104/eclipse-rcp-juno-64-bit-crashes-on-mac-os-x. And, I guess I have no choice but to use 32 bit version now.
Is it just OK to use 32 bit eclipse on 64 bit OS (Lion), and 64 bit java (java 1.7 sdk)?
How about the code compatibility? Can I open the workspace with 64 bit eclipse created from 32 bit eclipse?
What's the difference between 32bit and 64bit eclipse? Or, what are cons and pros between them? Why do they keep 32bit eclipse in 64 bit world?
You need to 32-bit JVM to use 32-bit Eclipse, and you need 64-bit JVM to use 64-bit Eclipse.
Note that a 32-bit JVM can run on 64-bit OS. I have Windows 7 64-bit with both 32-bit and 64-bit JVMs installed. I do have to sometimes edit eclipse.ini file to make sure that the correct JVM is selected.
There are no workspace compatibility differences between 32-bit/64-bit variants of the same version. The native bits that are 32-bit/64-bit specific are for native UI and file system integration.
If you are running 64-bit OS, you should favor using 64-bit JVM/Eclipse. Doing so will avoid a lot of memory issues that plague 32-bit installs. For instance, it isn't uncommon for a 32-bit JVM/Eclipse to fail to start with -Xmx1024m due to address space fragmentation.
The 32-bit Eclipse builds are still produced because there are still quite a few 32-bit OS installs out there.

Using skype-java-api on a x64 system

I'm using skype-java-api to use skype in Java. The only feature that i need is to dial phone numbers on click. It works fine on windows XP x86, but i just tested it on a Windows 7 x64, and it fails. The error is:
Exception in thread "Thread-2" java.lang.UnsatisfiedLinkError: C:\Users\Vazdautan\AppData\Local\Temp\skype.dll: Can't load IA 32-bit .dll on a AMD 64-bit platform
Are there any other cross-platform alternatives(for MAC and Windows) or is it possible to solve it somehow ?
Thanks, Andrew.
You can run a 32-bit JVM on a 64-bit OS.
If you want to run a 64-bit JVM, you can use this to run a 32-bit JVM either as a service or on an ad-hoc basis.e.g. With Runtime.exec()
Or Skype provide a 64-bit DLL in which case I would just use that.

Can Netbeans handle both 32-bit and 64-bit version of Java?

I'm running 64-bit version of Vista on my notebook with 4G of RAM, the Ram is maxed out at 1.5G on the 32-bit version of Java. But if I move completely to 64-bit version of Java, the JDIC part won't work, so my question is : if I install both 32 and 64 bit versions of Java, can Netbeans easily switch between the two ? So if I run out of ram at 1.5G, I switch to the 64-bit, but if I need to develop JDIC part, I switch back to the 32-bit, is this possible with Netbeans ?
========================================================================
I've just realized I asked half a question, since which version(32/64 bit) of Netbeans also matters. So my question should be : If I run 64-bit of Neatbeans(assume it's available), and have both versions of Java installed, can I switch between the two Java versions for my projects in Netbeans ?
NetBeans does work with both 64-bit and 32-bit JVM. Eclipse can only work with 32-bit JVM. I have a script for launching Eclipse with installed 32-bit JVM and NetBeans for the 64-bit or 32-bit JVM.
You cannot switch JVMs in a running app. You'll have to restart it, but you should certainly be able to run Netbeans in both JVMs.

Categories

Resources