Hitachi Vantara Pentaho Community Forums
Results 1 to 2 of 2

Thread: mondrian.olap4j.Driver

  1. #1
    Join Date
    Apr 2008
    Posts
    18

    Default mondrian.olap4j.Driver

    Hello,

    I want connect to mondrian over olap4j from mz java application. For this reason I have include olap4j.jar and mondrian.jar on mz classpath.

    I get a ClassDefNotFoundException: mondrian.olap4j.Driver

    in the line

    Class.forName("mondrian.olap4j.Driver");

    I have watch in the mondrian.jar and there is no class with this name.

    Where is this class?

    Best regards
    cakbulut

  2. #2
    Join Date
    Nov 1999
    Posts
    1,618

    Default

    The driver class is MondrianOlap4jDriver. You should write

    Class.forName("mondrian.olap4j.MondrianOlap4jDriver");
    I know there are one or two examples out there with an incorrect driver name. Sorry about that.

    Also, if you are using JDK 1.6 or later and mondrian 3.0.3 or later, you don't need that line; the JDBC infrastructure will load the driver automatically.

    Julian

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.