How to add function?

2012-10-30
2013-05-01
  • Hi,

    I tried to follow the manual about the StatisticsFunction.java and put it in the pluginsjaxe directory under the root of the installation.

    I tried to compile it using:
    javac -encoding ISO-8859-1 -classpath .:lib/Jaxe.jar pluginsjaxe/StatisticsFunction.java

    and got the following errors:

    pluginsjaxe\StatisticsFunction.java:20: error: package jaxe does not exist
    import jaxe.JaxeDocument;
               ^
    pluginsjaxe\StatisticsFunction.java:21: error: package jaxe does not exist
    import jaxe.Fonction;
               ^
    pluginsjaxe\StatisticsFunction.java:30: error: cannot find symbol
    public class StatisticsFunction implements Fonction {
                                               ^
      symbol: class Fonction
    pluginsjaxe\StatisticsFunction.java:34: error: cannot find symbol
        public boolean appliquer(JaxeDocument doc, int start, int end) {
                                 ^
      symbol:   class JaxeDocument
      location: class StatisticsFunction
    4 errors

    Should this example still work or is it out-dated?

    Regards,
    VerhaagGCHM

     
  • It should still work, but you should check the paths before trying to compile the example : the classpath option you have used assumes that Jaxe.jar exists in the lib directory in your current directory. The errors your report mean that Jaxe's classes are not found on the classpath.

     
  • Hi,

    Okay thanks, now it works!

    Sorry for bothering you with this!

    Regards,
    VerhaagGCHM