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