Hitachi Vantara Pentaho Community Forums
Results 1 to 3 of 3

Thread: unable to build mondrian

  1. #1

    Default unable to build mondrian

    I am trying to build mondrian using ant.

    I am getting follwing errors -

    [echo] /home/mayur/Perforce/guest_ubuntu_4759/open/mondrian/lib/jsp-api.jar
    [echo] /home/mayur/Perforce/guest_ubuntu_4759/open/mondrian/lib/junit.jar
    [echo] /home/mayur/Perforce/guest_ubuntu_4759/open/mondrian/lib/log4j.jar
    [echo] /home/mayur/Perforce/guest_ubuntu_4759/open/mondrian/lib/olap4j-source.jar
    [echo] /home/mayur/Perforce/guest_ubuntu_4759/open/mondrian/lib/olap4j-tck.jar
    [echo] /home/mayur/Perforce/guest_ubuntu_4759/open/mondrian/lib/olap4j-xmla.jar
    [echo] /home/mayur/Perforce/guest_ubuntu_4759/open/mondrian/lib/olap4j.jar
    [echo] /home/mayur/Perforce/guest_ubuntu_4759/open/mondrian/lib/retroweaver-rt.jar
    [echo] /home/mayur/Perforce/guest_ubuntu_4759/open/mondrian/lib/retroweaver.jar
    [echo] /home/mayur/Perforce/guest_ubuntu_4759/open/mondrian/lib/servlet-api.jar
    [echo] /home/mayur/Perforce/guest_ubuntu_4759/open/mondrian/lib/validation-api.jar
    [echo] /home/mayur/Perforce/guest_ubuntu_4759/open/mondrian/lib/xalan.jar
    [echo] /home/mayur/Perforce/guest_ubuntu_4759/open/mondrian/lib/xercesImpl.jar
    [echo] /home/mayur/Perforce/guest_ubuntu_4759/open/mondrian/lib/xml-apis.jar
    [echo] /home/mayur/Perforce/guest_ubuntu_4759/open/mondrian/lib/xmlunit.jar
    [echo] /home/mayur/Perforce/guest_ubuntu_4759/open/mondrian/classes
    [echo] /home/mayur/Perforce/guest_ubuntu_4759/open/mondrian/testclasses
    [javac] Compiling 168 source files to /home/mayur/Perforce/guest_ubuntu_4759/open/mondrian/testclasses
    [javac] /home/mayur/Perforce/guest_ubuntu_4759/open/mondrian/testsrc/main/mondrian/calc/impl/ConstantCalcTest.java:13: cannot find symbol
    [javac] symbol : class FunUtil
    [javac] location: package mondrian.olap.fun
    [javac] import mondrian.olap.fun.FunUtil;
    [javac] ^
    [javac] /home/mayur/Perforce/guest_ubuntu_4759/open/mondrian/testsrc/main/mondrian/calc/impl/ConstantCalcTest.java:14: cannot find symbol
    [javac] symbol : class NullType
    [javac] location: package mondrian.olap.type
    [javac] import mondrian.olap.type.NullType;
    [javac] ^
    [javac] /home/mayur/Perforce/guest_ubuntu_4759/open/mondrian/testsrc/main/mondrian/olap/CellPropertyTest.java:22: cannot find symbol
    [javac] symbol : class CellProperty
    [javac] location: class mondrian.olap.CellPropertyTest
    [javac] private CellProperty cellProperty;
    [javac] ^
    [javac] /home/mayur/Perforce/guest_ubuntu_4759/open/mondrian/testsrc/main/mondrian/olap/CustomizedParserTest.java:13: cannot find symbol
    [javac] symbol : class CustomizedFunctionTable
    [javac] location: package mondrian.olap.fun
    [javac] import mondrian.olap.fun.CustomizedFunctionTable;
    [javac] ^
    [javac] /home/mayur/Perforce/guest_ubuntu_4759/open/mondrian/testsrc/main/mondrian/olap/CustomizedParserTest.java:14: cannot find symbol
    [javac] symbol : class ParenthesesFunDef
    [javac] location: package mondrian.olap.fun
    [javac] import mondrian.olap.fun.ParenthesesFunDef;
    [javac] ^
    [javac] /home/mayur/Perforce/guest_ubuntu_4759/open/mondrian/testsrc/main/mondrian/olap/CustomizedParserTest.java:15: package mondrian.server does not exist
    [javac] import mondrian.server.Statement;
    [javac] ^
    [javac] /home/mayur/Perforce/guest_ubuntu_4759/open/mondrian/testsrc/main/mondrian/test/FoodMartTestCase.java:15: cannot find symbol
    [javac] symbol : class TupleList
    [javac] location: package mondrian.calc
    [javac] import mondrian.calc.TupleList;
    [javac] ^
    [javac] /home/mayur/Perforce/guest_ubuntu_4759/open/mondrian/testsrc/main/mondrian/test/FoodMartTestCase.java:16: cannot find symbol
    [javac] symbol : class UnaryTupleList
    [javac] location: package mondrian.calc.impl
    [javac] import mondrian.calc.impl.UnaryTupleList;
    [javac] ^
    [javac] /home/mayur/Perforce/guest_ubuntu_4759/open/mondrian/testsrc/main/mondrian/olap/CustomizedParserTest.java:32: cannot find symbol
    [javac] symbol : class CustomizedFunctionTable
    [javac] location: class mondrian.olap.CustomizedParserTest
    [javac] CustomizedFunctionTable getCustomizedFunctionTable(Set<String> funNameSet) {
    [javac] ^
    [javac] /home/mayur/Perforce/guest_ubuntu_4759/open/mondrian/testsrc/main/mondrian/olap/CustomizedParserTest.java:58: cannot find symbol
    [javac] symbol : class CustomizedFunctionTable
    [javac] location: class mondrian.olap.CustomizedParserTest
    [javac] CustomizedFunctionTable cftab,
    [javac] ^
    [javac] /home/mayur/Perforce/guest_ubuntu_4759/open/mondrian/testsrc/main/mondrian/olap/CustomizedParserTest.java:57: cannot find symbol
    [javac] symbol : class Query
    [javac] location: class mondrian.olap.CustomizedParserTest
    [javac] private Query getParsedQueryForExpr(
    [javac] ^
    [javac] /home/mayur/Perforce/guest_ubuntu_4759/open/mondrian/testsrc/main/mondrian/olap/CustomizedParserTest.java:75: cannot find symbol
    [javac] symbol : class CustomizedFunctionTable
    [javac] location: class mondrian.olap.CustomizedParserTest
    [javac] CustomizedFunctionTable cftab,
    [javac] ^
    [javac] /home/mayur/Perforce/guest_ubuntu_4759/open/mondrian/testsrc/main/mondrian/olap/CustomizedParserTest.java:74: cannot find symbol
    [javac] symbol : class Query
    [javac] location: class mondrian.olap.CustomizedParserTest
    [javac] private Query getParsedQueryForExpr(
    [javac] ^
    [javac] /home/mayur/Perforce/guest_ubuntu_4759/open/mondrian/testsrc/main/mondrian/test/PropertySaver.java:15: cannot find symbol
    [javac] symbol : class MondrianProperties
    [javac] location: package mondrian.olap
    [javac] import mondrian.olap.MondrianProperties;
    [javac] ^
    [javac] /home/mayur/Perforce/guest_ubuntu_4759/open/mondrian/testsrc/main/mondrian/test/PropertySaver.java:16: cannot find symbol
    [javac] symbol : class RolapUtil

    ----------------

    Anybody encountering the same kind of errors?
    Last edited by mayur.mohite; 11-06-2012 at 07:01 AM.

  2. #2
    Join Date
    Apr 2015
    Posts
    5

    Default

    Quote Originally Posted by mayur.mohite View Post
    I am trying to build mondrian using ant.

    I am getting follwing errors -

    [echo] /home/mayur/Perforce/guest_ubuntu_4759/open/mondrian/lib/jsp-api.jar
    [echo] /home/mayur/Perforce/guest_ubuntu_4759/open/mondrian/lib/junit.jar
    [echo] /home/mayur/Perforce/guest_ubuntu_4759/open/mondrian/lib/log4j.jar
    [echo] /home/mayur/Perforce/guest_ubuntu_4759/open/mondrian/lib/olap4j-source.jar
    [echo] /home/mayur/Perforce/guest_ubuntu_4759/open/mondrian/lib/olap4j-tck.jar
    [echo] /home/mayur/Perforce/guest_ubuntu_4759/open/mondrian/lib/olap4j-xmla.jar
    [echo] /home/mayur/Perforce/guest_ubuntu_4759/open/mondrian/lib/olap4j.jar
    [echo] /home/mayur/Perforce/guest_ubuntu_4759/open/mondrian/lib/retroweaver-rt.jar
    [echo] /home/mayur/Perforce/guest_ubuntu_4759/open/mondrian/lib/retroweaver.jar
    [echo] /home/mayur/Perforce/guest_ubuntu_4759/open/mondrian/lib/servlet-api.jar
    [echo] /home/mayur/Perforce/guest_ubuntu_4759/open/mondrian/lib/validation-api.jar
    [echo] /home/mayur/Perforce/guest_ubuntu_4759/open/mondrian/lib/xalan.jar
    [echo] /home/mayur/Perforce/guest_ubuntu_4759/open/mondrian/lib/xercesImpl.jar
    [echo] /home/mayur/Perforce/guest_ubuntu_4759/open/mondrian/lib/xml-apis.jar
    [echo] /home/mayur/Perforce/guest_ubuntu_4759/open/mondrian/lib/xmlunit.jar
    [echo] /home/mayur/Perforce/guest_ubuntu_4759/open/mondrian/classes
    [echo] /home/mayur/Perforce/guest_ubuntu_4759/open/mondrian/testclasses
    [javac] Compiling 168 source files to /home/mayur/Perforce/guest_ubuntu_4759/open/mondrian/testclasses
    [javac] /home/mayur/Perforce/guest_ubuntu_4759/open/mondrian/testsrc/main/mondrian/calc/impl/ConstantCalcTest.java:13: cannot find symbol
    [javac] symbol : class FunUtil
    [javac] location: package mondrian.olap.fun
    [javac] import mondrian.olap.fun.FunUtil;
    [javac] ^
    [javac] /home/mayur/Perforce/guest_ubuntu_4759/open/mondrian/testsrc/main/mondrian/calc/impl/ConstantCalcTest.java:14: cannot find symbol
    [javac] symbol : class NullType
    [javac] location: package mondrian.olap.type
    [javac] import mondrian.olap.type.NullType;
    [javac] ^
    [javac] /home/mayur/Perforce/guest_ubuntu_4759/open/mondrian/testsrc/main/mondrian/olap/CellPropertyTest.java:22: cannot find symbol
    [javac] symbol : class CellProperty
    [javac] location: class mondrian.olap.CellPropertyTest
    [javac] private CellProperty cellProperty;
    [javac] ^
    [javac] /home/mayur/Perforce/guest_ubuntu_4759/open/mondrian/testsrc/main/mondrian/olap/CustomizedParserTest.java:13: cannot find symbol
    [javac] symbol : class CustomizedFunctionTable
    [javac] location: package mondrian.olap.fun
    [javac] import mondrian.olap.fun.CustomizedFunctionTable;
    [javac] ^
    [javac] /home/mayur/Perforce/guest_ubuntu_4759/open/mondrian/testsrc/main/mondrian/olap/CustomizedParserTest.java:14: cannot find symbol
    [javac] symbol : class ParenthesesFunDef
    [javac] location: package mondrian.olap.fun
    [javac] import mondrian.olap.fun.ParenthesesFunDef;
    [javac] ^
    [javac] /home/mayur/Perforce/guest_ubuntu_4759/open/mondrian/testsrc/main/mondrian/olap/CustomizedParserTest.java:15: package mondrian.server does not exist
    [javac] import mondrian.server.Statement;
    [javac] ^
    [javac] /home/mayur/Perforce/guest_ubuntu_4759/open/mondrian/testsrc/main/mondrian/test/FoodMartTestCase.java:15: cannot find symbol
    [javac] symbol : class TupleList
    [javac] location: package mondrian.calc
    [javac] import mondrian.calc.TupleList;
    [javac] ^
    [javac] /home/mayur/Perforce/guest_ubuntu_4759/open/mondrian/testsrc/main/mondrian/test/FoodMartTestCase.java:16: cannot find symbol
    [javac] symbol : class UnaryTupleList
    [javac] location: package mondrian.calc.impl
    [javac] import mondrian.calc.impl.UnaryTupleList;
    [javac] ^
    [javac] /home/mayur/Perforce/guest_ubuntu_4759/open/mondrian/testsrc/main/mondrian/olap/CustomizedParserTest.java:32: cannot find symbol
    [javac] symbol : class CustomizedFunctionTable
    [javac] location: class mondrian.olap.CustomizedParserTest
    [javac] CustomizedFunctionTable getCustomizedFunctionTable(Set<String> funNameSet) {
    [javac] ^
    [javac] /home/mayur/Perforce/guest_ubuntu_4759/open/mondrian/testsrc/main/mondrian/olap/CustomizedParserTest.java:58: cannot find symbol
    [javac] symbol : class CustomizedFunctionTable
    [javac] location: class mondrian.olap.CustomizedParserTest
    [javac] CustomizedFunctionTable cftab,
    [javac] ^
    [javac] /home/mayur/Perforce/guest_ubuntu_4759/open/mondrian/testsrc/main/mondrian/olap/CustomizedParserTest.java:57: cannot find symbol
    [javac] symbol : class Query
    [javac] location: class mondrian.olap.CustomizedParserTest
    [javac] private Query getParsedQueryForExpr(
    [javac] ^
    [javac] /home/mayur/Perforce/guest_ubuntu_4759/open/mondrian/testsrc/main/mondrian/olap/CustomizedParserTest.java:75: cannot find symbol
    [javac] symbol : class CustomizedFunctionTable
    [javac] location: class mondrian.olap.CustomizedParserTest
    [javac] CustomizedFunctionTable cftab,
    [javac] ^
    [javac] /home/mayur/Perforce/guest_ubuntu_4759/open/mondrian/testsrc/main/mondrian/olap/CustomizedParserTest.java:74: cannot find symbol
    [javac] symbol : class Query
    [javac] location: class mondrian.olap.CustomizedParserTest
    [javac] private Query getParsedQueryForExpr(
    [javac] ^
    [javac] /home/mayur/Perforce/guest_ubuntu_4759/open/mondrian/testsrc/main/mondrian/test/PropertySaver.java:15: cannot find symbol
    [javac] symbol : class MondrianProperties
    [javac] location: package mondrian.olap
    [javac] import mondrian.olap.MondrianProperties;
    [javac] ^
    [javac] /home/mayur/Perforce/guest_ubuntu_4759/open/mondrian/testsrc/main/mondrian/test/PropertySaver.java:16: cannot find symbol
    [javac] symbol : class RolapUtil

    ----------------

    Anybody encountering the same kind of errors?
    I have same issue. I guess some jar is missing or class is not compiled.
    ./src/main/mondrian/rolap/RolapUtil.java exist

  3. #3
    Join Date
    Apr 2015
    Posts
    5

    Default

    I had same problem. My jdk is 1.8.

    To solve I updated two files as follows:

    C:\Users\ap8774\Documents\GitHub\mondrian\buildOnJdk.bat

    new lines:
    if %1==jdk1.8 (
    if "%JAVA_HOME_18%" NEQ "" (
    set JAVA_HOME=%JAVA_HOME_18%
    ))

    C:\Users\ap8774\Documents\GitHub\mondrian\build.xml
    New TARGET:
    <target name="compileJdk18" depends="set-compile-args">
    <exec osfamily="unix" failonerror="true" executable="${unix.script}">
    <arg line="jdk1.8 ${compile.args}"/>
    </exec>
    <exec osfamily="windows" failonerror="true" dir="." executable="cmd">
    <arg line="/c .\buildOnJdk.bat jdk1.8 ${compile.args}"/>
    </exec>
    </target>



    NEW DEPENDENCY for target "compile":
    <target name="compile" depends="
    version,
    prepare,
    parser,
    generate.resources,
    generate.properties,
    def,
    compileJdk15,
    compileJdk16,
    compileJdk17,
    compileJdk18"/>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Privacy Policy | Legal Notices | Safe Harbor Privacy Policy

Copyright © 2005 - 2019 Hitachi Vantara Corporation. All Rights Reserved.