|
In addition to this I was able to compile a good files that is working, but when i tried it again to ensure that is really working it is not working anymore and it is back to the error above.
Additional details:
The java library loads the dll files that are also deployed along with the ctf files. It successfully loads the dlls but after that it will say Failed to decrypt file.
Wish someone could help me with this problem.
"Knowles " <rl97522@gmail.com> wrote in message <k0ic7v$a0a$1@newscl01ah.mathworks.com>...
> Hi all,
>
> We have a JAVA Standalone application that calls matlab dlls. Before we were using Matlab 7 R14 for compiling the dll and the ctf file. And we have no problem with that. but then since Matlab 7 R14 is too old for new OS and hardwares we upgraded to Matlab r2010a years ago.
>
> The problem now is that, after compilation using Matlab r2010a and running the application we encountered this error
>
> jvm 1 | Done loading libraries
> jvm 1 | Extracting CTF archive. This may take a few seconds, depending on the
> jvm 1 | size of your application. Please wait...
> jvm 1 | ...CTF archive extraction complete.
> jvm 1 | Failed to decrypt file.
> jvm 1 | Cannot call function '<one of our function in one of our .m files>'. MATLAB Compiler-generated software
> components cannot be used from within MATLAB.
>
> the files where compiled using the commands :
> mcc -vB csharedlib:<some name> -C -d <some directory> <some filename>.m
>
> mbuild -v -I<some directory> <some filename>.c <filename>.exports <file name>.lib -link shared -output j<some name>
>
> Its just the same commad used by the MATLAB 7 R14 but with the added -C option on the mcc command.
>
> Ive been running around on circles with this but haven't found the solution or what could have caused the error.
>
> I have been to this link
> http://www.mathworks.com/access/helpdesk/help/toolbox/compiler/brtm1xm-8.html
> but it didn't do me any good.
>
> Is there some new option to be added to the mcc or mbuild command?
>
> Is there someone out there who can give me a hint (or a solution would be best) about this problem.
>
> You comments would be appreciated.
|