1. Getting started
2. Calling methods
3. Working with .NET Objects
4. Fields and Properties
5. Methods Arguments
6. Nested Types
7. Enums
8. Arrays and Collections
9. Embeding UI controls
10. Referencing libraries
11. Off-line activation
12. Events and Delegates
13. Disposing and Garabage Collection
14. .NET Configuration Files (AppConfig, WebConfig)
15. Exceptions, Debugging and Testing
16. Strongly-Typed Wrappers

    Accessing the .NET AppConfig File (connectionStrings and appSettings)

    If your .NET logic uses App.Config files, reads information from connectionStrings sections, appSettings or needs any other data from configuration, you can use javOnet to load this file.

    To do this, use the following method in your application. This method should be called just after activating javOnet and before any other operation. Simply add the BindConfig method to your application and call it by passing the path to your config file with config file name as an argument.

    Example

    public static void main(String[] args) throws JavonetException, IOException {  
    
      Javonet.activate("your@mail.com", "your-license-key", JavonetFramework.v40);  
    
      String path = new File( "." ).getCanonicalPath()+"\\"; 
      BindConfig(path+"app.config"); 
    } 
    
    private static void BindConfig(String configFile) throws JavonetException { 
      Javonet.getType("AppDomain") 
          .getRef("CurrentDomain") 
          .invoke("SetData","APP_CONFIG_FILE", configFile);  
    }