XML Configuration File

XML Configuration File

There are many benefits to activating and setting up javOnet using an XML configuration file. It simplifies distribution of your application to your team, lets you update the javOnet license, references and framework configuration more quickly, and avoids hardcoded activation and configuration details.

During the first application use, javOnet searches for, and then automatically uses the XML configuration file to activate and configure your application.

Simply name the file “javonet.xml” and place it in the root directory of your Java application.

Below you can find the full structure of the XML configuration file. Some of the tags are optional. You can read more about Javonet XML configuration file in Activating Javonet and Adding references to .NET libraries sections.

Full Javonet XML Configuration File Structure

<?xml version="1.0" encoding="ISO-8859-1" ?>
<javonet>
<references> <!-- optional -->
    <reference>System.Windows.Forms</reference>
    <reference>System.Drawing</reference>
    <reference>yourDotNet.dll</reference>
</references>
<activation> <!-- mandatory -->
    <username>YOUR NAME</username>
    <email>your@email.com</email>
    <licencekey>YOUR-LICENSE-KEY</licencekey>
    <proxy> <!-- optional -->
         <host>your@email.com</host>
         <username>your@email.com</username>
         <password>your@email.com</password>
         <domain>your@email.com</domain>
    </proxy>
</activation>
<settings> <!-- optional (default .NET v35 and MTA) -->
    <apartmentState>STA</apartmentState> <!-- optional (default MTA) -->
    <framework>v40</framework> <!-- optional (default .NET v35) -->
</settings>
</javonet>