Hitachi Vantara Pentaho Community Forums
Results 1 to 3 of 3

Thread: [Mondrian] no longer able to build mondrian

  1. #1
    Michele Rossi Guest

    Default [Mondrian] no longer able to build mondrian

    hi,
    I am trying to build mondrian using jdk 1.5 and I am now getting an error
    that I haven't seen before (see bottom of the email).
    Is anyone experiencing the same issue?

    Mondrian needs to be built with 1.5 on the path + 1.6 through buildJdk16
    right?
    My buildJdk16.bat contains correct values.


    many thanks,
    Michele


    generate.resources:
    [javac] mondrian\olap\InvalidHierarchyException.java added as
    mondrian/olap/InvalidHierarchyException.class doesn't exist.
    [javac] mondrian\olap\MondrianException.java added as
    mondrian/olap/MondrianException.class doesn't exist.
    [javac] mondrian\olap\NativeEvaluationUnsupportedException.java added as
    mondrian/olap/NativeEvaluationUnsupportedException.class doesn't exist.
    [javac] mondrian\olap\QueryCanceledException.java added as
    mondrian/olap/QueryCanceledException.class doesn't exist.
    [javac] mondrian\olap\QueryTimeoutException.java added as
    mondrian/olap/QueryTimeoutException.class doesn't exist.
    [javac] mondrian\olap\ResourceLimitExceededException.java added as
    mondrian/olap/ResourceLimitExceededException.class doesn't exist.
    [javac] mondrian\olap\ResultLimitExceededException.java added as
    mondrian/olap/ResultLimitExceededException.class doesn't exist.
    [javac] Compiling 7 source files to
    C:\Work\thirdparty\mondrian_perforce\open\mondrian\classes
    [javac] Using modern compiler
    dropping C:\Work\tools\apache-ant-1.6.2\lib\optional.jar from path as it
    doesn't exist
    [javac] Compilation arguments:
    [javac] '-d'
    [javac] 'C:\Work\thirdparty\mondrian_perforce\open\mondrian\classes'
    [javac] '-classpath'
    [javac]
    'C:\Work\thirdparty\mondrian_perforce\open\mondrian\classes;C:\Work\thirdparty\mondrian_perforce\open\mondrian\lib\servlet-api.jar;C:\Work
    \thirdparty\mondrian_perforce\open\mondrian\lib\jsp-api.jar;C:\Work\thirdparty\mondrian_perforce\open\mondrian\lib\commons-dbcp.jar;C:\Work\thirdparty
    \mondrian_perforce\open\mondrian\lib\commons-collections.jar;C:\Work\thirdparty\mondrian_perforce\open\mondrian\lib\commons-logging.jar;C:\Work\thirdp
    arty\mondrian_perforce\open\mondrian\lib\commons-math.jar;C:\Work\thirdparty\mondrian_perforce\open\mondrian\lib\commons-pool.jar;C:\Work\thirdparty\m
    ondrian_perforce\open\mondrian\lib\commons-vfs.jar;C:\Work\thirdparty\mondrian_perforce\open\mondrian\lib\eigenbase-properties.jar;C:\Work\thirdparty\
    mondrian_perforce\open\mondrian\lib\eigenbase-resgen.jar;C:\Work\thirdparty\mondrian_perforce\open\mondrian\lib\eigenbase-xom.jar;C:\Work\thirdparty\m
    ondrian_perforce\open\mondrian\lib\javacup.jar;C:\Work\thirdparty\mondrian_perforce\open\mondrian\lib\log4j.jar;C:\Work\thirdparty\mondrian_perforce\o
    pen\mondrian\lib\olap4j.jar;C:\Work\thirdparty\mondrian_perforce\open\mondrian\lib\xalan.jar;C:\Work\thirdparty\mondrian_perforce\open\mondrian\lib\xe
    rcesImpl.jar;C:\Work\thirdparty\mondrian_perforce\open\mondrian;C:\Program
    Files\Java\jdk1.6.0_26\lib\tools.jar;C:\Program Files\Java\jre6\lib\ext\QTJ
    ava.zip;C:\Work\tools\apache-ant-1.6.2\lib\ant.jar;C:\Work\thirdparty\mondrian_perforce\open\mondrian\workbench\plugins\kettle-dbdialog.jar;C:\Work\th
    irdparty\mondrian_perforce\open\mondrian\workbench\plugins\kettle-core.jar;C:\Work\thirdparty\mondrian_perforce\open\mondrian\workbench\plugins\kettle
    -db.jar;C:\Work\thirdparty\mondrian_perforce\open\mondrian\workbench\plugins\kettle-engine.jar;C:\Work\thirdparty\mondrian_perforce\open\mondrian\work
    bench\plugins\pentaho-xul-core.jar;C:\Work\thirdparty\mondrian_perforce\open\mondrian\workbench\plugins\pentaho-xul-swing.jar;C:\Work\thirdparty\mondr
    ian_perforce\open\mondrian\workbench\plugins\commons-io.jar'
    [javac] '-sourcepath'
    [javac] 'C:\Work\thirdparty\mondrian_perforce\open\mondrian\src\main'
    [javac] '-g'
    [javac] '-source'
    [javac] '1.5'
    [javac]
    [javac] The ' characters around the executable and arguments are
    [javac] not part of the command.
    [javac] Files to be compiled:
    [javac]
    C:\Work\thirdparty\mondrian_perforce\open\mondrian\src\main\mondrian\olap\InvalidHierarchyException.java
    [javac]
    C:\Work\thirdparty\mondrian_perforce\open\mondrian\src\main\mondrian\olap\MondrianException.java
    [javac]
    C:\Work\thirdparty\mondrian_perforce\open\mondrian\src\main\mondrian\olap\NativeEvaluationUnsupportedException.java
    [javac]
    C:\Work\thirdparty\mondrian_perforce\open\mondrian\src\main\mondrian\olap\QueryCanceledException.java
    [javac]
    C:\Work\thirdparty\mondrian_perforce\open\mondrian\src\main\mondrian\olap\QueryTimeoutException.java
    [javac]
    C:\Work\thirdparty\mondrian_perforce\open\mondrian\src\main\mondrian\olap\ResourceLimitExceededException.java
    [javac]
    C:\Work\thirdparty\mondrian_perforce\open\mondrian\src\main\mondrian\olap\ResultLimitExceededException.java

    BUILD FAILED
    C:\Work\thirdparty\mondrian_perforce\open\mondrian\build.xml:476: Error
    starting modern compiler
    at
    org.apache.tools.ant.taskdefs.compilers.Javac13.execute(Javac13.java:63)
    at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:936)
    at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:758)
    at
    org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
    at org.apache.tools.ant.Task.perform(Task.java:364)
    at org.apache.tools.ant.Target.execute(Target.java:341)
    at org.apache.tools.ant.Target.performTasks(Target.java:369)
    at org.apache.tools.ant.Project.executeTarget(Project.java:1214)
    at org.apache.tools.ant.Project.executeTargets(Project.java:1062)
    at org.apache.tools.ant.Main.runBuild(Main.java:673)
    at org.apache.tools.ant.Main.startAnt(Main.java:188)
    at org.apache.tools.ant.launch.Launcher.run(Launcher.java:196)
    at org.apache.tools.ant.launch.Launcher.main(Launcher.java:55)
    Caused by: java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:592)
    at
    org.apache.tools.ant.taskdefs.compilers.Javac13.execute(Javac13.java:55)
    ... 12 more
    Caused by: java.lang.NoClassDefFoundError:
    javax/tools/StandardJavaFileManager
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
    at
    java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
    at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
    at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
    at com.sun.tools.javac.main.Main.compile(Main.java:269)
    at com.sun.tools.javac.Main.compile(Main.java:69)
    ... 17 more
    --- Nested Exception ---
    java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:592)
    at
    org.apache.tools.ant.taskdefs.compilers.Javac13.execute(Javac13.java:55)
    at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:936)
    at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:758)
    at
    org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
    at org.apache.tools.ant.Task.perform(Task.java:364)
    at org.apache.tools.ant.Target.execute(Target.java:341)
    at org.apache.tools.ant.Target.performTasks(Target.java:369)
    at org.apache.tools.ant.Project.executeTarget(Project.java:1214)
    at org.apache.tools.ant.Project.executeTargets(Project.java:1062)
    at org.apache.tools.ant.Main.runBuild(Main.java:673)
    at org.apache.tools.ant.Main.startAnt(Main.java:188)
    at org.apache.tools.ant.launch.Launcher.run(Launcher.java:196)
    at org.apache.tools.ant.launch.Launcher.main(Launcher.java:55)
    Caused by: java.lang.NoClassDefFoundError:
    javax/tools/StandardJavaFileManager
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
    at
    java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
    at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
    at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
    at com.sun.tools.javac.main.Main.compile(Main.java:269)
    at com.sun.tools.javac.Main.compile(Main.java:69)
    ... 17 more

    _______________________________________________
    Mondrian mailing list
    Mondrian (AT) pentaho (DOT) org
    http://lists.pentaho.org/mailman/listinfo/mondrian

  2. #2
    Luc Boudreau Guest

    Default Re: [Mondrian] no longer able to build mondrian

    There seems to be an issue with the version of Ant you are using. Nothing in
    the stack tract is related to Mondrian. Which version of Ant are you using?
    I'm using Ant 1.7.1 here and I can compile without any problems on JDK 1.5.

    Luc

    On Mon, Aug 22, 2011 at 12:28 PM, Michele Rossi <michele.rossi (AT) gmail (DOT) com>wrote:

    > hi,
    > I am trying to build mondrian using jdk 1.5 and I am now getting an error
    > that I haven't seen before (see bottom of the email).
    > Is anyone experiencing the same issue?
    >
    > Mondrian needs to be built with 1.5 on the path + 1.6 through buildJdk16
    > right?
    > My buildJdk16.bat contains correct values.
    >
    >
    > many thanks,
    > Michele
    >
    >
    > generate.resources:
    > [javac] mondrian\olap\InvalidHierarchyException.java added as
    > mondrian/olap/InvalidHierarchyException.class doesn't exist.
    > [javac] mondrian\olap\MondrianException.java added as
    > mondrian/olap/MondrianException.class doesn't exist.
    > [javac] mondrian\olap\NativeEvaluationUnsupportedException.java added
    > as mondrian/olap/NativeEvaluationUnsupportedException.class doesn't exist.
    > [javac] mondrian\olap\QueryCanceledException.java added as
    > mondrian/olap/QueryCanceledException.class doesn't exist.
    > [javac] mondrian\olap\QueryTimeoutException.java added as
    > mondrian/olap/QueryTimeoutException.class doesn't exist.
    > [javac] mondrian\olap\ResourceLimitExceededException.java added as
    > mondrian/olap/ResourceLimitExceededException.class doesn't exist.
    > [javac] mondrian\olap\ResultLimitExceededException.java added as
    > mondrian/olap/ResultLimitExceededException.class doesn't exist.
    > [javac] Compiling 7 source files to
    > C:\Work\thirdparty\mondrian_perforce\open\mondrian\classes
    > [javac] Using modern compiler
    > dropping C:\Work\tools\apache-ant-1.6.2\lib\optional.jar from path as it
    > doesn't exist
    > [javac] Compilation arguments:
    > [javac] '-d'
    > [javac] 'C:\Work\thirdparty\mondrian_perforce\open\mondrian\classes'
    > [javac] '-classpath'
    > [javac]
    > 'C:\Work\thirdparty\mondrian_perforce\open\mondrian\classes;C:\Work\thirdparty\mondrian_perforce\open\mondrian\lib\servlet-api.jar;C:\Work
    >
    > \thirdparty\mondrian_perforce\open\mondrian\lib\jsp-api.jar;C:\Work\thirdparty\mondrian_perforce\open\mondrian\lib\commons-dbcp.jar;C:\Work\thirdparty
    >
    > \mondrian_perforce\open\mondrian\lib\commons-collections.jar;C:\Work\thirdparty\mondrian_perforce\open\mondrian\lib\commons-logging.jar;C:\Work\thirdp
    >
    > arty\mondrian_perforce\open\mondrian\lib\commons-math.jar;C:\Work\thirdparty\mondrian_perforce\open\mondrian\lib\commons-pool.jar;C:\Work\thirdparty\m
    >
    > ondrian_perforce\open\mondrian\lib\commons-vfs.jar;C:\Work\thirdparty\mondrian_perforce\open\mondrian\lib\eigenbase-properties.jar;C:\Work\thirdparty\
    >
    > mondrian_perforce\open\mondrian\lib\eigenbase-resgen.jar;C:\Work\thirdparty\mondrian_perforce\open\mondrian\lib\eigenbase-xom.jar;C:\Work\thirdparty\m
    >
    > ondrian_perforce\open\mondrian\lib\javacup.jar;C:\Work\thirdparty\mondrian_perforce\open\mondrian\lib\log4j.jar;C:\Work\thirdparty\mondrian_perforce\o
    >
    > pen\mondrian\lib\olap4j.jar;C:\Work\thirdparty\mondrian_perforce\open\mondrian\lib\xalan.jar;C:\Work\thirdparty\mondrian_perforce\open\mondrian\lib\xe
    > rcesImpl.jar;C:\Work\thirdparty\mondrian_perforce\open\mondrian;C:\Program
    > Files\Java\jdk1.6.0_26\lib\tools.jar;C:\Program Files\Java\jre6\lib\ext\QTJ
    >
    > ava.zip;C:\Work\tools\apache-ant-1.6.2\lib\ant.jar;C:\Work\thirdparty\mondrian_perforce\open\mondrian\workbench\plugins\kettle-dbdialog.jar;C:\Work\th
    >
    > irdparty\mondrian_perforce\open\mondrian\workbench\plugins\kettle-core.jar;C:\Work\thirdparty\mondrian_perforce\open\mondrian\workbench\plugins\kettle
    >
    > -db.jar;C:\Work\thirdparty\mondrian_perforce\open\mondrian\workbench\plugins\kettle-engine.jar;C:\Work\thirdparty\mondrian_perforce\open\mondrian\work
    >
    > bench\plugins\pentaho-xul-core.jar;C:\Work\thirdparty\mondrian_perforce\open\mondrian\workbench\plugins\pentaho-xul-swing.jar;C:\Work\thirdparty\mondr
    > ian_perforce\open\mondrian\workbench\plugins\commons-io.jar'
    > [javac] '-sourcepath'
    > [javac] 'C:\Work\thirdparty\mondrian_perforce\open\mondrian\src\main'
    > [javac] '-g'
    > [javac] '-source'
    > [javac] '1.5'
    > [javac]
    > [javac] The ' characters around the executable and arguments are
    > [javac] not part of the command.
    > [javac] Files to be compiled:
    > [javac]
    > C:\Work\thirdparty\mondrian_perforce\open\mondrian\src\main\mondrian\olap\InvalidHierarchyException.java
    > [javac]
    > C:\Work\thirdparty\mondrian_perforce\open\mondrian\src\main\mondrian\olap\MondrianException.java
    > [javac]
    > C:\Work\thirdparty\mondrian_perforce\open\mondrian\src\main\mondrian\olap\NativeEvaluationUnsupportedException.java
    > [javac]
    > C:\Work\thirdparty\mondrian_perforce\open\mondrian\src\main\mondrian\olap\QueryCanceledException.java
    > [javac]
    > C:\Work\thirdparty\mondrian_perforce\open\mondrian\src\main\mondrian\olap\QueryTimeoutException.java
    > [javac]
    > C:\Work\thirdparty\mondrian_perforce\open\mondrian\src\main\mondrian\olap\ResourceLimitExceededException.java
    > [javac]
    > C:\Work\thirdparty\mondrian_perforce\open\mondrian\src\main\mondrian\olap\ResultLimitExceededException.java
    >
    > BUILD FAILED
    > C:\Work\thirdparty\mondrian_perforce\open\mondrian\build.xml:476: Error
    > starting modern compiler
    > at
    > org.apache.tools.ant.taskdefs.compilers.Javac13.execute(Javac13.java:63)
    > at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:936)
    > at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:758)
    > at
    > org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
    > at org.apache.tools.ant.Task.perform(Task.java:364)
    > at org.apache.tools.ant.Target.execute(Target.java:341)
    > at org.apache.tools.ant.Target.performTasks(Target.java:369)
    > at org.apache.tools.ant.Project.executeTarget(Project.java:1214)
    > at org.apache.tools.ant.Project.executeTargets(Project.java:1062)
    > at org.apache.tools.ant.Main.runBuild(Main.java:673)
    > at org.apache.tools.ant.Main.startAnt(Main.java:188)
    > at org.apache.tools.ant.launch.Launcher.run(Launcher.java:196)
    > at org.apache.tools.ant.launch.Launcher.main(Launcher.java:55)
    > Caused by: java.lang.reflect.InvocationTargetException
    > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    > at
    > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    > at
    > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    > at java.lang.reflect.Method.invoke(Method.java:592)
    > at
    > org.apache.tools.ant.taskdefs.compilers.Javac13.execute(Javac13.java:55)
    > ... 12 more
    > Caused by: java.lang.NoClassDefFoundError:
    > javax/tools/StandardJavaFileManager
    > at java.lang.ClassLoader.defineClass1(Native Method)
    > at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
    > at
    > java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
    > at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
    > at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
    > at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
    > at java.security.AccessController.doPrivileged(Native Method)
    > at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    > at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    > at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
    > at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
    > at com.sun.tools.javac.main.Main.compile(Main.java:269)
    > at com.sun.tools.javac.Main.compile(Main.java:69)
    > ... 17 more
    > --- Nested Exception ---
    > java.lang.reflect.InvocationTargetException
    > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    > at
    > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    > at
    > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    > at java.lang.reflect.Method.invoke(Method.java:592)
    > at
    > org.apache.tools.ant.taskdefs.compilers.Javac13.execute(Javac13.java:55)
    > at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:936)
    > at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:758)
    > at
    > org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
    > at org.apache.tools.ant.Task.perform(Task.java:364)
    > at org.apache.tools.ant.Target.execute(Target.java:341)
    > at org.apache.tools.ant.Target.performTasks(Target.java:369)
    > at org.apache.tools.ant.Project.executeTarget(Project.java:1214)
    > at org.apache.tools.ant.Project.executeTargets(Project.java:1062)
    > at org.apache.tools.ant.Main.runBuild(Main.java:673)
    > at org.apache.tools.ant.Main.startAnt(Main.java:188)
    > at org.apache.tools.ant.launch.Launcher.run(Launcher.java:196)
    > at org.apache.tools.ant.launch.Launcher.main(Launcher.java:55)
    > Caused by: java.lang.NoClassDefFoundError:
    > javax/tools/StandardJavaFileManager
    > at java.lang.ClassLoader.defineClass1(Native Method)
    > at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
    > at
    > java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
    > at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
    > at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
    > at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
    > at java.security.AccessController.doPrivileged(Native Method)
    > at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    > at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    > at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
    > at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
    > at com.sun.tools.javac.main.Main.compile(Main.java:269)
    > at com.sun.tools.javac.Main.compile(Main.java:69)
    > ... 17 more
    >
    >
    > _______________________________________________
    > Mondrian mailing list
    > Mondrian (AT) pentaho (DOT) org
    > http://lists.pentaho.org/mailman/listinfo/mondrian
    >
    >


    _______________________________________________
    Mondrian mailing list
    Mondrian (AT) pentaho (DOT) org
    http://lists.pentaho.org/mailman/listinfo/mondrian

  3. #3
    Julian Hyde Guest

    Default Re: [Mondrian] no longer able to build mondrian

    As Luc says, it might be ant.

    It might also be your java version. Make sure that JAVA_HOME is not pointing to a different place than 'which java'. Make sure that there are no other versions of java on the path (the 'javac13' I see in the stack is a bit worrying). And make sure that you have a JDK, not a JRE. And make sure you are not using a fake version of java or javac such as Microsoft Java (stuck at JDK 1.1.7 for eternity) or gcj.

    We use JDK 1.5 for official builds (calling out to JDK 1.6 for a few JDBC 4.0 classes) but for everyday purposes, I use JDK 1.6.

    The class javax/tools/StandardJavaFileManager was introduced in JDK 1.6, so it looks like you are not using JDK 1.6 but some part of the build process wants to use JDK 1.6.

    Julian

    On Aug 22, 2011, at 9:35 AM, Luc Boudreau wrote:

    > There seems to be an issue with the version of Ant you are using. Nothing in the stack tract is related to Mondrian. Which version of Ant are you using? I'm using Ant 1.7.1 here and I can compile without any problems on JDK 1.5.
    >
    > Luc
    >
    > On Mon, Aug 22, 2011 at 12:28 PM, Michele Rossi <michele.rossi (AT) gmail (DOT) com> wrote:
    > hi,
    > I am trying to build mondrian using jdk 1.5 and I am now getting an error that I haven't seen before (see bottom of the email).
    > Is anyone experiencing the same issue?
    >
    > Mondrian needs to be built with 1.5 on the path + 1.6 through buildJdk16 right?
    > My buildJdk16.bat contains correct values.
    >
    >
    > many thanks,
    > Michele
    >
    >
    > generate.resources:
    > [javac] mondrian\olap\InvalidHierarchyException.java added as mondrian/olap/InvalidHierarchyException.class doesn't exist.
    > [javac] mondrian\olap\MondrianException.java added as mondrian/olap/MondrianException.class doesn't exist.
    > [javac] mondrian\olap\NativeEvaluationUnsupportedException.java added as mondrian/olap/NativeEvaluationUnsupportedException.class doesn't exist.
    > [javac] mondrian\olap\QueryCanceledException.java added as mondrian/olap/QueryCanceledException.class doesn't exist.
    > [javac] mondrian\olap\QueryTimeoutException.java added as mondrian/olap/QueryTimeoutException.class doesn't exist.
    > [javac] mondrian\olap\ResourceLimitExceededException.java added as mondrian/olap/ResourceLimitExceededException.class doesn't exist.
    > [javac] mondrian\olap\ResultLimitExceededException.java added as mondrian/olap/ResultLimitExceededException.class doesn't exist.
    > [javac] Compiling 7 source files to C:\Work\thirdparty\mondrian_perforce\open\mondrian\classes
    > [javac] Using modern compiler
    > dropping C:\Work\tools\apache-ant-1.6.2\lib\optional.jar from path as it doesn't exist
    > [javac] Compilation arguments:
    > [javac] '-d'
    > [javac] 'C:\Work\thirdparty\mondrian_perforce\open\mondrian\classes'
    > [javac] '-classpath'
    > [javac] 'C:\Work\thirdparty\mondrian_perforce\open\mondrian\classes;C:\Work\thirdparty\mondrian_perforce\open\mondrian\lib\servlet-api.jar;C:\Work
    > \thirdparty\mondrian_perforce\open\mondrian\lib\jsp-api.jar;C:\Work\thirdparty\mondrian_perforce\open\mondrian\lib\commons-dbcp.jar;C:\Work\thirdparty
    > \mondrian_perforce\open\mondrian\lib\commons-collections.jar;C:\Work\thirdparty\mondrian_perforce\open\mondrian\lib\commons-logging.jar;C:\Work\thirdp
    > arty\mondrian_perforce\open\mondrian\lib\commons-math.jar;C:\Work\thirdparty\mondrian_perforce\open\mondrian\lib\commons-pool.jar;C:\Work\thirdparty\m
    > ondrian_perforce\open\mondrian\lib\commons-vfs.jar;C:\Work\thirdparty\mondrian_perforce\open\mondrian\lib\eigenbase-properties.jar;C:\Work\thirdparty\
    > mondrian_perforce\open\mondrian\lib\eigenbase-resgen.jar;C:\Work\thirdparty\mondrian_perforce\open\mondrian\lib\eigenbase-xom.jar;C:\Work\thirdparty\m
    > ondrian_perforce\open\mondrian\lib\javacup.jar;C:\Work\thirdparty\mondrian_perforce\open\mondrian\lib\log4j.jar;C:\Work\thirdparty\mondrian_perforce\o
    > pen\mondrian\lib\olap4j.jar;C:\Work\thirdparty\mondrian_perforce\open\mondrian\lib\xalan.jar;C:\Work\thirdparty\mondrian_perforce\open\mondrian\lib\xe
    > rcesImpl.jar;C:\Work\thirdparty\mondrian_perforce\open\mondrian;C:\Program Files\Java\jdk1.6.0_26\lib\tools.jar;C:\Program Files\Java\jre6\lib\ext\QTJ
    > ava.zip;C:\Work\tools\apache-ant-1.6.2\lib\ant.jar;C:\Work\thirdparty\mondrian_perforce\open\mondrian\workbench\plugins\kettle-dbdialog.jar;C:\Work\th
    > irdparty\mondrian_perforce\open\mondrian\workbench\plugins\kettle-core.jar;C:\Work\thirdparty\mondrian_perforce\open\mondrian\workbench\plugins\kettle
    > -db.jar;C:\Work\thirdparty\mondrian_perforce\open\mondrian\workbench\plugins\kettle-engine.jar;C:\Work\thirdparty\mondrian_perforce\open\mondrian\work
    > bench\plugins\pentaho-xul-core.jar;C:\Work\thirdparty\mondrian_perforce\open\mondrian\workbench\plugins\pentaho-xul-swing.jar;C:\Work\thirdparty\mondr
    > ian_perforce\open\mondrian\workbench\plugins\commons-io.jar'
    > [javac] '-sourcepath'
    > [javac] 'C:\Work\thirdparty\mondrian_perforce\open\mondrian\src\main'
    > [javac] '-g'
    > [javac] '-source'
    > [javac] '1.5'
    > [javac]
    > [javac] The ' characters around the executable and arguments are
    > [javac] not part of the command.
    > [javac] Files to be compiled:
    > [javac] C:\Work\thirdparty\mondrian_perforce\open\mondrian\src\main\mondrian\olap\InvalidHierarchyException.java
    > [javac] C:\Work\thirdparty\mondrian_perforce\open\mondrian\src\main\mondrian\olap\MondrianException.java
    > [javac] C:\Work\thirdparty\mondrian_perforce\open\mondrian\src\main\mondrian\olap\NativeEvaluationUnsupportedException.java
    > [javac] C:\Work\thirdparty\mondrian_perforce\open\mondrian\src\main\mondrian\olap\QueryCanceledException.java
    > [javac] C:\Work\thirdparty\mondrian_perforce\open\mondrian\src\main\mondrian\olap\QueryTimeoutException.java
    > [javac] C:\Work\thirdparty\mondrian_perforce\open\mondrian\src\main\mondrian\olap\ResourceLimitExceededException.java
    > [javac] C:\Work\thirdparty\mondrian_perforce\open\mondrian\src\main\mondrian\olap\ResultLimitExceededException.java
    >
    > BUILD FAILED
    > C:\Work\thirdparty\mondrian_perforce\open\mondrian\build.xml:476: Error starting modern compiler
    > at org.apache.tools.ant.taskdefs.compilers.Javac13.execute(Javac13.java:63)
    > at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:936)
    > at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:758)
    > at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
    > at org.apache.tools.ant.Task.perform(Task.java:364)
    > at org.apache.tools.ant.Target.execute(Target.java:341)
    > at org.apache.tools.ant.Target.performTasks(Target.java:369)
    > at org.apache.tools.ant.Project.executeTarget(Project.java:1214)
    > at org.apache.tools.ant.Project.executeTargets(Project.java:1062)
    > at org.apache.tools.ant.Main.runBuild(Main.java:673)
    > at org.apache.tools.ant.Main.startAnt(Main.java:188)
    > at org.apache.tools.ant.launch.Launcher.run(Launcher.java:196)
    > at org.apache.tools.ant.launch.Launcher.main(Launcher.java:55)
    > Caused by: java.lang.reflect.InvocationTargetException
    > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    > at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    > at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    > at java.lang.reflect.Method.invoke(Method.java:592)
    > at org.apache.tools.ant.taskdefs.compilers.Javac13.execute(Javac13.java:55)
    > ... 12 more
    > Caused by: java.lang.NoClassDefFoundError: javax/tools/StandardJavaFileManager
    > at java.lang.ClassLoader.defineClass1(Native Method)
    > at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
    > at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
    > at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
    > at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
    > at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
    > at java.security.AccessController.doPrivileged(Native Method)
    > at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    > at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    > at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
    > at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
    > at com.sun.tools.javac.main.Main.compile(Main.java:269)
    > at com.sun.tools.javac.Main.compile(Main.java:69)
    > ... 17 more
    > --- Nested Exception ---
    > java.lang.reflect.InvocationTargetException
    > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    > at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    > at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    > at java.lang.reflect.Method.invoke(Method.java:592)
    > at org.apache.tools.ant.taskdefs.compilers.Javac13.execute(Javac13.java:55)
    > at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:936)
    > at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:758)
    > at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
    > at org.apache.tools.ant.Task.perform(Task.java:364)
    > at org.apache.tools.ant.Target.execute(Target.java:341)
    > at org.apache.tools.ant.Target.performTasks(Target.java:369)
    > at org.apache.tools.ant.Project.executeTarget(Project.java:1214)
    > at org.apache.tools.ant.Project.executeTargets(Project.java:1062)
    > at org.apache.tools.ant.Main.runBuild(Main.java:673)
    > at org.apache.tools.ant.Main.startAnt(Main.java:188)
    > at org.apache.tools.ant.launch.Launcher.run(Launcher.java:196)
    > at org.apache.tools.ant.launch.Launcher.main(Launcher.java:55)
    > Caused by: java.lang.NoClassDefFoundError: javax/tools/StandardJavaFileManager
    > at java.lang.ClassLoader.defineClass1(Native Method)
    > at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
    > at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
    > at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
    > at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
    > at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
    > at java.security.AccessController.doPrivileged(Native Method)
    > at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    > at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    > at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
    > at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
    > at com.sun.tools.javac.main.Main.compile(Main.java:269)
    > at com.sun.tools.javac.Main.compile(Main.java:69)
    > ... 17 more
    >
    >
    > _______________________________________________
    > Mondrian mailing list
    > Mondrian (AT) pentaho (DOT) org
    > http://lists.pentaho.org/mailman/listinfo/mondrian
    >
    >
    > _______________________________________________
    > Mondrian mailing list
    > Mondrian (AT) pentaho (DOT) org
    > http://lists.pentaho.org/mailman/listinfo/mondrian



    _______________________________________________
    Mondrian mailing list
    Mondrian (AT) pentaho (DOT) org
    http://lists.pentaho.org/mailman/listinfo/mondrian

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.