Thread Subject:
HELP: CTF archive extraction complete. Failed to decrypt file.

Subject: HELP: CTF archive extraction complete. Failed to decrypt file.

From: Knowles

Date: 16 Aug, 2012 08:50:07

Message: 1 of 4

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.

Subject: HELP: CTF archive extraction complete. Failed to decrypt file.

From: Knowles

Date: 17 Aug, 2012 00:32:15

Message: 2 of 4

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.

Subject: HELP: CTF archive extraction complete. Failed to decrypt file.

From: Tricia

Date: 17 Aug, 2012 02:45:17

Message: 3 of 4

"Knowles " <rl97522@gmail.com> wrote in message <k0ic7v$a0a$1@newscl01ah.mathworks.com>...
> 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.

I'm using R2010a and I'm also getting this error currently. I've done the suggestions in this link http://www.mathworks.com/access/helpdesk/help/toolbox/compiler/brtm1xm-8.html but the problem is still there.

Subject: HELP: CTF archive extraction complete. Failed to decrypt file.

From: Tricia

Date: 17 Aug, 2012 02:45:17

Message: 4 of 4

"Knowles " <rl97522@gmail.com> wrote in message <k0ic7v$a0a$1@newscl01ah.mathworks.com>...
> 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.

I'm using R2010a and I'm also getting this error currently. I've done the suggestions in this link http://www.mathworks.com/access/helpdesk/help/toolbox/compiler/brtm1xm-8.html but the problem is still there.

Tags for this Thread

Everyone's Tags:

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Tag Activity for This Thread
Tag Applied By Date/Time
compile Knowles 16 Aug, 2012 20:34:21
ctf Knowles 16 Aug, 2012 20:34:21
mbuild Knowles 16 Aug, 2012 04:54:08
mcc Knowles 16 Aug, 2012 04:54:08
failed to decrypt ... Knowles 16 Aug, 2012 04:54:08
rssFeed for this Thread

Contact us