在server 08 64bit环境下,在cmd中执行java方法(其中会调用jcom.dll)没有问题,但是在tomcat的项目工程里,执行方法就会报错:
Caused by: java.lang.UnsatisfiedLinkError: jcom (.\jcom.dll 不是有效的 Win32 应用程序。 )
at java.lang.ClassLoader.loadLibraryWithPath(ClassLoader.java:1007)
at java.lang.ClassLoader.loadLibraryWithClassLoader(ClassLoader.java:971)
at java.lang.System.loadLibrary(System.java:470)
at jp.ne.so_net.ga2.no_ji.jcom.IDispatch.<clinit>(IDispatch.java:288)
at java.lang.J9VMInternals.initializeImpl(Native Method)
at java.lang.J9VMInternals.initialize(J9VMInternals.java:200)
at cn.boc.p2f.Print2Flash.trance2SWF(Print2Flash.java:59)
如果说是dll在64位中不可用,那cmd中没有问题啊没有头绪啊...
Caused by: java.lang.UnsatisfiedLinkError: jcom (.\jcom.dll 不是有效的 Win32 应用程序。 )
at java.lang.ClassLoader.loadLibraryWithPath(ClassLoader.java:1007)
at java.lang.ClassLoader.loadLibraryWithClassLoader(ClassLoader.java:971)
at java.lang.System.loadLibrary(System.java:470)
at jp.ne.so_net.ga2.no_ji.jcom.IDispatch.<clinit>(IDispatch.java:288)
at java.lang.J9VMInternals.initializeImpl(Native Method)
at java.lang.J9VMInternals.initialize(J9VMInternals.java:200)
at cn.boc.p2f.Print2Flash.trance2SWF(Print2Flash.java:59)
如果说是dll在64位中不可用,那cmd中没有问题啊没有头绪啊...
是IBM\java60\jre\bin\classic\jvm.dll,
于是更改了tomcat的jvm config,
改为D:\Program Files\Java\jdk1.6.0_17\jre\bin\server\jvm.dll现在是tomcat不能启动,报错:
[2011-07-10 11:03:34] [985 prunsrv.c] [error] Failed creating java D:\Program Files\Java\jdk1.6.0_17\jre\bin\server\jvm.dll
[2011-07-10 11:03:34] [1280 prunsrv.c] [error] ServiceStart returned 1
[2011-07-10 11:03:34] [info] Debug service finished.
[2011-07-10 11:03:34] [info] Commons Daemon procrun finished.
我觉得差不多找到方向了