Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Get full version of StarUML

StarUML

Download: StarUML.io

Crack

Source: jorgeancal

After installing StartUML successfully, modify LicenseManagerDomain.js as follow:

/**
 * File name: LicenseManagerDomain.js
 * Mac OS: /Applications/StarUML.app/Contents/www/license/node/
 * Linux: /opt/staruml/www/license/node/
 */

(function () {
    "use strict";
 
    var NodeRSA = require('node-rsa');
 
    function validate(PK, name, product, licenseKey) {
        return{
           name: "sontd",
           product: "StarUML",
           licenseType: "vip",
           quantity: "unlimited",
           licenseKey: "no, thanks!"
        };
    }
 
    function init(domainManager) {
        if (!domainManager.hasDomain("LicenseManager")) {
            domainManager.registerDomain("LicenseManager", {major: 0, minor: 1});
        }
        domainManager.registerCommand(
            "LicenseManager", // domain name
            "validate",       // command name
            validate,         // command handler function
            false,            // this command is synchronous in Node ("false" means synchronous")
            "Validate License",
            [
                {
                    name: "PK",
                    type: "string",
                    description: "PK"
                },
                {
                    name: "name",
                    type: "string",
                    description: "name of license owner"
                },
                {
                    name: "product",
                    type: "string",
                    description: "product name"
                },
                {
                    name: "licenseKey",
                    type: "string",
                    description: "license key"
                }
            ],
            [
                {
                    name: "result", // return values
                    type: "object",
                    description: "result"
                }
            ]
        );
    }
 
    exports.init = init;
 
}());

Now, open it and go to Help > Enter License and you have to write the name and the licence key which you have written on LicenseManagerDomain.js. In this example would be the next:

name: "sontd"
License Key: "no, thanks!"

Enjoy it!

@sahanpasindu

This comment has been minimized.

Copy link

commented Nov 14, 2017

cannot save it, show me access deny or something

@Sylvaindce

This comment has been minimized.

Copy link

commented Nov 14, 2017

You don't have superuser rights @sahanpasindu, try with sudo.

BTW, thanks for the trick!

@trandaison

This comment has been minimized.

Copy link
Owner Author

commented Nov 21, 2017

@sahanpasindu Did you try with sudo?

sudo vi /opt/staruml/www/license/node/LicenseManagerDomain.js
@ocars

This comment has been minimized.

Copy link

commented Nov 25, 2017

Perfect!!!

@havefun77612

This comment has been minimized.

Copy link

commented Dec 1, 2017

for those how use windows we can't do sudo -i

any advice?

@sheshubittu

This comment has been minimized.

Copy link

commented Dec 4, 2017

how to modify staruml .can u please explain full process.which tol to be used.

@Artemas-Muzanenhamo

This comment has been minimized.

Copy link

commented Dec 13, 2017

For windows users you should run your terminal as Administrator.

@Artemas-Muzanenhamo

This comment has been minimized.

Copy link

commented Dec 13, 2017

After downloading and adding StarUML to your Applications folder you can do the following:

  1. sudo cp /Applications/StarUML.app/Contents/www/license/node/LicenseManagerDomain.js LicenseManagerDomain.js.backup
  2. sudo vim /Applications/StarUML.app/Contents/www/license/node/LicenseManagerDomain.js.
  3. If prompted to enter password then enter password and then type dG to delete everything.
  4. Hit esc and then copy the whole function() above on this page and paste it by typing p in your terminal.
  5. Type i to amend changes in the terminal and change the name in the function() validate to match yours if you want.
  6. Type esc and then type wq and hit Enter.
  7. Open StarUML and go to Help > Enter License.
  8. Enter the name and the License Key in the LicenseManagerDomain.js.

That should be it ๐Ÿ˜

@freedoms456

This comment has been minimized.

Copy link

commented Dec 14, 2017

For Windows user that cant directly save because "access denied", you can aslo try this:
1.Make new file on notepad,copy that source then save as LicenseManagerDomain.js in another location (ex desktop)
2.Then just copy LicenseManagerDomain.js in desktop and replace another one in app files
Sry for bad English

@MarkDeLoko

This comment has been minimized.

Copy link

commented Dec 25, 2017

hello, how generate c++ code from class diagram?
thank you)

@Devouzer

This comment has been minimized.

Copy link

commented Feb 1, 2018

;) thanks :3

@pvl97

