[vtkusers] VTK 64bit and Java: vtkRenderingJava.dll: %1 is not a valid Win32 application

Jeff Baumes jeff.baumes at kitware.com
Mon Jan 24 10:37:31 EST 2011


On Mon, Jan 24, 2011 at 8:28 AM, arturex <arturo_caissut at tiscali.it> wrote:

>
> Hi all,
>
> strange behaviour here: I've decided to switch to 64bit VTK in order to
> avoid some problems I've had with heap filling, but I cannot run my
> application.
>
> I have built latest VTK version with MS Visual Studio's 64bit compiler, but
> when I try to use my brand new .dll files in a Netbeans project (loading
> them with System.loadLibrary(LIBNAME)) I get this error:
>
> Exception in thread "main" java.lang.UnsatisfiedLinkError:
> C:\Users\arturex\Documents\TempSources\O3-3DWS_64bit\vtkRenderingJava.dll:
> %1 is not a valid Win32 application
>
>
> The matter is, I KNOW it's not a valid Win32 application, it's a 64bit
> library! :-)
> Sometimes I really really hate Windows.
> Before you ask, I'm using a 64bit JVM, by the way, and I already changed my
> environment variables to point the 64bit libraries instead of he 32bit
> ones.
>
> Any ideas?
>
>
> Thanks,
> Arturo
>

A few Google search results suggest that you are running the 32-bit version
of Java, but Google can be wrong. Did you try removing all traces of the
32-bit Java from your system?

Jeff
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20110124/7f2eb8e6/attachment.htm>


More information about the vtkusers mailing list