This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes Tomcat and the fly likes Can't load IA 32-bit .dll on a AMD 64-bit platform Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Can Watch "Can New topic
Author

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

Sandeep Deshpande
Greenhorn

Joined: Jan 30, 2012
Posts: 2
Hi All,

I have installed tomcat Tomcat6.0.35 on win 7 64 bit machine using installer(apache-tomcat-6.0.35).
I deployed one application on the tomcat which refers to dll (xFunction.dll).
on 32 bit XP machine this works fine.
but when I try to acces application from Win 7 64 bit server I get below error.

org.apache.jasper.JasperException: javax.servlet.ServletException: java.lang.UnsatisfiedLinkError: D:\Servers\Tomcat6.0.29-2\lib\xFunction.dll: Can't load IA 32-bit .dll on a AMD 64-bit platform
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:502)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:412)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

Can anybody please provide the solution for the same?

Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19556
    
  16

When you install Tomcat on a 64-bit Windows using the installer, it will install Tomcat as a 64-bit process. That means that it needs a 64-bit JVM, and all native libraries need to be 64-bit. Unfortunately, xFunction doesn't appear to have a 64-bit version:
http://www.excelsior-usa.com/xfunctionspecs.html wrote:
System Requirements
CPU: Intel x86 and compatibles
Operating System: Windows 2000/2003/2008/XP/Vista/7, Linux
Java version: 1.2 or higher, 32-bit only

In other words, unless you can get Tomcat running as a 32-bit process (and I wouldn't know how to...), you'll need to find an alternative to xFunction.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Can't load IA 32-bit .dll on a AMD 64-bit platform
 
Similar Threads
Easy Eclipse vs My Eclipse
Need Information for Java as Windows Service
Cannot Load jdic.dll
Can't load IA 32-bit .dll on a AMD 64-bit platform
JMagick JNI problem.