JCONFIG is an extension library for the core Java API, which invokes the application under various platforms to obtain system information that the core Java API cannot obtain directly. It can help you create a high quality, scalable Java app to use Jconfig, you must determine that JCONFIG can find all the files you need to run, and you want to initialize the JCONFIG. If you have a problem in installation, please refer to the example and help files to find how to initialize JCONFIG. An example of an accompanying program is in a directory of Source / COM / TOLSTOY / TESTJC.
JCONFIG with files: 1.jconfig.zip (suitable for all platforms) - including .class files for all platforms 2.jconfig.cfg, JcfactRz.txt, JCPROPS.TXT (suitable for all platforms) - including configuration information, and some Support Document 3.jcnfigsn.dll, JCNfigsw.SLL, ETC. (For Windows Platform) -Windows Dlls4.jconfig.SHLB (for Mac Platform) -mac library5.libjconfiglx0.so (for Linux platform) Linux Public library
Use JCONFIG to include three basic steps 1. Determine JCONFIG. ZIP in ClassPath. 2. Determine the local code base when JCONFIG can find usage.
Suppose this support file is in your application directory, you must call FileRegistry.initialize () method curdir = new file ("User.Dir")); FileRegistry.initialize (Curdir, 0);
Note: Applying permissions for the directory must be writable. JCONFIG will create a temporary file below this directory until the program is no longer needed, it will be automatically deleted. Future versions can create a configuration file In the Application Directory, if the directory is passed to FileRegistry.initialize () does not include all support files, JCONFIG will use the internal storage of the default value. However, do not use this behavior: Determine the directory included All support files. If jconfig can't find any of these files, you will print a warning message at the console to explain that the file cannot be found. If you have a warning message, check whether these files are included below. In the Source / Com / TolStoy / TestJC directory, the Tester.java program contains 'DoubleCheckJconfigInitializationDirectory ()' methods, you can use it to determine 'jconfig.cfg' and 'JCFACTRZ.TXT' stored in that directory.
If these support files can be discovered, and your app is running on a supported virtual machine, Jconfig will find the right initialization JCONFIG of the right local code library.
However, if you can't find the right local code base, JCONFIG will only provide a set of restricted features. In this case, JCONFIG will output a message: That FileRegistryPlain Has Been loaded More details: Jconfig has three ways of operation, how do you initialize and in what platform is running 1.Full Mode: All FileRegistry methods can miss you It is desirable to run a normally. 2.Fallbak mode: Only some of the FileRegistry method can run normally, most of the method null or -13. Error mode: all FileRegistry methods Return null or -1