Changes between Version 10 and Version 11 of FrequentlyAskedQuestions


Ignore:
Timestamp:
02/21/06 16:31:44 (18 years ago)
Author:
schroed
Comment:

added "How to compile" section

Legend:

Unmodified
Added
Removed
Modified
  • FrequentlyAskedQuestions

    v10 v11  
    5050On the bright side, as data representation is based on Unicode, there  
    5151should be no problem with non-European scripts. 
     52 
     53 
     54'''Unfortunately, I'm just a C++ programmer and have no experience with Java. I have made some changes in the Mary source code -- how I can compile and test my changes?''' 
     55 
     56 
     57make sure you have a recent (>= 1.4) Java SDK installed (try "javac  
     58-version" on the command line). If you don't have it, get it from  
     59http://java.sun.com. You also need the tool "ant", which you can get  
     60from http://ant.apache.org. 
     61 
     62Assuming both is installed correctly, you can simply go to the MARY  
     63install directory, and type: 
     64 
     65{{{ 
     66        ant 
     67}}} 
     68 
     69This should read the file build.xml in the current directory (as a C++  
     70developer, think of it as a Makefile), and execute the default target,  
     71which in this case is "jars". The system will compile all the .java  
     72source files into .class files and package them into mary*.jar files in  
     73the java/ subdirectory. If no errors occur, you should be able to  
     74restart the server and your modified code should be taken into account.  
     75If in doubt, add some 
     76 
     77{{{ 
     78        System.out.println("Hello world"); 
     79}}} 
     80 
     81or 
     82 
     83{{{ 
     84        logger.info("Hello world"); 
     85}}} 
     86 
     87statements into your code. 
     88 
     89If you do more than just a few minor edits, I highly recommend using an  
     90integrated development environment like the open source Java IDEs  
     91Eclipse or !NetBeans. Eclipse project specification files are included  
     92with the OpenMary source package.