Note that there are some explanatory texts on larger screens.

plurals
  1. POSetting up a Scala Lift project in Eclipse
    primarykey
    data
    text
    <p>I'm trying to set up my first scala lift project in Eclipse and it is Not Simple (TM).</p> <p>What I have done is set up the project trough Maven with the following</p> <pre><code>mvn archetype:generate -U \ -DarchetypeGroupId=net.liftweb \ -DarchetypeArtifactId=lift-archetype-basic_2.9.1 \ -DarchetypeVersion=2.4-SNAPSHOT \ -DarchetypeRepository=http://scala-tools.org/repo-releases \ -DgroupId=demo.helloworld -DartifactId=helloworld -Dversion=1.0-SNAPSHOT </code></pre> <p>I then created an eclipse project from this with <code>mvn eclipse:eclipse</code> (because it's hellish to figure out all the dependencies, and add them all to the build path manually)</p> <p>The project then conflicts with the installed Scala version. So I removed the three existing references to scalalang from the buildpath, and added my own scala to the buildpath. I'm using scala 2.9.0.</p> <p>Now the project can be built, but when I try to run RunWebApp, an exception is thrown:</p> <pre><code>Exception in thread "main" java.lang.NoClassDefFoundError: RunWebApp Caused by: java.lang.ClassNotFoundException: RunWebApp 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: RunWebApp. Program will exit. </code></pre> <p>I'm aware of the answer on <a href="https://stackoverflow.com/questions/3245715/scala-lift-project-in-eclipse-scala-ide-errors">Scala-Lift project in Eclipse Scala IDE errors</a> suggesting to ask the question on <a href="http://groups.google.com/group/scala-ide-user" rel="nofollow noreferrer">http://groups.google.com/group/scala-ide-user</a> yet I hoped someone here could point me to the answer in a way someone else with the same problem might find the answer too</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload