APIs for Java Developers

Go to APIs for .NET Developers

com.javonet

Enum JavonetFramework

  • java.lang.Object
  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<JavonetFramework>

    public enum JavonetFramework
    extends java.lang.Enum<JavonetFramework>
    Enum that specifies possible .NET Framework versions that can be loaded by Javonet

    Javonet during initialization loads native C++ library and .NET Framework process.
    Depending on which .NET Framework you would like to use appropriate JavonetFramework value
    should be passed to Javonet.activate method or set in javonet.xml config file.
    Higher frameworks are backward compatible and are able to load DLLs from any previous framework.

    Each framework uses different Visual C++ runtime and .NET Framework which should be installed on your machine.
    Weather you are using 64-bit or 86-bit Java Virtual Machine the appropriate version of Visual C++ runtime must be installed.
    Please use the URLs below to download and install valid VC++ runtime and .NET Framework for your solution:

    .NET Framework 3.5
    .NET Framework 3.5: http://www.microsoft.com/en-us/download/details.aspx?id=22
    Visual C++ Runtime x86 (Visual Studio 2008 SP1 MFC Redistributable x86): http://www.microsoft.com/en-us/download/details.aspx?id=26368
    Visual C++ Runtime x64 (Visual Studio 2008 SP1 Redistributable x64): http://www.microsoft.com/en-us/download/details.aspx?id=2092

    .NET Framework 4.0
    .NET Framework 4.0: http://www.microsoft.com/en-us/download/details.aspx?id=17718
    Visual C++ Runtime x86 (Visual Studio 2010 SP1 MFC Redistributable x86): http://www.microsoft.com/en-us/download/details.aspx?id=26999
    Visual C++ Runtime x64 (Visual Studio 2010 SP1 Redistributable x64): http://www.microsoft.com/en-us/download/details.aspx?id=13523

    .NET Framework 4.5
    .NET Framework 4.5: http://www.microsoft.com/en-us/download/details.aspx?id=30653
    Visual C++ Runtime x86 (Visual Studio 2013 Redistributable x86): http://www.microsoft.com/en-us/download/details.aspx?id=40784
    Visual C++ Runtime x64 (Visual Studio 2013 Redistributable x64): http://www.microsoft.com/en-us/download/details.aspx?id=40784

    Usage Sample

    Javonet Framework must be set either as argument to activate method Javonet.activate(String, String, JavonetFramework)
    method or configured using Javonet XML configuration file. For example:

      
     <?xml version="1.0" encoding="ISO-8859-1" ?>
     <javonet>
    	<activation>
    		<email>your@mail.com</email>
    		<licencekey>your-javonet-license-key</licencekey>
    	</activation>
    	<references>
    		<reference>System.Windows.Forms</reference>
    		<reference>System.Drawing</reference>
    	</references>
    	<settings>
    		<apartmentState>STA</apartmentState>
    		<framework>v35</framework>
    	</settings>
     </javonet>
     
     


    • Enum Constant Summary

      Enum Constants 
      Enum Constant and Description
      v35

      Javonet will be initialized with .NET 3.5 Framework and Visual C++ Runtime v90 (2008)
      v40

      Javonet will be initialized with .NET 4.0 Framework and Visual C++ Runtime v100 (2010)
      v45

      Javonet will be initialized with .NET 4.5 Framework and Visual C++ Runtime v120 (2013)



    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method and Description
      static JavonetFramework valueOf(java.lang.String name)

      Returns the enum constant of this type with the specified name.
      static JavonetFramework[] values()

      Returns an array containing the constants of this enum type, in
      the order they are declared.


      • Methods inherited from class java.lang.Enum

        compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf



      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait



    • Enum Constant Detail



      • v35

        public static final JavonetFramework v35
        Javonet will be initialized with .NET 3.5 Framework and Visual C++ Runtime v90 (2008)



      • v40

        public static final JavonetFramework v40
        Javonet will be initialized with .NET 4.0 Framework and Visual C++ Runtime v100 (2010)



      • v45

        public static final JavonetFramework v45
        Javonet will be initialized with .NET 4.5 Framework and Visual C++ Runtime v120 (2013)



    • Method Detail



      • valueOf

        public static JavonetFramework valueOf(java.lang.String name)
        Returns the enum constant of this type with the specified name.
        The string must match exactly an identifier used to declare an
        enum constant in this type. (Extraneous whitespace characters are
        not permitted.)
        Parameters:
        name – the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException – if this enum type has no constant with the specified name
        java.lang.NullPointerException – if the argument is null



      • values

        public static JavonetFramework[] values()
        Returns an array containing the constants of this enum type, in
        the order they are declared. This method may be used to iterate
        over the constants as follows:

        for (JavonetFramework c : JavonetFramework.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared