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