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 山風小子 閱讀(796) 評論(0)  編輯  收藏 所屬分類: Groovy & Grails
          主站蜘蛛池模板: 博罗县| 余庆县| 奈曼旗| 沁源县| 扎赉特旗| 平远县| 余庆县| 澎湖县| 洱源县| 满洲里市| 拜城县| 华坪县| 上犹县| 阿瓦提县| 陇南市| 兰考县| 武功县| 乌海市| 乐陵市| 云阳县| 仪陇县| 兴仁县| 大田县| 横峰县| 高邮市| 杭州市| 裕民县| 贡觉县| 灯塔市| 准格尔旗| 肥西县| 澎湖县| 乐安县| 贡嘎县| 江阴市| 广昌县| 临沂市| 黔江区| 财经| 宁都县| 吉水县|