Hi Martin,
I am also trying to get your template up and working on my machine. I do not use git so I downloaded the zip files directly. I'm on a Windoze machine. I was able to successfully clean and install junit4runner, but then I am hitting what to me is a very strange error when building the neo4j resources. However, I am a complete Maven newbie, so it might simply be something I'm not understanding, or it may be that I did not unzip the source files into the correct directories. I have a main directory (neo-scala-stuff : - ) and then i have teigen-scalatest-junit4runner, ept-neo4j-resources, and ept-neo4j-scala-template as directories under that. Is that a reasonable structure? The error I am getting is "java.lang.NoClassDefFoundError: and" Do you have a class named "and" in this? I admit i have not looked through all the classes and I certainly at this time don't understand Scala that well, but this seems like an unusual class name. Is this something with Maven? Any thoughts or pointers would be appreciated, and I apologize in advance if this is some boneheaded newbie thing I'm doing. I've been programming in Java (and Groovy/Grails) for a while, but I'm tackling two new technologies here with Scala and Maven. Regards, doug the output listing is: C:\apps\neo-scala-stuff\ept-neo4j-resources>mvn clean install [INFO] Scanning for projects... [INFO] ----------------------------------------------------------------------- - [INFO] Building neo4j-resources [INFO] task-segment: [clean, install] [INFO] ----------------------------------------------------------------------- - [INFO] [clean:clean] [INFO] Deleting directory C:\apps\neo-scala-stuff\ept-neo4j-resources\target [INFO] [resources:resources] [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] skip non existing resourceDirectory C:\apps\neo-scala-stuff\ept-neo4j-resources\src\main\resources [INFO] [scala:add-source {execution: scala-compile-first}] [INFO] Add Source directory: C:\apps\neo-scala-stuff\ept-neo4j-resources\src\main\scala [INFO] Add Test Source directory: C:\apps\neo-scala-stuff\ept-neo4j-resources\src\test\scala [INFO] [scala:compile {execution: scala-compile-first}] [INFO] Checking for multiple versions of scala [INFO] Compiling 12 source files to C:\apps\neo-scala-stuff\ept-neo4j-resources\target\classes [INFO] [compiler:compile] [INFO] Compiling 4 source files to C:\apps\neo-scala-stuff\ept-neo4j-resources\target\classes [INFO] [resources:testResources] [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 1 resource [INFO] [scala:testCompile {execution: scala-test-compile}] [INFO] Checking for multiple versions of scala [INFO] Compiling 4 source files to C:\apps\neo-scala-stuff\ept-neo4j-resources\target\test-classes [INFO] [compiler:testCompile] [INFO] Compiling 1 source file to C:\apps\neo-scala-stuff\ept-neo4j-resources\target\test-classes [INFO] [surefire:test] [INFO] Surefire report directory: C:\apps\neo-scala-stuff\ept-neo4j-resources\target\surefire-reports java.lang.NoClassDefFoundError: and Caused by: java.lang.ClassNotFoundException: and at java.net.URLClassLoader$1.run(URLClassLoader.java:200) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) Exception in thread "main" [INFO] ----------------------------------------------------------------------- - [ERROR] BUILD FAILURE [INFO] ----------------------------------------------------------------------- - > Hi Ajay, > > On 19 Jun 2009, at 18:33, Ajay Sharma wrote: >> i'v been trying to use martin's Scala implementation but as am a >> total newbie to java and its assciated tool ,could anyone just >> help me out with >> the configuration of scalatest. till now i have been able to >> install and configure JUNIT and scala. >> > > Assuming that you are working through the README file ("Building > this template" at [1]http://github.com/ept/neo4j-scala- > template/tree/master ) I guess you might be stuck at the git clone? > Sorry for not making it explicit, it assumes that you have the git > version control system <[2]http://git-scm.com/ > >> installed; if so, you should be able to type those commands at the >> > command line (without the dollar sign, that's just the Unix prompt). > > You can also get away without git (but not without maven), and > download each of the prerequisites as a zip file: > [3]http://github.com/teigen/scalatest-junit4runner/zipball/master > [4]http://github.com/ept/neo4j-resources/zipball/master > [5]http://github.com/ept/neo4j-scala-template/zipball/master > >> and martin could you please explain how to get this thing to work >> ,i want to implement this implementation adn access the Restful >> service through .NET. >> >> since java is not my field of expertise am finding it difficult >> to get all the blocks in place. >> > > In general I'm afraid that if you're unfamiliar with Java and > command- line tools, you may find Scala a bit on the tough side. In > principle there is an Eclipse plugin <[6]http://www.scala- > lang.org/node/94> which aims to give you a Visual Studio-like > experience, but it's still very buggy. The best way to develop > Scala is still via the command-line tools. > > Also, I have not tested any of this on Windows -- most developers I > know work on Mac or Linux. It ought to work, but I cannot promise > anything. > > However, Scala is a beautiful language so if you can crack it, it's > worth the effort :) > > Regards > Martin > > _______________________________________________ > Neo mailing list > User@lists.neo4j.org > [7]https://lists.neo4j.org/mailman/listinfo/user References 1. http://github.com/ept/neo4j-scala 2. http://git-scm.com/ 3. http://github.com/teigen/scalatest-junit4runner/zipball/master 4. http://github.com/ept/neo4j-resources/zipball/master 5. http://github.com/ept/neo4j-scala-template/zipball/master 6. http://www.scala/ 7. https://lists.neo4j.org/mailman/listinfo/user _______________________________________________ Neo mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user