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