我如何在Java中运行WPF应用程序 [英] how can i run wpf application in java

查看:95
本文介绍了我如何在Java中运行WPF应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我开发了一个包含两个解决方案的项目.
一个是后端,它包含实体层,业务层,数据访问层等.
另一个用于使用wpf xaml文件进行演示.
我也需要在MAC OS中运行相同的程序.因此,请任何人能建议我如何实现这一目标. java中有任何方法.

I have developed one project which contains two solutions.
one is for back end , which contains entities layer , business layer, data access layer etc..
another one is for presentation using wpf xaml files.
i need run the same in MAC OS also. So please can any one suggest me how can i achieve this. is there any way in java.

推荐答案

如果用Java来表示Java机器,则不能用Java运行WPF应用程序".如果要使用Java开发.NET应用程序,则可以.

Java for .NET的一种实现是IKVM.NET,请参见 http://www.ikvm.net/ [ http://www.janetdev.org/ [ http://msdn.microsoft.com/en-us/vjsharp/bb188593 [ ^ ].我现在不知道该产品的状态;如果您有兴趣,请了解一下.

在此处查看CLI语言列表: http://en.wikipedia.org/wiki/.NET_language [ ^ ].

—SA
You cannot "run WPF application in Java" if by Java you mean Java machine. If you want to develop .NET applications using Java, it''s possible.

One implementation of Java for .NET is IKVM.NET, see http://www.ikvm.net/[^].

Another product is Ja.NET, see http://www.janetdev.org/[^].

Also, Microsoft use to bundle Visual Studio (2005) with J# — a .NET language with Java syntax, see http://msdn.microsoft.com/en-us/vjsharp/bb188593[^]. I don''t know what is the status of this product right now; please find out yourself if you''re interested.

Look at the list of CLI languages here: http://en.wikipedia.org/wiki/.NET_languages[^].

—SA


为什么要使用JAVA?那是.Net的东西.

使用.net演示它-应该是猴子的工作!
Why do you want to use JAVA? that''s .Net stuff.

Use .net to present it - should be a monkey''s job to do that!


没有办法在Java中运行.Net应用程序.
两者都在不同的运行时引擎上运行.
No there is no way to run .Net applications in Java.
Both run on different runtime engines.


这篇关于我如何在Java中运行WPF应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