LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 06-12-2005, 05:08 AM   #1
zakidad
LQ Newbie
 
Registered: Aug 2004
Location: Serdang
Distribution: none
Posts: 26

Rep: Reputation: 15
Mondrian OLAP+JAVA: whats wrong with my command line?


Hi. I try to use this command line to execute the mondrianfoodmartloader utility but failed. does anyone know whats wrong with my command?

java -cp "/opt/mondrian-1.1.5/lib/mondrian.jar:/opt/mondrian-1.1.5/lib/log4j-1.2.9.jar:/opt/mondrian-1.1.5/lib/eigenbase-xom.jar:/opt/mondrian-1.1.5/lib/eigenbase-resgen.jar:/opt/mysql-connector-java-3.1.8/mysql-connector-java-3.1.8-bin.jar" opt.mondrian-1.1.5.lib.mondrian.test.loader.MondrianFoodMartLoader -verbos -tables -data -indexes rs=com.mysql.jd bc.Driver -inputFile=/opt/mondrian-1.1.5/demo/FoodMartCreateData.sql -outputJdbc URL="jdbc:mysql://localhost/foodmar?user=root&password= "

________
Appriciate any help and Thanks so much.
 
Old 06-13-2005, 01:29 AM   #2
Mohsen
Member
 
Registered: Feb 2003
Location: Iran
Distribution: Solaris 10
Posts: 201

Rep: Reputation: 30
What does it say?
 
Old 06-13-2005, 07:55 PM   #3
zakidad
LQ Newbie
 
Registered: Aug 2004
Location: Serdang
Distribution: none
Posts: 26

Original Poster
Rep: Reputation: 15
the output is

The error massege shown here;

Exception in thread "main" java.lang.NoClassDefFoundError: opt.mondrian-1.1.5.test.loader.MondrianFoodLoader.class
at gnu.gcj.runtime.FirstThread.run() (/usr/lib/libgcj.so.5.0.0)
at _Jv_ThreadRun(java.lang.Thread) (/usr/lib/libgcj.so.5.0.0)
at _Jv_RunMain(java.lang.Class, byte const, int, byte const, boolean) (/usr/lib/libgcj.so.5.0.0)
at __gcj_personality_v0 (/opt/mondrian-1.1.5/java.home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre)
at __libc_start_main (/lib/tls/libc-2.3.3.so)
at _Jv_RegisterClasses (/opt/mondrian-1.1.5/java.home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre)

some say my error is in my command line, and my classpath. Can you help me clarify what is the source of the problem?
Thanks for your reply.
 
Old 06-13-2005, 10:46 PM   #4
Mohsen
Member
 
Registered: Feb 2003
Location: Iran
Distribution: Solaris 10
Posts: 201

Rep: Reputation: 30
instead of `opt.mondrian-1.1.5.lib.mondrian.test.loader.MondrianFoodMartLoader', put `mondrian.test.loader.MondrianFoodMartLoader'.
This is a common error occurs when either JVM can not find the given class. You should refer to your classes as you set classpath (-cp is classpath here). When you set "/opt/mondrian-1.1.5/lib/mondrian.jar" as a jar file in your classpath, you should refer to its classes based on the top package of mondrian.jar (which is mondrian here). If it is not clear, try to unzip mondrian.jar (jar is a zip file in fact) and see the packaging style (package=folder=directory)
 
Old 06-14-2005, 03:40 AM   #5
zakidad
LQ Newbie
 
Registered: Aug 2004
Location: Serdang
Distribution: none
Posts: 26

Original Poster
Rep: Reputation: 15
Thanks Mohsen.
It works..so it has something to do with the packaging style of the mondrian.jar file and my lack of understanding of how .jar files works I guess. Top package of the mondrian.jar (which is mondrian). That explained. Correct me if I'm wrong. Thank you so much again and if you have a piece of advice for me when dealing with JAVA environment in the future, I'm glad to here it. However there's other problem that has to do with mondrian utility itself and not involving java at this time. Solution is now in progress.
Bye.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
OLAP Mondrian On fedora 3 zakidad Linux - Software 4 11-23-2009 12:54 AM
Whats wrong with this line of fstab Boffy Linux - General 4 02-25-2005 04:32 PM
java - how do you input from the command line zeviddalop Programming 4 11-10-2004 11:59 AM
MEncoder: Whats wrong with this command? flamesrock Linux - Software 1 07-15-2004 07:03 PM
wrong refresh rate in command line mode? Meta42 Mandriva 2 03-19-2004 07:13 AM


All times are GMT -5. The time now is 05:21 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration