This page is in the 'old' namespace, and was imported from our previous wiki. We recommend checking for more up-to-date information using the search box.
You NEED Visual Studio C++. (We haven't tried it with Microsoft's free Visual Studio Express yet.)
Set the environmental variable JAVA_HOME to the full path of the Java installation directory. To set environmental variables on Windows, go to Start > Control Panel. Make sure you are in Classic View, if not, in the left-hand pane, press the Switch to Classic View link.
Now double click on the System icon. Select the Advanced tab, click the Environment Variables button. And create a new (System) variable called JAVA_HOME with the value set to the full path to the Java directory.
;%ANT_HOME%\bin
For example, I got svn-1.4.6-setup.exe from http://subversion.tigris.org/servlets/ProjectDocumentList?folderID=91
See also:
Open a command line prompt. Start > Run. Type: cmd. An msdos prompt will launch. Go (using cd) into the folder wherein you want to download greenstone 3 into. Then type:
svn checkout http://svn.greenstone.org/main/trunk/greenstone3
Depending on your Internet connection speed, the above may take a *long* time.
ant prepare
Troubleshooting: If the build fails in this step due to some directory being "locked" (it failed in my case), then it will give you the line number where it failed. Open build.xml in your greenstone3 installation folder and go to the line. If the section around the looks like this:
929 <target name="prepare-core" unless="nosvn.mode"> 930 <!-- just get rid of empty directories--> 931 <svn> 932 <update dir="."/> 933 </svn> 934 </target>
Then comment out <update dir="."/> to get:
929 <target name="prepare-core" unless="nosvn.mode"> 930 <!-- just get rid of empty directories--> 931 <svn> 932 <!-- <update dir="."/> --> 933 </svn> 934 </target>
Try the ant command again:
ant prepare
Depending on your internet speed, the above can also take a very long time (it took me over an hour), as it is further checking out files from Greenstone 3's SVN repository.
Just have a look to see where it is on your Visual Studio installation.
cd C:\Program Files\Microsoft Visual Studio\VC98\Bin\ vcvars32.bat
It would now have set up the environment for you to be able to successfully compile greenstone3. Don't close the command prompt, because it's just been set for the next step.
ant install
Hopefully, after some time, it will come back saying that your build was successful.
ant start
in the cmd prompt. Thereafter, open your web browser at http://localhost:8080/greenstone3/
You could also try the following (it did not work for me):
Go into your greenstone 3 folder–the one svn downloaded all the source into. I'm calling the full path to this $GSDLHOME. Now that you are in GSDLHOME, open build.properties. Make sure that the compile.windows.c++.setup is set to the full path location of your Visual Studio's "vcvars32.bat" file. For example, the default value given is:
compile.windows.c++.setup=C:/Program Files/Microsoft Visual Studio/VC98/Bin/VCVARS32.BAT
Go back to the MSDOS prompt, move into your greenstone3 folder and type the following:
ant install
For information on further configuration of the installation (such as changing the port number or host name of the web server), see Advanced, the Advanced section of the walkthrough of installing GS3 from SVN for Linux.