[Mondrian] [MondrianFoodMartLoader] java.lang.NoClassDefFoundError

Yanis Guenane yg at cassini-solutions.com
Thu Oct 28 06:04:42 EDT 2010


Alright,

My bad, I thought I had to give it the path, if not I didn't know how it was
going to find it. Someone at word did explain me why.

Thanks again for your answers Julian it does work now.

On Thu, Oct 28, 2010 at 2:46 AM, Julian Hyde <jhyde at pentaho.com> wrote:

>  Change
>
>
> /home/postgres/Apps/Mondrian/mondrian-3.2.0.13583/testsrc/main/mondrian/test/loader/MondrianFoodMartLoader.java
>
> to
>
> mondrian.test.loader.MondrianFoodMartLoader
>
> See http://mondrian.pentaho.com/documentation/installation.php and in
> bin/loadFoodMart.sh if you need more example command lines.
>
> Julian
>
>  ------------------------------
> *From:* Yanis Guenane [mailto:yg at cassini-solutions.com]
> *Sent:* Thursday, October 28, 2010 2:40 AM
> *To:* jhyde at pentaho.com; Mondrian developer mailing list
> *Subject:* Re: [Mondrian] [MondrianFoodMartLoader]
> java.lang.NoClassDefFoundError
>
> Thanks Julian for the answer,
>
> But it did not work. Even after the change, I still get the same error.
>
> Any other idea ?
>
> Thanks anyway,
>
> On Thu, Oct 28, 2010 at 2:28 AM, Julian Hyde <jhyde at pentaho.com> wrote:
>
>>  Change
>>
>> MondrianFoodMartLoader.java
>>
>> to
>>
>> MondrianFoodMartLoader
>>
>> and it should work.
>>
>> Julian
>>
>>  ------------------------------
>> *From:* mondrian-bounces at pentaho.org [mailto:mondrian-bounces at pentaho.org]
>> *On Behalf Of *Yanis Guenane
>> *Sent:* Thursday, October 28, 2010 1:01 AM
>> *To:* Mondrian developer mailing list
>> *Subject:* [Mondrian] [MondrianFoodMartLoader]
>> java.lang.NoClassDefFoundError
>>
>>   Hi guys !
>>
>> Second day of Mondrian installation.
>> Now I am facing problems trying to feed the mart.
>>
>> I could read several post about user getting the same problem but most of
>> the post were out dated (2006-2007).
>>
>> This is my command line (it's a one line command)
>>
>>  java -cp
>>> "/home/postgres/Apps/Mondrian/mondrian-3.2.0.13583/lib/log4j.jar:/home/postgres/Apps/Mondrian/mondrian-3.2.0.13583/lib/eigenbase-xom.jar:/home/postgres/Apps/Mondrian/mondrian-3.2.0.13583/lib/eigenbase-resgen.jar:/home/postgres/Apps/Mondrian/mondrian-3.2.0.13583/lib/eigenbase-properties.jar:/home/postgres/Apps/Mondrian/mondrian-3.2.0.13583/lib/postgresql-8.4-702.jdbc4.jar:/home/postgres/Apps/Mondrian/mondrian-3.2.0.13583/lib/mondrian.jar" /home/postgres/Apps/Mondrian/mondrian-3.2.0.13583/testsrc/main/mondrian/test/loader/MondrianFoodMartLoader.java
>>> -verbose -tables -data -indexes -jdbcDrivers=com.postgresql.jdbc.Driver
>>> -inputFile=/home/postgres/Apps/Mondrian/mondrian-3.2.0.13583/demo/FoodMartCreateData.sql
>>> -outputJdbcURL="jdbc:postgresql://localhost/foodmart?user=postgres&password=xxx""
>>
>>
>> There is the error I am getting
>>
>>  Exception in thread "main" java.lang.NoClassDefFoundError:
>>> MondrianFoodMartLoader/java
>>
>> Caused by: java.lang.ClassNotFoundException: MondrianFoodMartLoader.java
>>
>>         at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
>>
>>         at java.security.AccessController.doPrivileged(Native Method)
>>
>>         at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
>>
>>         at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
>>
>>         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
>>
>>         at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
>>
>> Could not find the main class: MondrianFoodMartLoader.java. Program will
>>> exit.
>>
>>
>> Does someone has an idea of the why ?
>> --
>> *Yanis Guenane*
>> *Cassini Solutions** *
>> *BI Developer*
>> 5 rue Sextius Michel
>> 75015, Paris, FRANCE
>>
>> Phone : (+33)1.71.19.45.33
>> E-mail  : yg at cassini-solutions.com
>>
>>
>> _______________________________________________
>> Mondrian mailing list
>> Mondrian at pentaho.org
>> http://lists.pentaho.org/mailman/listinfo/mondrian
>>
>>
>
>
> --
> *Yanis Guenane*
> *Cassini Solutions** *
> *BI Developer*
> 5 rue Sextius Michel
> 75015, Paris, FRANCE
>
> Phone : (+33)1.71.19.45.33
> E-mail  : yg at cassini-solutions.com
>
>


-- 
*Yanis Guenane*
*Cassini Solutions** *
*BI Developer*
5 rue Sextius Michel
75015, Paris, FRANCE

Phone : (+33)1.71.19.45.33
E-mail  : yg at cassini-solutions.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.pentaho.org/pipermail/mondrian/attachments/20101028/1f1cd203/attachment.html 


More information about the Mondrian mailing list