首页 > 其他分享 >Getting Started with Eclipse and Counterclockwise

Getting Started with Eclipse and Counterclockwise

时间:2023-07-03 16:37:57浏览次数:47  
标签:Hit Install Started Eclipse labrepl Counterclockwise Clojure software


http://dev.clojure.org/display/doc/Getting+Started+with+Eclipse+and+Counterclockwise

Go to start of metadata



 



  • Install Eclipse (If you do not have Eclipse installed, or you want to make isolated tests of the Clojure plugin for Eclipse)
  • Grab the Eclipse ZIP file from http://www.eclipse.org/downloads . If you do not know which "package" to get, pick the "Eclipse IDE for Java Developers" one since it ships out of the box with Git support
  • Unzip it somewhere. The executable is eclipse (linux) or eclipse.exe (windows) located in the eclipse/ directory created by the unzip operation
  • The first time Eclipse is run, it will ask you for a location on your disk where eclipse will put its metadata and will create new projects by default.
  • Install Counterclockwise (the Clojure plugin for Eclipse)
  • You install it via the “software update center”, that is:
  • Menu Help > Install new software…
  • Paste the following Counterclockwise url in the “Work with:” textbox: http://ccw.cgrand.net/updatesite/
  • Hit Enter
  • Select counterclockwise, verify the “Contact all update sites during …” chekbox is checked, click next, accept licence, etc., restart Eclipse
  • Go to menu Window > Reset Perspective ... this will reset the way the views are layout, and also and and place correctly the views contributed by counterclockwise (for now - July 2010 -, the Namespace Browser viewer, placed "behind" the code outline view)
  • Create and run a simple Clojure project (Hello World)
  • Open the Java perspective: Window > Open Perspective > Java (a perspective is a predefined layout of views, suitable for a particular type of development)
  • Create a Clojure project: File > New > Project... > Clojure Project, name it firstClojureProject
  • Create a Clojure source code file in the src/ directory: File > New > File, twist down firstClojureProject in the file creation wizard and select "src" as the ** the parent folder, and name the file helloworld.clj
  • Type code in it to define a function: (defn hello [who] (str "Hello " who " !")) (leave the (ns helloworld) call at the beginning of the file), save the file
  • Run it: Select the firstClojureProject>src>helloworld.clj file, then menu Run > Run as > Clojure REPL. this evaluates the code and starts a REPL
  • Call your function (Hit Ctrl+Enter to send the expression to the REPL server):

    > 1:1 helloworld=> (hello "Betty") [Ctrl+Enter] > "Hello Betty !"

