You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lenya.apache.org by Apache Wiki <wi...@apache.org> on 2005/05/25 04:19:56 UTC

[Lenya Wiki] Update of "HowToLenyaInEclipseDebugger" by Doug Chestnut

Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Lenya Wiki" for change notification.

The following page has been changed by Doug Chestnut:
http://wiki.apache.org/lenya/HowToLenyaInEclipseDebugger

------------------------------------------------------------------------------
  ## page was renamed from LenyaInEclipseDebugger
+ = Creating a lenya Project in Eclipse =
+ ''Instructions are specific to Eclipse 3.0.2 but should be similar in other version's''
+  * Get eclipse from http://eclipse.org
+  * Install Subclipse from http://subclipse.tigris.org (see instructions for adding "New Remote Site")
+  * Get Lenya source from svn if you don't already have it (see http://lenya.apache.org/1_4/installation/subversion.html)
+  * Remove .classpath and .project from your Lenya source dist if you have already built Lenya (Apparently they fool Eclipse into thinking that a project has already been created)
+  * Open Eclipse and create a new java project
+   * file -> new project, select "Java Project" and click next
+   * check "Create project at external location" and select your lenya source dist, click next
+   * under the "Source" tab remove all build paths other than {project name}/src/java
+   * click on the "Libraries" tab, click "Add Library..."
+   * select "User Library" and click next
+   * click on "User Libraries..." button, click on "New..." button
+   * give your cocoon library a name (perhaps something like "cocoon") and click "ok"
+   * with your new library selected, click on "Add JARs..."
+   * select all of the jar files from your cocoon/build/webapp/WEB-INF/lib directory and click "open"
+   * click "ok", click "finish", click "finish" again
+   * wait while Eclipse builds your workspace (don't be surprised if you get some errors)
+   * if you got build errors in the Problems pane, make sure that jdk compliance is set to 1.4
+    * open your projects properties
+    * select "Java Compiler"
+    * check the "Use project settings" radio and then the "Compliance and Classfiles" tab
+    * be sure to uncheck "Use default compliance settings"
+    * make sure "Compiler compliance level", "Generated .class files compatibility", and "Source compatibility" are set to 1.4
+    * click "ok", your project should be re-built, hopefully you don't get any errors
+   * add svn support to your project
+   * right click on your project, select "Team"
+   * select "Share Project..."
+   * select "SVN" as the repository type and click next button, click "finish"
+ You should be ready to roll, this was my experience.  If you have other issues or hints, please add them :)
+ 
+ = Running Lenya in the Eclipse debugger =
- To run LEnya in the Eclipse debugger, open the Java perspective and choose ''Run->Run...'' and follow the steps below.
+ To run Lenya in the Eclipse debugger, open the Java perspective and choose ''Run->Run...'' and follow the steps below.
  
  == First way ==
  

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org