Author Topic: how to install/configure jArchi  (Read 710 times)

gmamvura

  • Member
  • **
  • Posts: 26
how to install/configure jArchi
« on: March 10, 2021, 18:26:18 PM »
Does anyone here have steps to share on how to install/configure jArchi. I have downloaded the jArchi Generator.

The goal is to draw a pattern in Archi, run a script and get the SQL query that finds all similar patterns in model.

If this has been address let me know where I get read through

Thanks in advance

Phil Beauvoir

  • Administrator
  • Hero Member
  • *****
  • Posts: 1619
  • Code Punk
    • Archi
Re: how to install/configure jArchi
« Reply #1 on: March 10, 2021, 18:30:34 PM »
Installation instructions for Archi plug-ins are here:

https://www.archimatetool.com/plugins/#installing

And more info at the wiki:

https://github.com/archimatetool/archi-scripting-plugin/wiki

Note that SQL querying is not a part of jArchi, it is part of the HTML report.
If you value and use Archi please consider making a donation! https://www.archimatetool.com/donate

gmamvura

  • Member
  • **
  • Posts: 26
Re: how to install/configure jArchi
« Reply #2 on: March 10, 2021, 18:36:32 PM »
this is what I get when I try install the JArchi plugin.
Archi-scripting-plugin-master.zip - Is not a Archi plug-in


Phil Beauvoir

  • Administrator
  • Hero Member
  • *****
  • Posts: 1619
  • Code Punk
    • Archi
Re: how to install/configure jArchi
« Reply #3 on: March 10, 2021, 18:42:27 PM »
It seems you have downloaded the source code. This is for developers.

Please read this about how to get the binary - https://www.archimatetool.com/plugins/#jArchi
If you value and use Archi please consider making a donation! https://www.archimatetool.com/donate

gmamvura

  • Member
  • **
  • Posts: 26
Re: how to install/configure jArchi
« Reply #4 on: March 10, 2021, 20:24:50 PM »
do I receive separate link if I join the paronage program?

Phil Beauvoir

  • Administrator
  • Hero Member
  • *****
  • Posts: 1619
  • Code Punk
    • Archi
Re: how to install/configure jArchi
« Reply #5 on: March 10, 2021, 23:06:09 PM »
do I receive separate link if I join the paronage program?

Please check your email.
If you value and use Archi please consider making a donation! https://www.archimatetool.com/donate

gmamvura

  • Member
  • **
  • Posts: 26
Re: how to install/configure jArchi
« Reply #6 on: March 11, 2021, 15:52:52 PM »
after install  and testing first script --Anonymize ---I go these error. why is it going out looking for JS in the web not local machine?

Script Error: java.lang.RuntimeException: java.io.FileNotFoundException: https://raw.githubusercontent.com/oliver-moran/lorem.js/master/lorem.min.js

Phil Beauvoir

  • Administrator
  • Hero Member
  • *****
  • Posts: 1619
  • Code Punk
    • Archi
Re: how to install/configure jArchi
« Reply #7 on: March 11, 2021, 16:50:56 PM »
after install  and testing first script --Anonymize ---I go these error. why is it going out looking for JS in the web not local machine?

Script Error: java.lang.RuntimeException: java.io.FileNotFoundException: https://raw.githubusercontent.com/oliver-moran/lorem.js/master/lorem.min.js

In this example script, there is a dependency on an online JavaScript library at that URL:

Code: [Select]
load('https://raw.githubusercontent.com/oliver-moran/lorem.js/master/lorem.min.js');
So, it needs a connection to access it.
If you value and use Archi please consider making a donation! https://www.archimatetool.com/donate

Jean-Baptiste Sarrodie

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 716
  • Archi Evangelist and Contributor. Visionary.
    • About me...
Re: how to install/configure jArchi
« Reply #8 on: March 11, 2021, 18:58:21 PM »
Hi,

In addition to Phil's response: that's also a good example of loading a lib from the web (not everyone is aware of this capability).

Feel free to download it locally in the same folder as your script and change the call to:
Code: [Select]
load(__DIR__ + 'lorem.min.js');

For more information: https://github.com/archimatetool/archi-scripting-plugin/wiki/The-Console%2C-Dialogs-and-Other-Utilities#including-other-script-files

Regards,

JB
If you value and use Archi please consider making a donation! https://www.archimatetool.com/donate