Hitachi Vantara Pentaho Community Forums
Results 1 to 2 of 2

Thread: About API

  1. #1
    Join Date
    Sep 2003

    Default About API

    I tried to write an example to use API. The code can pass compile. However, the example can not run.
    code as follows:
    import mondrian.olap.*;
    public class test{
    public static void main( String args[] )
    Connection connection = DriverManager.getConnection(
    "Provider=mondrian;" +
    "Jdbc=jdbcdbc:MondrianFoodMart;" +
    I type the command as follows:
    "java -classpath mondrian.jar test"
    the error is "Exception in thread "main" java.lang.NoClassDefFoundError: test"

  2. #2
    Join Date
    Nov 1999

    Default RE: About API

    This is nothing to do with mondrian. You would have the same problem if you just tried to print 'hello world'.
    You need to compile your program, then include the classes directory that you compiled it to in your classpath, e.g. '-classpath mondrian.jar;classes'.

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.