3.1. Get and install MetaFactory environment
Request an evaluation copy of MetaFactory by sending an email to info@metafactory.nl. No installation is required.
Unzip the received package to a location of your choice and run the run64.bat file inside the main folder if you use it on 64-bit windows.
If you are an OS X user, doubleclick the .dmg file and drag MetaFactory to your applications folder.
Read more about the installation for MetaFactory on Windows or MetaFactory on OSX/MacOS
If you are using an IDE to edit the files we recommend configuring it for use with MetaFactory in order to validate the XML and enable auto-completion. You can check out the required steps at Configuring your IDE.
If you are using IntelliJ you can also control MetaFactory from inside the IDE using the IntelliJ plugin.
Learn more on how to configure this at Installing IntelliJ Plugin
Create a new project (File –> New. - Example: Hello World)
You will be asked where to save the xml file.
Choose a location inside your preferred projects location.
A default folder structure, including basic versions of model.xml and pattern.xml is also created. MetaFactory requires these files with at least this basic content to run, hence it creates them.
Learn more about the Project-structure and read about the functionality of metafactory.xml, model.xml and pattern.xml at Components and Structure.
3.1.1. MetaFactory on Windows
Unzip the received file at a location of your choice
Launch MetaFactory by running run64.cmd (64 bit) or run.cmd (32 bit)
At first startup you will be asked to select a license. Choose the option “I have a valid license file” and then select the file that you have received: ‘metafactory.key’.
3.1.2. MetaFactory on OSX/MacOS
Double click on the MetaFactory.dmg file that you’ve received.
Drag MetaFactory.app to the Programs folder.
That’s it, you’ve now installed MetaFactory.
You can start the application either the ‘OSX way’ or by running the sh script from the MetaFactory.app folder:
Open a terminal
cd /Applications/MetaFactory.app/Contents/Resources/Java
./run64.sh
Running the application this way provides additional debug information in the console, which can be useful to developers.