This comment has been minimized.

Copy link

commented Feb 2, 2018

Thanks you very much ๐Ÿ’ฏ

@shine07

This comment has been minimized.

Copy link

commented Feb 20, 2018

thanks :)

@jutosan

This comment has been minimized.

Copy link

commented Feb 20, 2018

works well on windows, thanks

@resatugurulu

This comment has been minimized.

Copy link

commented Feb 22, 2018

image
@Artemas-Muzanenhamo doesn't work on mac os

@vanmart

This comment has been minimized.

Copy link

commented Feb 23, 2018

Thanks a lot!

@hdwong

This comment has been minimized.

Copy link

commented Feb 24, 2018

Cool! Thanks.

@maulinniam

This comment has been minimized.

Copy link

commented Feb 28, 2018

Wooow... thanks a lot!

@jdentech

This comment has been minimized.

Copy link

commented Mar 2, 2018

For those with a Windows PC
Copy the file to the Desktop, modify it, paste it back in the folder OR use Visual Studio Code, when saving it will warn you that it can't save without administrative rights, click on it and it should be good to go!

@stefanfredik

This comment has been minimized.

Copy link

commented Mar 7, 2018

thank you very much. your code is worked!

@noobping

This comment has been minimized.

Copy link

commented Mar 7, 2018

Splendid!

@jazb18

This comment has been minimized.

Copy link

commented Mar 11, 2018

Thank you a lot.

@dago1989

This comment has been minimized.

Copy link

commented Mar 13, 2018

tks!! im using windows ;)

@EzequielSilvaa

This comment has been minimized.

Copy link

commented Mar 20, 2018

Thanks!! works perfectly!

@avielas

This comment has been minimized.

Copy link

commented Mar 20, 2018

very good concat ! ! thanks!

@ahmadhashim

This comment has been minimized.

Copy link

commented Mar 21, 2018

Thanks working perfectly.

@ed-edau

This comment has been minimized.

Copy link

commented Mar 22, 2018

Awesome, thank you!

@baboijr

This comment has been minimized.

Copy link

commented Mar 24, 2018

Works smoothly on MacOS X High Sierra! Thank you so much!

@Serrulien

This comment has been minimized.

Copy link

commented Mar 27, 2018

Thanks.
Don't forget to buy a licence when you can.

@nguyenvanquang98

This comment has been minimized.

Copy link

commented Mar 28, 2018

thanks you.

@KimYaKi

This comment has been minimized.

Copy link

commented Apr 10, 2018

thank you.
good *100!

@casyazmon

This comment has been minimized.

Copy link

commented Apr 12, 2018

Thanks...
Very Cool hack!!

@goldenbijoy

This comment has been minimized.

Copy link

commented Apr 14, 2018

Nice one.. good job

@alallk

This comment has been minimized.

Copy link

commented Apr 15, 2018

Thanks...

@GUEYEDSMF

This comment has been minimized.

Copy link

commented Apr 16, 2018

Thanks

@edgardo001

This comment has been minimized.

Copy link

commented Apr 17, 2018

Thanks

@gathanasopoulos

This comment has been minimized.

Copy link

commented Apr 27, 2018

thanks !!

@andryawmti

This comment has been minimized.

Copy link

commented May 2, 2018

bloody hell, it is working perfectly!. Thank you.

@aribrilliantsyah

This comment has been minimized.

Copy link

commented May 7, 2018

Working !!! :v thank you .

@dhayzon

This comment has been minimized.

Copy link

commented May 8, 2018

with windows run as administrator your prefered editor, after, open your file \StarUML\www\license\node LicenseManagerDomain.js
edit and save.

@zer0Logic

This comment has been minimized.

Copy link

commented May 19, 2018

it's working!!! thank you so much!!!

@RedhaCheriet

This comment has been minimized.

Copy link

commented May 21, 2018

perfect thnks a lot
2018-05-21 at 11-28-37

@janatii

This comment has been minimized.

Copy link

commented May 24, 2018

platform : windows 10
version : 2.B.1
working perfectly!!
thank's a lot

@jorgeancal

This comment has been minimized.

Copy link

commented May 26, 2018

mmm...I'm going to tell you something which I've told other people. why did you copy and paste? and the post isn't there anymore, now It's here https://jorgeancal.com/installations/crack-staruml/

@amankriet

This comment has been minimized.

Copy link

