This second copy of the java.exe executable relies on the CurrentVersion registry setting to determine which registry key to use to look up the location of the Java RE. Because of its location in the system directory, this second copy of java.exe can be launched from any directory location without giving the full path to it. The second copy is placed in either C:\windows\system or C:\winnt\system32, depending on the system. One copy is in the bin directory of the Java RE. Two copies of the java.exe executable are installed. This key contains the following string value which is set to the major.minor version of the installed Java 2 Runtime Environment: HKEY_LOCAL_MACHINE\Software\JavaSoft\Java Runtime Environment Java 2 Runtime Environment Registry Settings - When installed, the Java 2 Runtime Environment creates the following registry key: If you choose to use your own custom application launcher rather than the application launchers that come with the Java 2 Runtime Environment, you can nevertheless have your launcher check the runtime environment's registry settings for the location and version of the runtime environment on the local machine.If an appropriate version of the Java RE is not already installed, you can prompt the user to download and install the Java 2 Runtime Environment, or your installation program can install a copy of the Java 2 Runtime Environment that you redistribute with your application. If your application has an installation program, you can have that program check the registry to determine which version, if any, of the runtime environment already exists on the platform on which your software is being installed.You can consider using the registry settings in the deployment of your applications in the following ways: The application launcher in the system directory uses the registry settings to obtain the location of the Java Runtime Environment they are to use when launching an application. The installation program for the Microsoft Windows version of the Java 2 Runtime Environment uses the registry to record path and version information. You need only provide users with a command line of the form The system directory is on the default system path of the operating systems, so users of your software won't need to modify any paths in order for the launchers to be available for your application. (The system directory varies depending on the Microsoft Windows version, but is usually either C:\winnt\system32 or C:\windows\system.) In addition, if no more recent version is already installed on the machine, the installer puts copies of the java and javaw application-launcher executables in the Microsoft Windows system directory. By default, the installer places a copy of the runtime environment in the C:\Program Files\Java\j2re1.4.2 directory. The Java 2 Runtime Environment for Microsoft Windows platforms is bundled with its own installer program. For general platform-independent information about the Java 2 Runtime Environment. These notes contain information for developers who are deploying the Java 2 Runtime Environment (Java RE) on Microsoft Windows platforms.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |