简体   繁体   English

在Java中执行C#脚本

[英]Executing C# Script in Java

I have a little C# script that I created that gets some system information. 我创建了一个小的C#脚本,该脚本获取了一些系统信息。 I was wondering if there is a way to use the C# script without creating an exe and running the exe from it. 我想知道是否有一种方法可以使用C#脚本而无需创建exe并从中运行exe。 I have it setup so it will pull information from executing the exe but I would like something a little more generic and doesn't rely so much on the exe but on the C# script itself. 我已经安装了它,因此它将从执行exe中提取信息,但是我想要一些通用的东西,并且它并不太依赖exe,而是依赖C#脚本本身。

Take a look at http://www.ikvm.net/ . 看看http://www.ikvm.net/

IKVM.NET is an implementation of Java for Mono and the Microsoft .NET Framework. IKVM.NET是Java for Mono和Microsoft .NET Framework的实现。 It includes the following components: 它包括以下组件:

A Java Virtual Machine implemented in .NET
A .NET implementation of the Java class libraries
Tools that enable Java and .NET interoperability

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM