Anywhere you go, let me go too

關於部落格
對人海闊天空,做事仔細周密
----------------------
因為改了平台後...覺得不是很好用....所以有另外......(評估中)
http://blog.xuite.net/king119wang/myskills
  • 32543

    累積人氣

  • 2

    今日人氣

    0

    訂閱人氣

Using Java API's in .NET Applications

<題外話>
自從用了MS的IDE, 坦白說它真的比開發Java 用的IDE 快很多,而且反應快....
如果.NET framework可以出Linux版/ AIX 版.....
再加上這個工具,市場可能又會是MS的天下了....
(如果Java IDE廠商再不加把勁...10年內可能....)
------------------------------------------------------------------------------------------- 

引用自: http://www.ikvm.net/devguide/net2java.html

 This section discusses information of interest to developers who want to use Java API's in their .NET applications.

Overview

IKVM makes it possible to develop .NET applications that use Java API's. Here's how to proceed:

  1. IKVM comes with an implementation of the Java class libraries in .NET. To use those API's, simply add a reference to IKVM.OpenJDK.ClassLibrary.dll to your Mono / .NET IDE project.
  2. To use other Java API's, you can take one of the following approaches:
    • Convert the Java API to .NET CIL using ikvmc. This produces a .NET dll that you can reference in your project.
    • Use the Java reflection API's to dynamically load and execute the Java bytecode using the IKVM bytecode interpreter. For example, your application can load Java bytecode over a network connection and execute it dynamically.

Java / .NET Interoperability Issues

When calling Java API's from a .NET language such as C#, you will need to know how to deal with the gap between the .NET and Java object models. For example, Java and .NET both have their own String class, primitive wrapper classes, exception hierarchy, and so on. Eventually, that information will be included in this manual. For now, you can use the following as resources:

  • The IKVM WebLog has several helpful entries. The series from February 29 - March 10 describe the object model.
  • The hodgepodge sample in the sample distribution is a simple demonstration of using Java API's from a C# application.
  • The IKVM source code is the ultimate reference, of course.
.....
相簿設定
標籤設定
相簿狀態