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