knowledge-database (beta)

Current group: comp.soft-sys.matlab

Compiling M files

Compiling M files  
Jerry Littke
From:Jerry Littke
Subject:Compiling M files
Date:Sun, 23 Jan 2005 12:46:32 -0500
I can compile the hello.m file and everything seems okay but when I
try to run the hello.exe I get

Warning: Could not read file classpath.txt

After clicking on OK I get

Warning: Could not read file librarypath.txt

Again after clicking on OK I get

Warning: Class com/mathworks/jmi/NativeMatlab not found-- unable to
registor native methods.

I then get a segmentation violation

java.lang.NoClassDefFoundError: com/mathworks/jmi/NativeMatlab

----------------------------------------------------------------------
--
Segmentation violation detected at Sun Jan 23 11:43:08 2005
----------------------------------------------------------------------
--

Configuration:
MATLAB Version: 7.0.1.24704 (R14) Service Pack 1
MATLAB License: unknown
Operating System: Microsoft Windows XP
Window System: Version 5.1 (Build 2600: Service Pack 2)
Processor ID: x86 Family 15 Model 2 Stepping 7, GenuineIntel
Virtual Machine: Java with
()
Default Charset: US-ASCII

Register State:
EAX = 00000000 EBX = 00000000
ECX = 0000deab EDX = 0134fcac
ESI = 00365aa8 EDI = 7c3536ed
EBP = 0134fc94 ESP = 0134fc74
EIP = 7817a482 FLG = 00010246

Stack Trace:
[0] jvm.dll:0x7817a482(3562304, 0, 0x0134fcac, 3)
[1] jmi_mi.dll:int __cdecl RegisterNatives(struct JNIEnv_ *)(0,
0x0134fcec, 0x79d412d8, 3562304) + 96 bytes
[2] jmi_mi.dll:int __cdecl InitJavaMsg(struct JNIEnv_ *)(3562304,
3562304, 0x0134fd04, 0x79b681f3) + 38 bytes
[3] jmi_mi.dll:int __cdecl JavaCmdBridge(struct JNIEnv_
*,int,int,void *)(3562304, 11, 0, 0) + 168 bytes
[4] jmi.dll:_JavaInitMIBridge(3562304, 0x50000000, 0x00ae6cb0,
0x0134ff8c) + 19 bytes
[5] jmi.dll:_InitJava(0, 0x79316b81, 0x00aea358, 1243656) + 173
bytes
[6] jmi.dll:_mljInit(0x00ae8e28, 1, 0x00aea358, 1243656) + 6 bytes
[7] mcr.dll:unsigned long __cdecl run_init_and_handle_events(void
*)(1244564, 0x00aea358, 1243656, 1244564) + 47 bytes
[8] kernel32.dll:0x7c80b50b(0x79316d70, 1244564, 0, 0x00905a4d)

Please follow these steps in reporting this problem to The MathWorks
so
that we have the best chance of correcting it:

1. Send this crash report to segv@mathworks.com for automated
analysis.
For your convenience, this information has been recorded in:
C:\DOCUME~1\Owner\LOCALS~1\Temp\matlab_crash_dump.260

2. Also, if the problem is reproducible, send the crash report to
support@mathworks.com along with:
- A specific list of steps that will reproduce the problem
- Any M, MEX, MDL or other files required to reproduce the
problem
- Any error messages displayed to the command window
A technical support engineer will contact you with further
information.

Thank you for your assistance. Please save your workspace and
restart
MATLAB before continuing your work.

Opening log file: C:\DOCUME~1\Owner\LOCALS~1\Temp\java.log.260

Matwhworks people so far have been unable to help me. I get the same
errors if I try other examples like magicsquare.m, etc.

I did have to add the MATLAB_JAVA envronment variable so that my
programs found the Java files.

I am running Windows XP Professional with SP2.
Matlab is 7.0.1.24704 R14 SP1
   

Copyright © 2006 knowledge-database   -   All rights reserved