commented May 30, 2018

Well! PS: I guess you need to disconnect your internet connection first!
Thanks a lot for the help! ๐Ÿ‘

@apissotte

This comment has been minimized.

Copy link

commented Jun 3, 2018

It doesn't work with StarURM version 3.0

@nhanledev

This comment has been minimized.

Copy link

commented Jun 4, 2018

Because in the version v3.0, this method do not work, I will share the license of the previous version 2.0 just in case anyone need to license the app but do not know how to modify the file above.

IT ONLY WORKS IN VERSION 2

Name: Twitter Inc.
License: drE83kXcl6W6r81KHk9UOxZwPURnaHGOvhSMyXglRur/SlJUgHUmfwEzceh9tiNOuEv5YjDyPiqPw3YJztMRSXY68cJLpaHuj6q0akQyUlfNmCtJ2Am/aYjrfXxp1s6+uAklRkO+VZ+uVpuVLPdabr21oC+pPuQBlC+8jaVRGg0=
@layalii

This comment has been minimized.

Copy link

commented Jun 10, 2018

When I download the StarUML i get just the .exe file and not the whole directory so i can't find LicenseManagerDomain.js what should i do ?? any suggestion please !!

@liy-cn

This comment has been minimized.

Copy link

commented Jun 14, 2018

@tatecapone

This comment has been minimized.

Copy link

commented Jun 14, 2018

It is not understood very well, but it is easy and it WORKS !, any problem consult me, here ...

@ojdgaf

This comment has been minimized.

Copy link

commented Jun 15, 2018

@AEK-BKF

This comment has been minimized.

Copy link

commented Jun 28, 2018

@liy-cn @ojdgaf :
It doesn't work for me ! please could you show us your steps ?

@Porske

This comment has been minimized.

Copy link

commented Jul 19, 2018

V.3 for Linux? I cant't find the app.asar file...

@trongtoanse

This comment has been minimized.

Copy link

commented Jul 24, 2018

@Porske good question watting the answer :)

@cakecakecake

This comment has been minimized.

Copy link

commented Jul 31, 2018

@Porske, @trongtoanse:
On Linux you can execute the AppImage with the flag --appimage-extract.

Then you will find app.asar in the "resources" directory. :)

Edit:
Apparently I had to repackage the extracted appimage to run the modified StarUML source.
Have a look at the following for how to do that: https://github.com/AppImage/AppImageKit#appimagetool-usage

@arkn98

This comment has been minimized.

Copy link

commented Aug 8, 2018

How do you repackage @cakecakecake? According to the docs, I need to have .AppDir in place, which I don't have. I'm running Ubuntu and there is this only folder called squashfs-root. I modified my app.asar in the resources directory.

@kharek

This comment has been minimized.

Copy link

commented Aug 9, 2018

