AnsweredAssumed Answered

Running SimpleExampleWithContent

Question asked by samualjohnsson on Jun 9, 2006
What environment do I have to set up to be able to run the SimpleExampleWithContent?
I built the files using the Ant build.  The web client using that build runs OK.  But now I would like to run some of the test scripts. 
Some of the JUnit tests are running, although I am getting an error with the ISODate.
I would really like the SimpleExampleWithContent to run to experiment with.  This is what I'm doing, but the classpath is probably not right.

C:\alfresco\HEAD\root\projects\repository\build\classes\org\alfresco\example>java SimpleExampleWithContent
Exception in thread "main" java.lang.NoClassDefFoundError: SimpleExampleWithCont
ent (wrong name: org/alfresco/example/SimpleExampleWithContent)
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClass(Unknown Source)
        at java.security.SecureClassLoader.defineClass(Unknown Source)
        at java.net.URLClassLoader.defineClass(Unknown Source)
        at java.net.URLClassLoader.access$100(Unknown Source)
        at java.net.URLClassLoader$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClassInternal(Unknown Source)

Outcomes