Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Expand
title[To Be Reviewed]Is it possible to create a modeling tool installation package with a set of some default options?

First of all you need to pre-configure your modeling tool. Do the following:

  1. Check if you have the permission to write to the software installation folder because all information that you change will be stored in this folder. If you do not have the permission to write, contact your system administrator.
  2. In magicdraw.properties or cea.properties or csm.properties, which is in \bin, set the parameter value:
    JAVA_ARGS=-DLOCALCONFIG\=false -DWINCONFIG\=false
  3. Run the modeling tool and set desired options, then close the program.
  4. Reopen magicdraw.properties or cea.properties or csm.properties and restore the parameter value JAVA_ARGS=-DLOCALCONFIG\=true and remove the parameter -DWINCONFIG\=false.
  5. Copy the installation folder and paste it on a new machine.

Let us explain the difference between changed parameter values:

a) If JAVA_ARGS=-DLOCALCONFIG\=true, then option settings are stored in \.magicdraw\ . Options are loaded in the following order:

  1. From <Common Application Data location>\.magicdraw or .cameo.enterprise.architecture or cameo.systems.modeler\
  2. From the modeling tool installation folder

b) If JAVA_ARGS=-DLOCALCONFIG\=false -DWINCONFIG\=false, then option settings are stored only in the modeling tool installation folder and are loaded from there.


Expand
title[Expert Review Needed]Cache error occurred. How to handle it?

Close your modeling tool, delete all cache folders and start the program again.
Cache folders can be found in <user home directory>\.<modeling tool>\<version number>, for example <userhome>\.magicdraw\<18.2>.

If the problem still exists, please add the -Dcom.sun.media.imageio.disableCodecLib=true option into the JAVA_ARGS line in the modeling tool properties file, for example magicdraw.properties. A properties file is in <modeling tool installation directory>\bin.

See the example:

JAVA_ARGS=-Xmx4000M -XX\:PermSize\=60M -XX\:MaxPermSize\=200M -DLOCALCONFIG\=true -splash\:data/splash.png -Dmd.class.path\=$java.class.path -Dcom.nomagic.osgi.config.dir\=configuration -Desi.system.config\=data/application.conf -Dlogback.configurationFile\=data/logback.xml -Xss1024K -Dcom.sun.media.imageio.disableCodecLib=true

 

Expand
title[To Be Reviewed]When trying to install or import a plugin to MagicDraw, the error appears saying that you do not have rights to write to my modeling tool installation directory or "failed to copy resource directory". How can this be handled?

We recommend running MagicDraw as an administrator and with enabled UAC (User Account Control) on Windows Vista, Windows 7 and Windows 8 OS in order to avoid some problems that are related with permissions to modify files on the MagicDraw installation root directory.

To enable UAC on Windows 7, Windows 8, or Windows 10 OS, do the following:
1. Click the Start button, type “msconfig” in the Search box and press Enter.
2. From the System Configuration dialog, click the Tools tab.
3. Select the Change UAC Settings tool and click Launch button.
4. Move the slider to the highest value to set Always notify and click OK.
5. Restart the computer to apply changes.

To enable UAC on Windows Vista OS, do the following:
1. Click the Start button, type “msconfig” in the Search box and press Enter.


2. From the System Configuration dialog, click the Tools tab.
3. Select the Enable UAC tool and click Launch button. The CMD window opens.
4. When the command is completed, you can close CMD window.
5. Restart the computer to apply changes.

To run MagicDraw as administrator, right-click the MagicDraw icon and choose Run as Administrator.

To run MagicDraw as an administrator all the time, do the following:
1. Right-click the MagicDraw icon and choose Properties.
2. Click the Compatibility tab.
3. In the Privilege Level area, select Run this program as an administrator.
4. Click OK.

Expand
title[Expert Review Needed]How do I turn on debug log mode?

To initialize log4j, open <MagicDraw installation directory>/data, and modify the debug.properties file.

Change the debug level for appropriate categories by specifying log4j.category.<category>=DEBUG or turn on debug for all categories log4j.rootCategory=DEBUG,SO.


Expand
title[To Be Reviewed]How to run MagicDraw under Unix after installation?

Run mduml* file, which is located in MagicDraw installation directory, bin folder.

 

* If you are using MagicDraw 17.0.5 or later, the name of the property file is magicdraw.properties.

Expand
title[Expert Review Needed]I have installed several versions of the modeling tool on Mac OS and the application can’t be opened using the .app file. How should I start a program?

Please restart your computer. After multiple updates or after installing different versions of a modeling tool on the same machine with Mac OS, sometimes it happens for unknown reason.


Expand
title[To Be Reviewed]When I run the exe file I get a warning: Please select another location to extract the installer to:
Expand
title[Expert Review Needed]After the download the installer cannot be launched or it just appears on the screen and vanishes

This error occurs when you have a corrupted installer file. Please download the file and install again.

Expand
title[Expert Review Needed]I ran into a trouble when installing MagicDraw: Launching installer... Exception in thread "main" java.lang.NoClassDefFoundError: com/zerog/lax/LAX

In most cases such error appears when installer file is truncated or corrupted.

Please try to download an installer again.

Another option is that /usr/bin/java is an old version java. To check which java is used by installer, set environment variable LAX_DEBUG and launch installation again.

By default installer first uses java found in /usr/bin. But there is possibility to use specific VM when launching the installer. Please add parameter LAX_VM to launcher and second parameter path to java executable, here is an example (assuming that java is in /opt/j2sdk1.5.0_03):

./MD_UML_105_unix.sh LAX_VM /opt/j2sdk1.5.0_03/bin/java

Please check if the file is not truncated. You can see the exact file size at the download page.


Expand
title[To Be Reviewed]My modeling tool worked fine. I shut down my machine, started today, and MagicDraw won't start ?!?

This problem is Install Anywhere related and appears when you uninstall previous version of our modelling tools and then, without restarting your computer, install another modelling tool in the same directory. We would suggest to uninstall your modelling tool, restart your computer, and then install it again.

...