Using skype-java-api on a x64 system - java

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.

Related

java.lang.UnsatisfiedLinkError: C:\Program Files\Java\jdk1.7.0_09\jre\bin\jmtp.dll: Can't load IA 32-bit .dll on a AMD 64-bit platform

I am creating a windows application, I need to create an installer for that for that I used Launch4J software.
It is throwing me an error java.lang.UnsatisfiedLinkError: C:\Program Files\Java\jdk1.7.0_09\jre\bin\jmtp.dll: Can't load IA 32-bit .dll on a AMD 64-bit platform while running it.
I did not find in google a 64 bit jmtp.jar and jmtp.dll file.
Please help me to sort out it.
64 bit JVM can emulate 32 bit mode. Use -d32 command line parameter. It is supported since java 7.
Try to use a 32-bit JVM for this application.

Can't load IA 32-bit .dll on a AMD 64-bit platform on windows 2008 server system

Today when i migrate a project from old server to new server, i encounter this problem when i test the deployed service codes.
javax.servlet.ServletException: java.lang.UnsatisfiedLinkError: E802: Can't load shared library. E:\Rochade\bin\msvcr71.dll E:\Rochade\bin\msvcr71.dll: Can't load IA 32-bit .dll on a AMD 64-bit platform
no msvcr71 in java.library.path
i googled it on the internet and found some tips on installing a 36 bit jdk, i tried but didn't sovle the problem, does any one has any comment on this? i am really in hurry to get this problem solved, which is the road block for us moving forward on the migration process.
I think you cannot load library compiled for 32-bit architecture in 64-bit environment.
Solution is to recompile the library for x64 or obtain 64-bit version if you do not have its sources.
You either can use a 32-bit JVM or install the 64-bit version of the Microsoft Visual Studio C/C++ Redistributable Package.
Or better reinstall the software on the new server. Moving only the folders to a new computer is not a good idea on Windows, especially when the old PC was a 32-bit system and the new PC is a 64-bit system.

Running 32-bit dll on 64-bit machine in java

I am attempting to use a 3rd-party dll for a program I am writing in java. Unfortunately, it only has 32-bit support. When I attempt to load the dll in a 64-bit VM, I get the following error:
Can't load IA 32-bit .dll on a AMD 64-bit platform
I have tried running in a 32-bit VM, which works in eclipse, but when I export the project, I get the same error. Please help!
Sincerely, Ben
You cannot use a 32-bit DLL in a 64-bit Hotspot JVM. It won't work. And I don't know of any other 64-bit JVM that supports 32-bit DLLs.
Indeed, as Peter Lawrey points out, this is not just a JVM limitation. No mainstream operating system allows an application running in 64-bit mode to load and use a 32-bit library.
Your choices are:
Switch to a 32-bit JVM. (You can run a 32bit JVM on a 64-bit OS ...)
Port the DLL to 64-bit.
Switch to an alternative library that is pure Java, or has a 64-bit DLL.
I have tried running in a 32-bit VM, which works in eclipse, but when I export the project, I get the same error.
That can only mean that you are running a 32-bit JVM to run the application within Eclipse, and a 64-bit JVM to run the application outside of Eclipse. (The issue is how you run the application, not how you export it ...)
The only way to use a 32-bit shared library from a 64-bit JVM is to run an additional 32-bit JVM and access it via RMI, JMS or some form of messaging.
Its an intrinsic limitation of 64-bit programs (not just Java) that it cannot exchange pointers with a 32-bit library.

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

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.

need on capturing image from webcam

I am working on a project where I have to capture images from webcam.I thought of using LTI-CIVIL api for this purpose. But it does not work on 64-bit os(I tried to run demo programs on windows 7(64-bit), it didn't work).
Please let me know how to make LTI-CIVIL api work with 64-bit os.Or If you know any other API(Open source or at least free) which will work with 64-bit os.Thanks in advance.
Not versed on LTI-CIVIL, but has native implementations (swt and capture dll) for Linux and Mac 64bit but only Windows 32 x86, so try to use a 32bit JRE in Windows x64 in order to link the 32bit dll of LTI-CIVIL. this kind of problems are related to the JRE, not the Windows architecture (32 vs 64).
I had the same problem, after i change from Jar 7 to Jar 6 the problem is gone

Categories

Resources