This is to do with the last couple lines of the gora bash script. It specifies that we should be adding classes to classpath from /build, where I've been producing /target directories :0|
I don't think there even is a maven lifecycle command that creates build directory from install, compile... do we need to commit a change for this? On Fri, Mar 2, 2012 at 4:50 PM, Lewis John Mcgibbney < [email protected]> wrote: > Hi, > > Working with trunk, from $GORA_HOME > > mvn clean install -DskipTests (because of HBase one's) > > $bin/gora > > lewis@lewis-01:~/ASF/gora-test$ bin/gora > Usage: run COMMAND [COMMAND options] > where COMMAND is one of: > compile Run Compiler > specificcompiler Run Avro Specific Compiler > logmanager Run the tutorial log manager > loganalytics Run the tutorial log analytics > junit Run the given JUnit test > or > MODULE CLASSNAME run the class named CLASSNAME in module MODULE > Most commands print help when invoked w/o parameters. > > OK so far, > > lewis@lewis-01:~/ASF/gora-test$ bin/gora compile > Exception in thread "main" java.lang.NoClassDefFoundError: > org/apache/gora/compiler/GoraCompiler > Caused by: java.lang.ClassNotFoundException: > org.apache.gora.compiler.GoraCompiler > at java.net.URLClassLoader$1.run(URLClassLoader.java:202) > at java.security.AccessController.doPrivileged(Native Method) > at java.net.URLClassLoader.findClass(URLClassLoader.java:190) > at java.lang.ClassLoader.loadClass(ClassLoader.java:307) > at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) > at java.lang.ClassLoader.loadClass(ClassLoader.java:248) > Could not find the main class: org.apache.gora.compiler.GoraCompiler. > Program will exit. > > Same with logmanager and loganalytics bascially the gora classes. > The avro specificcompiler gives me another stack trace, however thisis > because specificcompiler doesn't have a main method. > Junit gives me the expected TestRunner output. > > What's wrong here? > > > > -- > *Lewis* > > -- *Lewis*

