README revision e75c2484bff064fbbf51e92aed4f37b08e6427b7
0N/A/*
0N/A * CDDL HEADER START
0N/A *
0N/A * The contents of this file are subject to the terms of the
0N/A * Common Development and Distribution License, Version 1.0 only
0N/A * (the "License"). You may not use this file except in compliance
0N/A * with the License.
0N/A *
0N/A * You can obtain a copy of the license at
0N/A * trunk/opends/resource/legal-notices/OpenDS.LICENSE
0N/A * or https://OpenDS.dev.java.net/OpenDS.LICENSE.
0N/A * See the License for the specific language governing permissions
0N/A * and limitations under the License.
0N/A *
0N/A * When distributing Covered Code, include this CDDL HEADER in each
0N/A * file and include the License file at
0N/A * trunk/opends/resource/legal-notices/OpenDS.LICENSE. If applicable,
0N/A * add the following below this CDDL HEADER, with the fields enclosed
0N/A * by brackets "[]" replaced with your own identifying information:
0N/A * Portions Copyright [yyyy] [name of copyright owner]
0N/A *
0N/A * CDDL HEADER END
0N/A *
0N/A *
0N/A * Copyright 2008 Sun Microsystems, Inc.
0N/A * Portions Copyright 2011 ForgeRock AS
0N/A */
0N/A
0N/A WHAT is winlauncher.exe
0N/A ========================
0N/Awinlauncher.exe is a small windows executable that is intended to be used by
0N/Athe command line files to perform certain operations. It is not intended to
0N/Abe a final user interface and that is one of the reasons why is placed under
0N/Athe lib subdirectory.
0N/A
0N/ASee the comments in winlauncher.c file and common.c for more information.
0N/A
0N/A WHAT is opendj_service.exe
0N/A ========================
0N/Aopendj_service.exe is a small windows executable that is intended to be used by
0N/Athe command line files to be able to run OpenDJ as a windows service (or not
0N/Ato configure it as windows service). It is not intended to be a final user
0N/Ainterface and that is one of the reasons why is placed under the lib
0N/Asubdirectory.
0N/A
0N/ASee the comments in service.c file and common.c for more information.
0N/A
0N/A WHAT is launcher_administrator.exe
0N/A ========================
0N/Alauncher_administrator.exe is a small windows executable that is intended to
0N/Abe used by the command line files to launch operations that require
0N/Aadministrator privileges on Vista. Basically is a wrapper containing a
0N/Amanifest that specifies to require administrator privileges to be run. This
0N/Ais required if UAC is enabled on Vista so that we have a prompt for the user
0N/Aasking for confirmation.
0N/A
0N/ASee the comments in winlauncher.c file and common.c for more information.
0N/A
0N/A INSTRUCTIONS TO COMPILE winlauncher.exe
0N/A ========================
0N/A
0N/AUsing Visual C++ and the command line you must set your environment
0N/Avariables to point to your Visual Studio install. You can set the environment
0N/Avariables by changing to the \bin subdirectory of your Visual C++ installation
0N/Aand running the VCVARS32.bat batch file.
0N/A
0N/AThis will basically update your PATH, INCLUDE and LIB environment variables
0N/Ato point to the correct paths of your Visual Studio install.
0N/A
0N/AGo to the directory where the source files winlauncher.c, winlauncher.h,
0N/Acommon.c and common.h are and launch the following command:
0N/A
0N/A> cl winlauncher.c common.c
0N/A
0N/AThis will generate the binary winlauncher.exe.
0N/A
0N/ANOTE: An alternative to this mode is to compile winlauncher.exe using the
0N/AMakefile by running:
0N/A
0N/A> nmake all
0N/A
0N/A(See INSTRUCTIONS TO COMPILE opendj_service.exe for more information).
0N/A
0N/A************************
0N/A
0N/AUsing Visual C++ graphical interface you just must to Create a Project and add
0N/Awinlauncher.c, winlauncher.h, common.c and common.h to the project.
0N/AYou can build winlauncher.c and then winlauncher.exe with the commands in the
0N/Amenu 'Build'.
0N/A
0N/A************************
0N/A
0N/AUsing gcc (for instance you can get it with the open source project MinGW -
0N/AMinimalist GNU for Windows), you must include the directory where the gcc
0N/Abinaries are on your PATH environment variable.
0N/AGo to the directory where the source files winlauncher.c and winlauncher.h are
0N/Aand launch the following command:
0N/A
0N/A> gcc common.c winlauncher.c -o winlauncher.exe
0N/A
0N/AThis will generate the binary winlauncher.exe.
0N/A
0N/A
0N/A INSTRUCTIONS TO COMPILE opendj_service.exe and administrator_launcher.exe
0N/A ========================
0N/Aservice.c (the main code file for opendj_service.exe) uses windows resources and
0N/Aso it requires Windows libraries to be compiled.
0N/A
0N/AThe fastest way of generating opendj_service.exe is to do it using the command
0N/Aline.
0N/AUsing Visual C++ and the command line you must set your environment
0N/Avariables to point to your Visual Studio install. You can set the environment
0N/Avariables by changing to the \bin subdirectory of your Visual C++ installation
0N/Aand running the VCVARS32.bat batch file.
0N/A
0N/AThen go to the directory where the source files are and run the following
0N/Acommand:
0N/A
0N/A> nmake all
0N/A
0N/AThis command will generate both opendj_service.exe and winlauncher.exe.
0N/A
0N/ASee the comments in the file Makefile for more information.
0N/A