Installing and running the labrepl environment for learning Clojure

  • If you have installed the "Eclipse IDE for Java Developers" package, you can skip the "Install EGit" and "Install m2e" following steps, since your package already ships with those "Eclipse Features"
  • Install EGit, Git support in Eclipse (optional if you already use another git client)
  • You install it via the “software update center”, that is:
  • Menu Help > Install new software…
  • Paste the following EGit url in the “Work with:” textbox: http://download.eclipse.org/egit/updates
  • Hit Enter
  • Select “Eclipse EGit feature”, verify the “Contact all update sites during …” chekbox is checked, click next, accept licence, etc., restart Eclipse
  • Install m2e, Maven support in Eclipse
  • You install it via the “software update center”, that is:
  • Menu Help > Install new software…
  • Paste the following maven2eclipse (m2e) url in the “Work with:” textbox: http://m2eclipse.sonatype.org/sites/m2e
  • Hit Enter
  • Select Maven Integration for Eclipse, verify the “Contact all update sites during …” chekbox is checked, click next, accept licence, etc., restart Eclipse
  • Note: for Maven, you need to have a JDK installed on your computer (not just a JRE), and configure it as the JVM for use when running Eclipse. (Maven gives a warning when Maven is used.)
  • Grab labrepl from git via EGit
  • Menu File > Import … > Git > Projects From Git; Hit Next
  • URI: git://github.com/relevance/labrepl.git ; Hit Next ; Hit Next ; Check "Import as General Project" ; Hit Finish
  • Enable Clojure Support
  • Right-click the "labrepl" project in Package Explorer and choose "Enable/disable Clojure language support"
  • Run the labrepl
  • Right click on project “labrepl” in the Package Explorer
  • Run as > Clojure REPL
  • In the REPL Console:

    (require 'labrepl) (labrepl/-main)

  • Open your favorite Browser with URL localhost:8080
  • Enjoy the labs!


 

标签:Hit,Install,Started,Eclipse,labrepl,Counterclockwise,Clojure,software
From: https://blog.51cto.com/u_16174476/6612632

相关文章

  • eclipse new creation file type
    ......
  • Eclipse里web的依赖工程部署的简便方法
    用Eclipse开发项目,曾经为依赖工程的部署问题头疼过,用了MyEclipse之后就没有仔细去研究,最近研究了下,还真找到了比较简便的方法,之前都是采用Ant打jar包,copy到web工程,或者通过LinkSource,直接把依赖工程编译到web工程下边,但这样感觉总不是个长久之计,因为前者每次编译都要打包太过麻烦,......
  • eclipse
    目录离线安装windowBuilder离线安装离线安装下载地址:https://www.eclipse.org/downloads/选择自己电脑系统windowBuilder离线安装下载网址:http://eclipse.org/windowbuilder/download.php注意和eclispe版本对应下好后是.zip文件......
  • 号外!MyEclipse 2023.1.1已发布,更好支持Vue框架
    MyEclipse 2023.1.1是之前发布的2023.1.0的一个小错误修复版本,如果您已经安装了MyEclipse2023,只需检查产品中的更新(Help>CheckforUpdates…)就可以选择这个新版本。或者,下载我们更新的离线安装程序来安装2023.1.1。MyEclipsev2023.1.1离线版下载MyEclipse技术交流群:74......
  • eclipse 添加.gitignore
    eclipse创建的git工程,默认在根目录下就有.gitignore文件有的eclipse没有显示.gitignore,可以通过设置过滤来显示隐藏文件。倒三角---->filters—>不要勾选.*resources##.gitignore的作用.gitignore,属于git,用于忽略某些中间文件,比如.class,.apk,.classpath等,这样在以后的git提交中......
  • AWS Certificate SAA - Course 1 Getting started with AWS
    AWSCoulduseCasesAWSenablesyoutobuildsophisticated,scalableapplicationsApplicabletoadiversesetofindustriesUsecasesincludeEnterpriseIT,Backup&Storage,BigDataanalyticsWebsitehosting,Mobile&SocialAppsGamingAWS......
  • eclipse中使用maven插件的有关问题:Updating index central|http://repo1.maven.org/m
    eclipse中使用maven插件的问题:Updatingindexcentral|http://repo1.maven.org/maven2问题产生如下:因为单位使用了过滤,访问Internet时,超过10M的内容就拒绝。因为maven插件在初始时,需要下载Maven的index文件,这个文件比较大,有38M多,下载不成功。所以造成使用Maven添加依赖项时(AddDep......
  • TreeSaver 使用教程整理——Step 1: Getting Started
    TreeSaver介绍Treesaver是一个开源的JavaScript框架,用来创建杂志风格的网页布局。 为何要整理这个系列的文章下面的教程整理自:https://github.com/Treesaver/treesaver/wiki/Walkthrough,也许是这个框架目前才刚刚起步,它的文档很成问题,文档中一些链接不能下载,源代码中欠缺一......
  • Spring Boot系列教程一:Eclipse安装spring-tool-suite插件
    一.前言    一直使用eclipse,个人习惯选用Eclipse+spring-tool-suite进行开发,特别注意Eclipse要选用对应的spring-tool-suite进行安装,这点笔者浪费了好长时间,以下为对应的版本。eclipse-kepler.4.3.1–>springsource-tool-suite-RELEASE-e4.3.1-updatesite.zipecl......
  • Eclipse3.6 + Tomcat7 + Jdk1.6配置
     Eclipse3.6+Tomcat7+Jdk1.6配置管理Eclipse上的tomcat的插件SysdeoEclipseTomcatLauncherpluginhttp://www.eclipsetotale.com/tomcatPlugin.html-----正文开始----一直以来都是很容易的将eclipse与tomcat结合使用,但是最近想试用tomcat7的时候,却突然发现eclipse将web服务......