Message Boards Message Boards

8 Replies
1 Total Likes
View groups...
Share this post:

Mathematica Enterprise CDF generation: how to make it work

I'm doing my first CDF with Mathematica Enterprise, for it to be used with plain Player (not the Pro version).

I wanted to save and load data files.

Here's an example:
  fileChosen = SystemDialogInput["FileSave", ".m"];
  If[fileChosen =!= $Canceled,
   TimeConstrained[Put["abc", fileChosen], 10]],
  Method -> "Queued"], "saves simulation to a file"]
But it doesn't work in plain Player. Shouldn't it work?

What are the restrictions?
POSTED BY: Pedro Fonseca
8 Replies
It was indeed a problem of incorrect activation of the license.
POSTED BY: Pedro Fonseca
So you are in the CDF Enterprise team now! Welcome, let's exchange some ideas.
POSTED BY: Rodrigo Murta


Probably it is a problem with the license activation...
POSTED BY: Pedro Fonseca
"Target" -> "PlayerPro"  is supposed to work.

Definitely a job for Technical Support ( 
When you write, include the "mathpass" file. (Location is given by evaluating 
 $PasswordFile in Mathematica.)
POSTED BY: Bruce Miller
Does "Target" -> "PlayerPro" work for other examples?  If not, it is possible that your Enterprise licensewas generated incorrectly.  In previous work where I had to make use of an Enterprise license, the licence was generated incorrectly and yielded $Failed when attempting to do an Enterprise CDFDeploy.  So, if this is the case, then I'd suggest getting in touch with WRI support. 
POSTED BY: David Reiss
When I use:
CDFDeploy[ "test.cdf", nb, "Method" -> "Standalone", "Target" -> "PlayerPro"]
It returns $Failed

But the file is correctly created when I remove the Target, but it doesn't have the entrepriseCDF capacities.

Since I'm sure that I'm using an Enterprise license, what is the problem? Is there a test that I could do, to check if Enterprise functionalities are activated?

Concerning the Export method, I think I have tested all import and export functions that exist.
POSTED BY: Pedro Fonseca
According to,
if you are creating the special Enterprise CDF files, the code should be able to Import or Export data.
Ordinary CDF files in CDF Player cannot.
POSTED BY: Bruce Miller
I assume by "plaing player" you mean the CDFPlayer rather than Mathematica Player Pro.
Take a look at this table to see if it answers your question.  I don't currently have an enterprise version installed so I can't test your code. 
You may want to reprogram your code to use Export rather than Put to see if it works...
POSTED BY: David Reiss
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
or Discard

Group Abstract Group Abstract