@arkn98 here are the steps - based on https://gist.github.com/jjvillavicencio/4e3615a8219bb1a17c81c4541c6c317d :
sudo apt install npm
sudo npm install -g asar
./StarUML-3.0.1-x86_64.AppImage --appimage-extract
cd squashfs-root/app/resources/
asar extract app.asar app
#edit the file as per the instructions above
rm -rf app/*
rmdir app
cd ../../../
./appimagetool-x86_64.AppImage squashfs-root/
./StarUML-x86_64.AppImage

#enjoy - but consider paying for the license, we are all developers and its not that expensive :)

@danteay

This comment has been minimized.

Copy link

commented Aug 22, 2018

Tanks @kharek, it works for me on linux

@ghost

This comment has been minimized.

Copy link

commented Aug 24, 2018

@kharek, every time I try to extract the apimage from staruml, it only extracts the folder squashfs-root, without any other program data. Am I missing a step?

@kharek

This comment has been minimized.

Copy link

commented Aug 31, 2018

@victorpenna did you chmod +x the file (chmod +x StarUML-3.0.1-x86_64.AppImage)? are you extracting in on linux on a ext3/4 partition? Fat partitions some times are a bit of a hassle for Linux applications. I tested that on a ubuntu 18.04, it might vary slightly on other distributions.

@BDaniel35

This comment has been minimized.

Copy link

commented Sep 21, 2018

It doesn't work with the 3.0 version.
You can download the old version here, just scroll down until you find the 2.8.1 versione:
http://staruml.io/download
After you install this version, just apply what the original post tells you to do.

@punkrocker178

This comment has been minimized.

Copy link

commented Sep 29, 2018

It doesn't work with the 3.0 version.
You can download the old version here, just scroll down until you find the 2.8.1 versione:
http://staruml.io/download
After you install this version, just apply what the original post tells you to do.

Thanks,this works

@arkn98

This comment has been minimized.

Copy link

commented Oct 3, 2018

@kharek Many thanks! Your solution worked. But there are minor tweaks for the latest version (StarUML-3.0.2-x86_64.AppImage).

Here's a complete guide (for newbies) that worked for me (Ubuntu 18.04.1 LTS) (credits to @kharek for his answer here)

  1. Download the latest StarUML .AppImage from the their website staruml.io
  2. Then make the downloaded .AppImage executable by running sudo chmod +x StarUML-3.0.2-x86_64.AppImage
  3. Install npm using apt-get sudo apt install npm
  4. Install asar npm package using sudo npm install -g asar
  5. If you're using npm for the first time, then you can't directly call asar from the terminal. You need to update your $PATH variable to include the .npm-global directory to directly call globally installed npm packages. This can be done by adding export PATH="/home/$USER/.npm-global/bin:$PATH" (may differ based on your config; refer to this SO answer) at the end of your .bashrc. Then logout and login again.
  6. Then extract .AppImage file using ./StarUML-3.0.2-x86_64.AppImage --appimage-extract
  7. cd squashfs-root/resources/
  8. asar extract app.asar app
  9. cd app/src/engine
  10. Edit the license-manager.js file. Make the following changes:
//... existing code
checkLicenseValidity () {
    this.validate().then(() => {
      setStatus(this, true)
    }, () => {
      //setStatus(this,false)  <-- comment this line
      setStatus(this, true) //<-- add this line
      //UnregisteredDialog.showDialog() <-- comment this line
    })
  }
//... rest of the code
  1. cd ../../../
  2. Pack the updated .AppImage using asar pack app app.asar
  3. Remove the previously extracted app directory by running rm -rf app/* followed by rmdir app
  4. cd ../../
  5. Download the appimagetool from here to your current directory
  6. Run this ./appimagetool-x86_64.AppImage squashfs-root/ to generate the new .AppImage file
  7. Run the new .AppImage file by running ./StarUML-x86_64.AppImage
@Alberghini

This comment has been minimized.

Copy link

commented Oct 4, 2018

Working on starUML version 2.8, windows 10. Congrats!!

@Juansero29

This comment has been minimized.

Copy link

commented Oct 4, 2018

@kharek Many thanks! Your solution worked. But there are minor tweaks for the latest version (StarUML-3.0.2-x86_64.AppImage).

Here's a complete guide (for newbies) that worked for me (Ubuntu 18.04.1 LTS) (credits to @kharek for his answer here)

  1. Download the latest StarUML .AppImage from the their website staruml.io
  2. Then make the downloaded .AppImage executable by running sudo chmod +x StarUML-3.0.2-x86_64.AppImage
  3. Install npm using apt-get sudo apt install npm
  4. Install asar npm package using sudo npm install -g asar
  5. If you're using npm for the first time, then you can't directly call asar from the terminal. You need to update your $PATH variable to include the .npm-global directory to directly call globally installed npm packages. This can be done by adding export PATH="/home/$USER/.npm-global/bin:$PATH" (may differ based on your config; refer to this SO answer) at the end of your .bashrc. Then logout and login again.
  6. Then extract .AppImage file using ./StarUML-3.0.2-x86_64.AppImage --appimage-extract
  7. cd squashfs-root/resources/
  8. asar extract app.asar app
  9. cd app/src/engine
  10. Edit the license-manager.js file. Make the following changes:
//... existing code
checkLicenseValidity () {
    this.validate().then(() => {
      setStatus(this, true)
    }, () => {
      //setStatus(this,false)  <-- comment this line
      setStatus(this, true) //<-- add this line
      //UnregisteredDialog.showDialog() <-- comment this line
    })
  }
//... rest of the code
  1. cd ../../../
  2. Pack the updated .AppImage using asar pack app app.asar
  3. Remove the previously extracted app directory by running rm -rf app/* followed by rmdir app
  4. cd ../../
  5. Download the appimagetool from here to your current directory
  6. Run this ./appimagetool-x86_64.AppImage squashfs-root/ to generate the new .AppImage file
  7. Run the new .AppImage file by running ./StarUML-x86_64.AppImage

Do you have any idea on how to do this on Windows?

@arviantodwi

This comment has been minimized.

Copy link

commented Oct 6, 2018

This is how to force StarUML 3 for not validate the license in MacOS.

  1. Download and update your previous StarUML
  2. After successfully update, create new directory on your Desktop and open it by Finder. Assume your new directory name is New Asar
  3. Open new Finder window and go to Application. Find your StarUML app, opt+click to show context menu and choose Show Package Contents.
  4. After StarUML contents appears, navigate to Contents/Resources and find the app.asar file. Copy it to your New Asar directory on Desktop
  5. Open your preferable terminal app. Install asar package if you haven't done it before by npm i -g asar. I assume you have installed NPM before and if not, please google how to install it.
  6. After asar successfully installed, still in your terminal, type cd ~/Desktop/New Asar
  7. asar extract app.asar app
  8. In New Asar Finder window, there will be an app directory now. Navigate to app/src/engine and you will find license-manager.js. Edit it in your preferable text editor eg. Atom etc., and make this changes:
// ...
checkLicenseValidity () {
    this.validate().then(() => {
        setStatus(this, true)
    }, () => {
        // setStatus(this,false) <โ€” comment this line
        // UnregisteredDialog.showDialog() <โ€” comment this line
        setStatus(this, true) // <โ€” add this line
    })
  }
// ...
  1. Save it and back to your New Asar directory, then pack the modified asar by typing this command in terminal: asar pack app app.asar
  2. Copy the new app.asar back into your StarUML contents. See step 3 & 4 if you forgot where to place the asar back.
  3. Open StarUML and done. Your StarUML has a valid license now.
@arkn98

This comment has been minimized.

Copy link

commented Oct 10, 2018

@kharek Many thanks! Your solution worked. But there are minor tweaks for the latest version (StarUML-3.0.2-x86_64.AppImage).
Here's a complete guide (for newbies) that worked for me (Ubuntu 18.04.1 LTS) (credits to @kharek for his answer here)

  1. Download the latest StarUML .AppImage from the their website staruml.io
  2. Then make the downloaded .AppImage executable by running sudo chmod +x StarUML-3.0.2-x86_64.AppImage
  3. Install npm using apt-get sudo apt install npm
  4. Install asar npm package using sudo npm install -g asar
  5. If you're using npm for the first time, then you can't directly call asar from the terminal. You need to update your $PATH variable to include the .npm-global directory to directly call globally installed npm packages. This can be done by adding export PATH="/home/$USER/.npm-global/bin:$PATH" (may differ based on your config; refer to this SO answer) at the end of your .bashrc. Then logout and login again.
  6. Then extract .AppImage file using ./StarUML-3.0.2-x86_64.AppImage --appimage-extract
  7. cd squashfs-root/resources/
  8. asar extract app.asar app
  9. cd app/src/engine
  10. Edit the license-manager.js file. Make the following changes:
//... existing code
checkLicenseValidity () {
    this.validate().then(() => {
      setStatus(this, true)
    }, () => {
      //setStatus(this,false)  <-- comment this line
      setStatus(this, true) //<-- add this line
      //UnregisteredDialog.showDialog() <-- comment this line
    })
  }
//... rest of the code
  1. cd ../../../
  2. Pack the updated .AppImage using asar pack app app.asar
  3. Remove the previously extracted app directory by running rm -rf app/* followed by rmdir app
  4. cd ../../
  5. Download the appimagetool from here to your current directory
  6. Run this ./appimagetool-x86_64.AppImage squashfs-root/ to generate the new .AppImage file
  7. Run the new .AppImage file by running ./StarUML-x86_64.AppImage

Do you have any idea on how to do this on Windows?

Unfortunately no :(

@brolnickij

This comment has been minimized.

Copy link

commented Nov 14, 2018

@arviantodwi thank you! It's work!

@RYSKZ

This comment has been minimized.

Copy link

commented Nov 29, 2018

@kharek Many thanks! Your solution worked. But there are minor tweaks for the latest version (StarUML-3.0.2-x86_64.AppImage).
Here's a complete guide (for newbies) that worked for me (Ubuntu 18.04.1 LTS) (credits to @kharek for his answer here)

  1. Download the latest StarUML .AppImage from the their website staruml.io
  2. Then make the downloaded .AppImage executable by running sudo chmod +x StarUML-3.0.2-x86_64.AppImage
  3. Install npm using apt-get sudo apt install npm
  4. Install asar npm package using sudo npm install -g asar
  5. If you're using npm for the first time, then you can't directly call asar from the terminal. You need to update your $PATH variable to include the .npm-global directory to directly call globally installed npm packages. This can be done by adding export PATH="/home/$USER/.npm-global/bin:$PATH" (may differ based on your config; refer to this SO answer) at the end of your .bashrc. Then logout and login again.
  6. Then extract .AppImage file using ./StarUML-3.0.2-x86_64.AppImage --appimage-extract
  7. cd squashfs-root/resources/
  8. asar extract app.asar app
  9. cd app/src/engine
  10. Edit the license-manager.js file. Make the following changes:
//... existing code
checkLicenseValidity () {
    this.validate().then(() => {
      setStatus(this, true)
    }, () => {
      //setStatus(this,false)  <-- comment this line
      setStatus(this, true) //<-- add this line
      //UnregisteredDialog.showDialog() <-- comment this line
    })
  }
//... rest of the code
  1. cd ../../../
  2. Pack the updated .AppImage using asar pack app app.asar
  3. Remove the previously extracted app directory by running rm -rf app/* followed by rmdir app
  4. cd ../../
  5. Download the appimagetool from here to your current directory
  6. Run this ./appimagetool-x86_64.AppImage squashfs-root/ to generate the new .AppImage file
  7. Run the new .AppImage file by running ./StarUML-x86_64.AppImage

Do you have any idea on how to do this on Windows?

Unfortunately no :(

Your solution worked for me in windows, just extracted the app.asar, changed the source code and repacked the file, then I replaced the old app.asar with the new one, all works fine, thanks!

@mukakue

This comment has been minimized.

Copy link

commented Dec 6, 2018

This is how to force StarUML 3 for not validate the license in MacOS.

  1. Download and update your previous StarUML
  2. After successfully update, create new directory on your Desktop and open it by Finder. Assume your new directory name is New Asar
  3. Open new Finder window and go to Application. Find your StarUML app, opt+click to show context menu and choose Show Package Contents.
  4. After StarUML contents appears, navigate to Contents/Resources and find the app.asar file. Copy it to your New Asar directory on Desktop
  5. Open your preferable terminal app. Install asar package if you haven't done it before by npm i -g asar. I assume you have installed NPM before and if not, please google how to install it.
  6. After asar successfully installed, still in your terminal, type cd ~/Desktop/New Asar
  7. asar extract app.asar app
  8. In New Asar Finder window, there will be an app directory now. Navigate to app/src/engine and you will find license-manager.js. Edit it in your preferable text editor eg. Atom etc., and make this changes:
// ...
checkLicenseValidity () {
    this.validate().then(() => {
        setStatus(this, true)
    }, () => {
        // setStatus(this,false) <โ€” comment this line
        // UnregisteredDialog.showDialog() <โ€” comment this line
        setStatus(this, true) // <โ€” add this line
    })
  }
// ...
  1. Save it and back to your New Asar directory, then pack the modified asar by typing this command in terminal: asar pack app app.asar
  2. Copy the new app.asar back into your StarUML contents. See step 3 & 4 if you forgot where to place the asar back.
  3. Open StarUML and done. Your StarUML has a valid license now.

i have followed the instructions, but when i run StarUML.app appear "App is damage".
MacOS Mojave

Maybe someone can help me ? Cause i need to create DFD in version 3.

Thank you

@couic

This comment has been minimized.

Copy link

commented Dec 8, 2018

@arkn98 awesome ! grazie mille ! \o/

@tuxxi

This comment has been minimized.

Copy link

commented Dec 10, 2018

@arkn98 Thank you :) ๐Ÿ‘

@anhtuanqn1002

This comment has been minimized.

Copy link

commented Jan 18, 2019

This is how to force StarUML 3 for not validate the license in MacOS.

  1. Download and update your previous StarUML
  2. After successfully update, create new directory on your Desktop and open it by Finder. Assume your new directory name is New Asar
  3. Open new Finder window and go to Application. Find your StarUML app, opt+click to show context menu and choose Show Package Contents.
  4. After StarUML contents appears, navigate to Contents/Resources and find the app.asar file. Copy it to your New Asar directory on Desktop
  5. Open your preferable terminal app. Install asar package if you haven't done it before by npm i -g asar. I assume you have installed NPM before and if not, please google how to install it.
  6. After asar successfully installed, still in your terminal, type cd ~/Desktop/New Asar
  7. asar extract app.asar app
  8. In New Asar Finder window, there will be an app directory now. Navigate to app/src/engine and you will find license-manager.js. Edit it in your preferable text editor eg. Atom etc., and make this changes:
// ...
checkLicenseValidity () {
    this.validate().then(() => {
        setStatus(this, true)
    }, () => {
        // setStatus(this,false) <โ€” comment this line
        // UnregisteredDialog.showDialog() <โ€” comment this line
        setStatus(this, true) // <โ€” add this line
    })
  }
// ...
  1. Save it and back to your New Asar directory, then pack the modified asar by typing this command in terminal: asar pack app app.asar
  2. Copy the new app.asar back into your StarUML contents. See step 3 & 4 if you forgot where to place the asar back.
  3. Open StarUML and done. Your StarUML has a valid license now.

Worked! Thanks

@jokaypeday

This comment has been minimized.

Copy link

commented Jan 20, 2019

please help me for windows 7

@jokaypeday

This comment has been minimized.

Copy link

commented Jan 21, 2019

platform : windows 10
version : 2.B.1
working perfectly!!
thank's a lot

How do you use Windows 7?
I have tried opening the app. Basically on Notpad ++ run administrator when editing the validity file then I save it directly when running it can't?

then is the app.asar file copied and then saved to the desktop in what format ??

after that, just copy it to the app file. If you eat it, you will double paste and then appear copy and replace ?

sry if englis is bad

@jokaypeday

This comment has been minimized.

Copy link

commented Jan 21, 2019

For Windows user that cant directly save because "access denied", you can aslo try this:
1.Make new file on notepad,copy that source then save as LicenseManagerDomain.js in another location (ex desktop)
2.Then just copy LicenseManagerDomain.js in desktop and replace another one in app files
Sry for bad English

I have tried this but still can't, when inputting the name and key does not appear "or there is no response whatsoever

@Aramis7609

This comment has been minimized.

Copy link

commented Feb 24, 2019

It works under Windows 7 to run StarUML.
I need a plugin for 7ZIP in order to open, unpack and pack the file app.asar : http://www.tc4shell.com/en/7zip/asar/
The license-manager.js file in app/src/engine has been edited with Notepad ++ according anhtuanqn1002 comment.

@wanedenis

This comment has been minimized.

Copy link

commented Mar 4, 2019

It Work perfectly, thanks a lot.

@S-Gholami

This comment has been minimized.

Copy link

commented Mar 27, 2019

checkLicenseValidity () {
    this.validate().then(() => {
        setStatus(this, true)
    }, () => {
        // setStatus(this,false) <โ€” comment this line
        // UnregisteredDialog.showDialog() <โ€” comment this line
        setStatus(this, true) // <โ€” add this line
    })
  }

thanks, this worked on Mac Mojave

@andreaziani

This comment has been minimized.

Copy link

commented Apr 3, 2019

This is how to force StarUML 3 for not validate the license in MacOS.

  1. Download and update your previous StarUML
  2. After successfully update, create new directory on your Desktop and open it by Finder. Assume your new directory name is New Asar
  3. Open new Finder window and go to Application. Find your StarUML app, opt+click to show context menu and choose Show Package Contents.
  4. After StarUML contents appears, navigate to Contents/Resources and find the app.asar file. Copy it to your New Asar directory on Desktop
  5. Open your preferable terminal app. Install asar package if you haven't done it before by npm i -g asar. I assume you have installed NPM before and if not, please google how to install it.
  6. After asar successfully installed, still in your terminal, type cd ~/Desktop/New Asar
  7. asar extract app.asar app
  8. In New Asar Finder window, there will be an app directory now. Navigate to app/src/engine and you will find license-manager.js. Edit it in your preferable text editor eg. Atom etc., and make this changes:
// ...
checkLicenseValidity () {
    this.validate().then(() => {
        setStatus(this, true)
    }, () => {
        // setStatus(this,false) <โ€” comment this line
        // UnregisteredDialog.showDialog() <โ€” comment this line
        setStatus(this, true) // <โ€” add this line
    })
  }
// ...
  1. Save it and back to your New Asar directory, then pack the modified asar by typing this command in terminal: asar pack app app.asar
  2. Copy the new app.asar back into your StarUML contents. See step 3 & 4 if you forgot where to place the asar back.
  3. Open StarUML and done. Your StarUML has a valid license now.

i have followed the instructions, but when i run StarUML.app appear "App is damage".
MacOS Mojave

Maybe someone can help me ? Cause i need to create DFD in version 3.

Thank you

You can just follow this guide https://www.iotgadgets.com/2018/09/how-to-fix-application-is-damaged-and-cant-be-opened-error-in-macos-mojave-and-high-sierra/

@ilMagnifico

This comment has been minimized.

Copy link

commented Apr 10, 2019

From MacOS. I can't find the file:
LicenseManagerDomain.js

From what I read from the comments it should be in, but it is not there:
/Applications/StarUML.app/Contents/www/license/node/LicenseManagerDomain.js

I think they took precautions regarding this trick.

@harmakit

This comment has been minimized.

Copy link

commented Apr 14, 2019

@andreaziani

You can just follow this guide https://www.iotgadgets.com/2018/09/how-to-fix-application-is-damaged-and-cant-be-opened-error-in-macos-mojave-and-high-sierra/

yeah, but this website you suggested has problems with transforming -- symbols into โ€“
so, if you would do this, you should pay attention to this and enter sudo spctl --master-disable instead of sudo spctl โ€“master-disable

btw it worked for me on mojave
thanx for the guide by @arkn98

@iamdann

This comment has been minimized.

Copy link

commented May 5, 2019

@ilMagnifico I have the same exact problem!

Output of brew cask info staruml:

staruml: 3.1.0
http://staruml.io/
/usr/local/Caskroom/staruml/3.1.0 (64B)
From: https://github.com/Homebrew/homebrew-cask/blob/master/Casks/staruml.rb
==> Name
StarUML
==> Artifacts
StarUML.app (App)

Output of ls -a /Applications/StarUML.app/Contents/

.		..		Frameworks	Info.plist	MacOS		PkgInfo		Resources	_CodeSignature

find /Applications/StarUML.app/Contents/ -name LicenseManagerDomain.js doesn't return anything either.

They might have just patched it unfortunately.

@rolexim

This comment has been minimized.

Copy link

commented Jun 7, 2019

@kharek Many thanks! Your solution worked. But there are minor tweaks for the latest version (StarUML-3.0.2-x86_64.AppImage).

Here's a complete guide (for newbies) that worked for me (Ubuntu 18.04.1 LTS) (credits to @kharek for his answer here)

  1. Download the latest StarUML .AppImage from the their website staruml.io
  2. Then make the downloaded .AppImage executable by running sudo chmod +x StarUML-3.0.2-x86_64.AppImage
  3. Install npm using apt-get sudo apt install npm
  4. Install asar npm package using sudo npm install -g asar
  5. If you're using npm for the first time, then you can't directly call asar from the terminal. You need to update your $PATH variable to include the .npm-global directory to directly call globally installed npm packages. This can be done by adding export PATH="/home/$USER/.npm-global/bin:$PATH" (may differ based on your config; refer to this SO answer) at the end of your .bashrc. Then logout and login again.
  6. Then extract .AppImage file using ./StarUML-3.0.2-x86_64.AppImage --appimage-extract
  7. cd squashfs-root/resources/
  8. asar extract app.asar app
  9. cd app/src/engine
  10. Edit the license-manager.js file. Make the following changes:
//... existing code
checkLicenseValidity () {
    this.validate().then(() => {
      setStatus(this, true)
    }, () => {
      //setStatus(this,false)  <-- comment this line
      setStatus(this, true) //<-- add this line
      //UnregisteredDialog.showDialog() <-- comment this line
    })
  }
//... rest of the code
  1. cd ../../../
  2. Pack the updated .AppImage using asar pack app app.asar
  3. Remove the previously extracted app directory by running rm -rf app/* followed by rmdir app
  4. cd ../../
  5. Download the appimagetool from here to your current directory
  6. Run this ./appimagetool-x86_64.AppImage squashfs-root/ to generate the new .AppImage file
  7. Run the new .AppImage file by running ./StarUML-x86_64.AppImage

StarUML v3.1.0 on Windows 10 working perfectly with this tweak, thanks !!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You canโ€™t perform that action at this time.