'flexdoc-xml-diagramkit.jar'
found
in the 'lib'
directory of FlexDoc/XML installation.
DiagramKit uses of JavaFX – the newest Java graphics/GUI platform. So, in order to run it, either all necessary JavaFX modules must be included in the JRE itself (that executes FlexDoc/XML), or JavaFX SDK must be installed separately and the path to its modules specified in all command/build files running FlexDoc/XML+DiagramKit. See: Where to get JavaFX?
For further details about DiagramKit, please see: Docs | FlexDoc/XML | DiagramKit.'DiagramKit/'
subdirectory of
FlexDoc/XML installation.
File / Directory | Description |
---|---|
README.html
|
this file |
*.bat
|
Windows batch files prepared to run FlexDoc/XML with DiagramKit: |
generator.bat
|
|
designer.bat
|
|
linux/
|
Linux shell script files prepared to run FlexDoc/XML+DiagramKit: |
linux/generator.sh
|
|
linux/designer.sh
|
|
macOS/
|
macOS shell script files prepared to run FlexDoc/XML+DiagramKit: |
macOS/generator.command
|
|
macOS/designer.command
|
|
ant/
|
Ant example files: |
ant/build.xml
|
|
ant/make.bat
|
|
maven/
|
A demo project that shows how to configure FlexDoc/XML Maven plugin so as to integrate it with DiagramKit to generate an XML Schema documentation with diagrams for the reports section of a Maven-generated site: |
maven/pom.xml
|
|
maven/pom_with_JavaFX_SDK.xml
|
|
maven/site.bat
|
|
maven/site_with_JavaFX_SDK.bat
|
|
License Type | Description |
---|---|
Demo License |
When no particular license for DiagramKit has been installed, the
Demo License is activated, which enables a special demo mode.
The purpose of that mode is to allow you without much hassle to see what DiagramKit basically can and in some cases even to use it for free.
In demo mode, DiagramKit will work together with either XSDDoc/WSDLDoc when no other licenses are installed for both DiagramKit and the given template set. That is exactly the case when you have just downloaded FlexDoc/XML and installed it. Then, you can immediately run it. Everything will work in demo mode. You don't need to request any trial for that! In demo mode, DiagramKit will generate only limited number of component diagrams. How many depends on the demo limits of a particular main template. However, any diagrams generated in demo mode will be complete and without trial markers. |
Trial License |
DiagramKit with full functionality and generate all possible diagrams (with all hyperlinks). However, there are following limitations:
You can obtain a trial license for DiagramKit by this link: https://www.flexdoc.xyz/trial/?pid=flexdoc-xml-diagramkit2 Currently, the trial license for DiagramKit is included in “FlexDoc/XML (essential)” trial license pack |
Full License |
Allows you using DiagramKit without any limitations. All diagrams will be generated clean (without any watermarks).
Anything else will depend on other your licenses. See also: |
'flexdoc-xml-diagramkit.license'
,
which you may have received by e-mail, to {flexdoc-xml}/lib
directory
(near the flexdoc-xml.jar
file).
'flexdoc-xml.license'
file (along with other licenses), which should be also installed in the same location: {flexdoc-xml}/lib
But since Java 11, Oracle has moved JavaFX into a separate project found on openjfx.io. Now, those who need JavaFX should download JavaFX SDK separately from there, install it and specify all JavaFX dependencies in their Java application according to that installation. That, of course, may be is too complicated for ordinary users, and breaks down the whole idea of using a generic JRE pre-installed on user's computer (independently on FlexDoc/XML).
However, as a compensation for all that perturbation (and actually as its goal), since Java 11, anyone could build their own custom JRE (called «runtime image») that would include in itself any 3rd party modules necessary to run a given application on a particular computer platform.
Now, we took that new opportunity and prepared our own FlexDoc JRE (OpenJDK+JavaFX images) to run FlexDoc/XML+DiagramKit on Windows, Linux and macOS immediately. Just download this Java from our website and don't bother with anything else!
Both possibilities are described below:
Once you have downloaded FlexDoc/XML archive and unpacked it at some location, which we shall designate as '{flexdoc-xml}'
,
go to flexdoc.xyz/downloads/ once again and download from there:
“FlexDoc JRE (OpenJDK+JavaFX) to run FlexDoc/XML+DiagramKit”
flexdoc-jre-17_windows.zip
flexdoc-jre-17_linux.tar.gz
flexdoc-jre-17_macOS.zip
flexdoc-jre-17_windows.zip
into {flexdoc-xml}
. You will have a folder:
{flexdoc-xml}\jre
{flexdoc-xml}\DiagramKit\
generator.bat
and designer.bat
found there
to run Template Processor /
Template Designer
with DiagramKit activated as the diagramming engine.
flexdoc-jre-17_linux.tar.gz
into {flexdoc-xml}
. You will have a folder:
{flexdoc-xml}/jre
{flexdoc-xml}/DiagramKit/linux/
generator.sh
and designer.sh
prepared to run respectively
Template Processor /
Template Designer
with DiagramKit activated as the diagramming engine.
generator.sh
/ designer.sh
as a program.
generator.sh
/ designer.sh
.
However, we take advantage of that Apple still allows the macOS users to install and run on their computer the executables built by those users themselves. So, instead of preparing a ready to install & run FlexDoc JRE, we offer you an easy way to build it by yourself (which differs from the former mostly by the size of the downloaded archive file).
flexdoc-jre-17_macOS.zip
into {flexdoc-xml}
. You will have a folder:
{flexdoc-xml}/build_jre
openjdk-17_macos-x64_bin.tar.gz
– from https://jdk.java.net/17/
openjfx-17_osx-x64_bin-jmods.zip
– from https://gluonhq.com/products/javafx/
{flexdoc-xml}/build_jre/build_jre.command
'build_jre.command'
, a new directory will be created:
{flexdoc-xml}/jre
'build_jre'
folder can be deleted then.)
{flexdoc-xml}/DiagramKit/macOS/
You will find generator.command
and designer.command
prepared to run respectively
Template Processor /
Template Designer
with DiagramKit activated as the diagramming engine.
Then, you will need:
Concerning the compatibility of different versions of Java (JDK) and JavaFX. As of Aug 2021, all currently released JavaFX versions 11-17 will work with JDK 11 or later. We recommend to use JavaFX 16 (instead of JavaFX 11), as the later version seems better to render text in diagrams.
openjfx-17_windows-x64_bin-sdk.zip
Do not download “JavaFX Windows jmods” archive also available there! That is not a proper JavaFX SDK. Although, JMOD files contain some compiled images of Java modules, they can be processed only by jlink command, used to build a custom JRE.
Unpack the downloaded archive somewhere. You will get a folder like this:
C:\javafx-sdk-17
{flexdoc-xml}\DiagramKit\
Edit generator.bat
/ designer.bat
found there as follows:
In 'JAVA_HOME'
variable, specify the location of your Java installation directory, e.g.:
set JAVA_HOME=C:\Program Files\Java\jdk-17
'PATH_TO_FX'
variable, specify the location of JavaFX SDK 'lib'
directory, e.g.:
set PATH_TO_FX=C:\javafx-sdk-17\lib
generator.bat
/ designer.bat
to run
Template Processor /
Template Designer
with DiagramKit activated as the diagramming engine.
openjfx-17_linux-x64_bin-sdk.zip
Do not download “JavaFX Linux jmods” archive also available there! That is not a proper JavaFX SDK. Although, JMOD files contain some compiled images of Java modules, they can be processed only by jlink command, used to build a custom JRE.
Unpack the downloaded archive somewhere. You will get a folder like this:
/home/user/javafx-sdk-17
{flexdoc-xml}/DiagramKit/linux/
You will find generator.sh
and designer.sh
prepared to run respectively
Template Processor /
Template Designer
with DiagramKit activated as the diagramming engine.
Edit generator.sh
/ designer.sh
found there as follows:
In 'JAVA_HOME'
variable, specify the location of your Java installation directory, e.g.:
JAVA_HOME="/home/user/jdk-17"
'PATH_TO_FX'
variable, specify the location of JavaFX SDK 'lib'
directory, e.g.:
PATH_TO_FX="/home/user/javafx-sdk-17/lib"
generator.sh
/ designer.sh
as a program.
generator.sh
/ designer.sh
.
openjfx-17_osx-x64_bin-sdk.zip
Do not download “JavaFX Mac OS X jmods” archive also available there! That is not a proper JavaFX SDK. Although, JMOD files contain some compiled images of Java modules, they can be processed only by jlink command, used to build a custom JRE.
Unpack the downloaded archive somewhere. You will get a folder like this:
/Users/Shared/javafx-sdk-17
{flexdoc-xml}/DiagramKit/macOS/
You will find generator.command
and designer.command
prepared to run respectively
Template Processor /
Template Designer
with DiagramKit activated as the diagramming engine.
Edit generator.command
/ designer.command
found there as follows:
In 'JAVA_COMMAND'
variable, specify the command used to invoke JVM (Java 11.x or later), e.g.:
JAVA_COMMAND="java"
'PATH_TO_FX'
variable, specify the location of JavaFX SDK 'lib'
directory, e.g.:
PATH_TO_FX="/Users/Shared/javafx-sdk-17/lib"
generator.command
/ designer.command
.
{flexdoc-xml}/DiagramKit/ant/
Edit the OS-specific script file to specify the locations of your Java and Ant installations:
make.bat
(Windows)make.command
(macOS) – make it executable as described heremake.sh
(Linux) – make it executable by changing its "Permission" propertiesmake
script file
{flexdoc-xml}/DiagramKit/maven/
– see also index.html
in that folder
See also: Docs | FlexDoc/XML | DiagramKit | FAQ | Generator Setups | Running with Apache Maven
{flexdoc-xml}/integrations/maven/plugin/pom_with_DiagramKit.xml
The step-by-step instruction:
{flexdoc-xml}/integrations/maven/index.html
| Installation | Installation with DiagramKit
{flexdoc-xml}/DiagramKit/maven/
Edit the OS-specific script file to specify the locations of your Java and Maven installations:
site.bat
(Windows)site.command
(macOS) – make it executable as described heresite.sh
(Linux) – make it executable by changing its "Permission" properties
export MAVEN_OPTS="-Xms1024m -Xmx2048m"
site
script file
The step-by-step instruction:
{flexdoc-xml}/DiagramKit/maven/
Edit 'pom_with_JavaFX_SDK.xml'
found there to specify the pathname of JavaFX SDK 'lib'
directory in the following line:
<!-- Specify the pathname of JavaFX SDK 'lib' directory -->
<JFX>C:/javafx-sdk-17/lib</JFX>
Under macOS, to obtain the absolute pathname of a file/directory, drag it from the Finder into the TextEdit window.
site_with_JavaFX_SDK.bat
(Windows)site_with_JavaFX_SDK.command
(macOS) – make it executable as described heresite_with_JavaFX_SDK.sh
(Linux) – make it executable by changing its "Permission" properties
export MAVEN_OPTS="-Xms1024m -Xmx2048m"
site_with_JavaFX_SDK
script file
script.command
file:
script.command
with TextEdit (confirm in the warning box that it is OK to open it).
Then, simply resave that file via File | Save menu.
With that procedure, you will sign script.command
as its “owner/creator”, which is a precondition to be able running it.
script.command
with the executable privilege.
Run the Terminal and type in it 'chmod u+x'
followed by a space and the full pathname of the script file
(instead of typing it, just drag script.command
from the Finder into the Terminal window). Then, press Enter.
script.command
from the Finder just by clicking twice on it.
See: Docs | FlexDoc/XML | DiagramKit | FAQ | Component Properties
See: Docs | FlexDoc/XML | DiagramKit | FAQ | Diagram Settings | How to show/hide annotations?
See: Docs | FlexDoc/XML | DiagramKit | FAQ | Diagram Settings | How to show/hide substitution groups?
See: Docs | FlexDoc/XML | DiagramKit | FAQ | Diagram Settings | How to customize generated diagrams?
'flexdoc-xml.jar'
to the separate module 'flexdoc-xml-diagramkit.jar'
.