Running Visual Paradigm in Android Studio on MS Windows

tomcat-thumbAndroid Studio is the official IDE for the development of Android applications. It is based on JetBrains IntelliJ IDEA. Starting from Visual Paradigm version 12.2 user can make use of Visual Paradigm IntelliJ IDEA Integration to integrate with Android Studio. But since Android Studio do have some fundamental differences with IntelliJ IDEA, some extra configuration will need in order to run Visual Paradigm in Android Studio on MS Windows (Linux and Mac users can simply integrate VP with Android Studio without extra configuration). This article will teach you how to integrate Visual Paradigm with Android Studio and perform the necessary configurations.


Integrate Visual Paradigm with Android Studio

To integrate Visual Paradigm with Android Studio:

  1. In Visual Paradigm, select Windows > Integration > IDE Integration…

    Launching Visual Paradigm IDE Integration

    Launching Visual Paradigm IDE Integration

  2. Select IntelliJ IDEA / Android Studio Integration. Press Next to proceed.

    Select IntelliJ IDEA / Android Studio Integration

    Select IntelliJ IDEA / Android Studio Integration

  3. Specify the installation directory of Android Studio by pressing the Press Next to start installing the integration.

    Specify installation directory of Android Studio

    Specify installation directory of Android Studio

  4. Press Finish when integration complete.

Once the integration is done we can then run Visual Paradigm in Android Studio.

Configure Android Studio for Visual Paradigm

Running Visual Paradigm in Android Studio is a bit tricky. In IDE Integration environment VP will run on the working directory of the IDE. For IntelliJ IDEA its working directory is %installation folder%/bin, but for Android Studio its working directory was set to the bin folder of its JVM. Therefore the following adjustment will need to make in order to run Visual Paradigm on Android Studio.

  1. Download the special batch files, unzip it and rename the files to .bat extension.

    Unzip the downloaded files and rename it to .bat extension

    Unzip the downloaded files and rename them to .bat extension

  2. Copy the studio.bat file (modified from IntelliJ IDEA’s idea.bat) to the bin folder of Android Studio installation directory.

    Copy studio.bat to bin folder of Android Studio

    Copy studio.bat to bin folder of Android Studio

  3. Open studio.bat with your favorite text editor.

    Edit studio.bat

    Edit studio.bat

  4. Specify the JDK path in the JDK variable.

    Specify JDK path

    Specify JDK path

  5. Search for the variable COMMON_JVM_ARGS and modify the -Didea.paths.selector variable to make sure it is a same as the version of your Android Studio. In our example it is version 1.3.

    Edit -Didea.paths.selector in COMMON_JVM_ARGS variable

    Edit -Didea.paths.selector in COMMON_JVM_ARGS variable

  6. Save and close the studio.bat.
  7. Copy the append.bat file (copy from IntelliJ IDEA’s installation) to the bin folder of Android Studio installation director.

    Copy append.bat to bin folder of Android Studio

    Copy append.bat to bin folder of Android Studio

The Android Studio is now ready for running Visual Paradigm.

Launching Visual Paradigm in Android Studio

To launch Visual Paradigm from Android Studio:

  1. Double click on studio.bat to launch Android Studio.
  2. Right click on your project in Android Studio and select Visual Paradigm > Open Visual Paradigm.

    Launch VP in Android Studio

    Launch VP in Android Studio

  3. Now we can create UML diagrams in Android Studio via Visual Paradigm.

    Modeling with Visual Paradigm in Android Studio

    Modeling with Visual Paradigm in Android Studio

Download special batch file for running Android Studio Integration

You can click this link to download the special batch file for running Android Studio Integration.

Related Know-how

Related Links

5 replies
  1. Artem Reva says:

    i`ve got “No JDK found. Please validate either IDEA_JDK, JDK_HOME or JAVA_HOME points to valid JDK installation.” Windows 10, Android Studio 2.2.3
    How can i find proper JDK ? Is there any simple solution ?

  2. Sammy Byrnes says:

    This was a simple yet detailed tutorial. You saved me countless hours that I would’ve spent searching Youtube for a decent guide. Thanks, mate!

  3. Jason Natael says:

    Has this changed at all with Android Studio 3.0? Is there better integration or a simpler way to connect yet?

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply