First they ignore you
          then they ridicule you
          then they fight you
          then you win
              -- Mahatma Gandhi
          Chinese => English     英文 => 中文             
          隨筆-221  評論-1047  文章-0  trackbacks-0

          Groovy running fine on .NET

          It's just a crazy idea to test Groovy on .NET, after I read this post on IKVM weblog that the author test IKVM using JRuby. If JRuby runs fine, probably Groovy does so.

          Simple steps here,

          1. Download .NET 2.0 Runtime.
          2. Download SharpDevelop IDE 2.1, just in case that you're lazy enough to code.
          3. Download IKVM for .NET 0.34 rc2 binary
          4. compile your Groovy jar with the following command:

          ikvmc -target:library groovy-all-1.1-SNAPSHOT.jar

          Some errors will appear, just ignore them.
          You'll get groovy-all-1.1-SNAPSHOT.dll.

          5. Open SharpDevelop, create a new .NET console application.
          6. Add references, all IKVM DLLs and your groovy DLL.
          7. Open your main class, type the following code (in C# for example)
          using System;
          using System.Collections.Generic;

          namespace GroovyDotNet {
          class MainClass {
          public static void Main(string[] args) {
          groovy.ui.InteractiveShell.main(args);
          }
          }
          }

          8. Run the program, and you'll also have an executable file as well.

          Alright, if you don't want to get your hand dirty, do step 1 and wait for the binary. I'll upload it soon.



          and here's the binary.

          原文地址:http://chanwit.blogspot.com/2007/04/groovy-running-fine-on-net.html
          附:FAQ —— Groovy & Grails
          posted on 2007-04-28 17:20 山風小子 閱讀(802) 評論(0)  編輯  收藏 所屬分類: Groovy & Grails
          主站蜘蛛池模板: 客服| 洛宁县| 台前县| 银川市| 阳东县| 阳春市| 九寨沟县| 石门县| 巢湖市| 乐东| 大丰市| 平阳县| 四川省| 铁岭县| 德惠市| 西宁市| 格尔木市| 靖远县| 根河市| 崇礼县| 屯门区| 库尔勒市| 尖扎县| 吴旗县| 益阳市| 阜城县| 灵台县| 上林县| 锡林郭勒盟| 大田县| 搜索| 沂源县| 榕江县| 保定市| 新龙县| 南宫市| 蛟河市| 贵溪市| 江达县| 社会| 容城县|