Run MD in Batch Mode > "License validation failed"

Discussions about Java virtual machine, installation, and running

Moderator: Moderators

Run MD in Batch Mode > "License validation failed"

Postby nick.grealy@hattricksoftware.com » Tue Jun 16, 2015 1:47 am

Hi all,

I've just downloaded MagicDraw_1705_sp1_no_install , and I'm trying to run the ImageGenerator example (${mdroot}\openapi\examples\imagegenerator\build.xml).

Running the command
Code: Select all
ant -debug
gives me the following errors:

Code: Select all
[java] 2015-06-16 17:24:59,225 [main] ERROR LICENSE - License validation failed.
[java] 2015-06-16 17:24:59,225 [main] ERROR GENERAL - Application initialization failed


(I turned on verbose logging with the -verbose md parameter.)

Obviously the license hasn't been registered/specified. Is there any way to specify the license location, when running the application from the command line.

- I haven't actually opened the MagicDraw application (UI) yet, but I'm avoiding doing so, as I'd like the process to eventually be completely automated.
- I've read the UserGuide, and it has command line arguments for specifying a floating server license. I don't have this, I've just got the trial license (for now).

Code: Select all
-DFL_FORCE_USAGE=true
-DFL_SERVER_ADDRESS=flexnet_license_server_address
-DFL_SERVER_PORT=license_server_port
-DFL_EDITION=magicdraw_edition
-Nick
nick.grealy@hattricksoftware.com
Forum Newbie
Forum Newbie
 
Posts: 1
Posts Rating:0
Joined: Tue Jun 16, 2015 1:35 am
Full name: Nick

Re: Run MD in Batch Mode > "License validation failed"

Postby marlel » Tue Jun 16, 2015 5:19 am

Hello,

Write the license key to the file "mdlicense.tmp" and put this file to the
MagicDraw install directory. MagicDraw will read the key from this file on start-up
(if the key is not entered yet) and delete it.
Best regards,
Martynas
marlel
No Magic
No Magic
 
Posts: 385
Posts Rating:25
Joined: Wed Jul 11, 2012 2:31 am


Return to Installing and running

Who is online

Users browsing this forum: No registered users and 3 guests