我用matlab2008a建立了一个Logistic.jar包,中间有一个Logisticclass类,在myeclipse中调用时,发生了一个奇怪的情况,其中一个类中,建立了一个函数调用logistic=new Logisticclass()时没有任何问题。
但是,高潮来了,另外一个类中,同样的方式调用logistic=new Logisticclass()时,报异常:
Opening log file: C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\java.log.2840
打开后一看
Error occurred during initialization of VM
Unable to load ZIP library: C:\Program Files\MATLAB\MATLAB Compiler Runtime\v78\sys\java\jre\win32\jre1.6.0\bin\zip.dll
Stack Trace:
[0] jmi.dll:void __stdcall mwJavaAbort(void)(0x78f1efa8, 0, 0x78ec633a, 0x790338d0 "Unable to load ZIP library") + 21 bytes
[1] jvm.dll:0x78fa8f65(0, 0, 0x05c30048, 0)
[2] 0x00000000(0x78ffd9c0, 0x78e823f0, 0x78e9d6e0, 0x78e823f0)
[3] jvm.dll:0x78ffd2c0(0xcccccccc, 0xcccccccc, 0x83ec8b55, 0x8b530cec)
[4] 0xcccccccc ------------------------------------------------------------------------
Fatal Java Exception detected at Mon Sep 03 10:05:19 2012
------------------------------------------------------------------------ Configuration:
MATLAB Version: 7.6.0.324 (R2008a)
MATLAB License: unknown
Operating System: Microsoft Windows XP
Window System: Version 5.1 (Build 2600: Service Pack 3)
Processor ID: x86 Family 6 Model 7 Stepping 10, GenuineIntel
Virtual Machine: Java is not enabled
Default Encoding: GBK Java is not enabled
这是什么原因呢?完全不可理解嘛!
但是,高潮来了,另外一个类中,同样的方式调用logistic=new Logisticclass()时,报异常:
Opening log file: C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\java.log.2840
打开后一看
Error occurred during initialization of VM
Unable to load ZIP library: C:\Program Files\MATLAB\MATLAB Compiler Runtime\v78\sys\java\jre\win32\jre1.6.0\bin\zip.dll
Stack Trace:
[0] jmi.dll:void __stdcall mwJavaAbort(void)(0x78f1efa8, 0, 0x78ec633a, 0x790338d0 "Unable to load ZIP library") + 21 bytes
[1] jvm.dll:0x78fa8f65(0, 0, 0x05c30048, 0)
[2] 0x00000000(0x78ffd9c0, 0x78e823f0, 0x78e9d6e0, 0x78e823f0)
[3] jvm.dll:0x78ffd2c0(0xcccccccc, 0xcccccccc, 0x83ec8b55, 0x8b530cec)
[4] 0xcccccccc ------------------------------------------------------------------------
Fatal Java Exception detected at Mon Sep 03 10:05:19 2012
------------------------------------------------------------------------ Configuration:
MATLAB Version: 7.6.0.324 (R2008a)
MATLAB License: unknown
Operating System: Microsoft Windows XP
Window System: Version 5.1 (Build 2600: Service Pack 3)
Processor ID: x86 Family 6 Model 7 Stepping 10, GenuineIntel
Virtual Machine: Java is not enabled
Default Encoding: GBK Java is not enabled
这是什么原因呢?完全不可理解嘛!