Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Sandeep Deshpande
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 20527
54
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic