672329 members! Sign up to stay informed.

Sponsored Links


Resources

Enterprise Java
Research Library

Get Java white papers, product information, case studies and webcasts

News News News Messages: 8 Messages: 8 Messages: 8 Printer friendly Printer friendly Printer friendly Post reply Post reply Post reply XML XML XML

An Introduction to IKVM: Java on .NET

Posted by: Dion Almaer on August 19, 2004 DIGG
IKVM can be described as a Java Virtual Machine for the .NET CLR. But that brief statement hides a whole new world -- IKVM is the first serious option for in-process Java-to-.NET interoperability. This article introduces us to IKVM, how to install it, how it works, and how to use it.

Conclusion
IKVM breaks down the barriers between Java and .NET, probably two of the most significant language platforms of the day. In the sometimes adversarial atmosphere between the two communities, this can be viewed with concern by many Java developers, since the barrier of interoperability against a large installed library base is not longer sufficient to protect your skills. However, one can also see it as an opportunity, increasing the range of target platforms on which the Java programmer may utilize his skills. I think IKVM eventually makes language bigotry the loser, and the winner is that old cliché -- "the right tool for the job."
Read An Introduction to IKVM

Threaded replies

·  An Introduction to IKVM: Java on .NET by Dion Almaer on Thu Aug 19 10:22:05 EDT 2004
  ·  What about the other direction? by Charles Bear on Thu Aug 19 11:13:40 EDT 2004
    ·  .net -> jvm by Dalibor Topic on Thu Aug 19 11:30:46 EDT 2004
    ·  Re: What about the other direction? by Jason Cone on Thu Aug 19 12:13:07 EDT 2004
      ·  That sounds interesting by Edgar Sanchez on Thu Aug 19 15:06:19 EDT 2004
    ·  Re: What about the other direction? by Krishna Kurra on Sat Aug 21 19:46:12 EDT 2004
      ·  Re: What about the other direction? by Steven Vetzal on Sun Aug 22 22:26:30 EDT 2004
  ·  AOP by robert kraus on Thu Aug 19 11:56:44 EDT 2004
  ·  But who cares???? by Ralph Deming on Thu Aug 26 17:00:30 EDT 2004
  Message #134816 Post reply Post reply Post reply Go to top Go to top Go to top

What about the other direction?

Posted by: Charles Bear on August 19, 2004 in response to Message #134803
This looks interesting, but raises a couple questions:
1. Is there a tool out there that does the reverse; compiles MSIL to Java bytecode, including stubs for Java/.NET libraries? Since the JVM appears (to me at least) to be more mature than the CLR, this could be useful, depending on what code you want to integrate.
2. Can we finally write Java code that has a decent rich user interface for Windows, by using the .NET Windows Forms from Java applications that connect to J2EE servers? Or should we stick with web services interoperability for that and write the rich client in VB.NET?

  Message #134821 Post reply Post reply Post reply Go to top Go to top Go to top

.net -> jvm

Posted by: Dalibor Topic on August 19, 2004 in response to Message #134816
Hi Charles,

Portable dotNet has an (unifinished) compiler backend that emits java bytecode instead of IL. There are commercial implemenetations that allow running of IL on JVMs.

One of my pet projects is to try out some nice binary rewriting tools[1] ocassionally to compile pnet itself to java bytecode and run it on a JVM. I've got a 100 KLOC theorem prover written in C crossbuilt-to-bytecode running happily on a JVM without much work beside tweaking the makefiles a little bit.

cheers,
dalibor topic

[1] cross compile to mips as native code, from mips to bytecode.

  Message #134829 Post reply Post reply Post reply Go to top Go to top Go to top

AOP

Posted by: robert kraus on August 19, 2004 in response to Message #134803
Is IKVM also capable of handling all the fancy AOP, CGLIB stuff that is used in Hibernate, Spring etc?

  Message #134835 Post reply Post reply Post reply Go to top Go to top Go to top

Re: What about the other direction?

Posted by: Jason Cone on August 19, 2004 in response to Message #134816
I just came across a tool from IBM that lets you host Windown Form controls in Eclipse. I haven't worked with or tested it, yet, so I don't know how good it is.

(On our recent project we did almost exactly what you described: we have a Windows Forms client written in C# that connects to a J2EE server using web services.)

  Message #134895 Post reply Post reply Post reply Go to top Go to top Go to top

That sounds interesting

Posted by: Edgar Sanchez on August 19, 2004 in response to Message #134835
Could you tell us a little bit more about the project (number of forms, number of web services, business transaction loads, compatibility problems, etc.)

  Message #135135 Post reply Post reply Post reply Go to top Go to top Go to top

Re: What about the other direction?

Posted by: Krishna Kurra on August 21, 2004 in response to Message #134816
2. Can we finally write Java code that has a decent rich user interface for Windows, by using the .NET Windows Forms from Java applications that connect to J2EE servers? Or should we stick with web services interoperability for that and write the rich client in VB.NET?
Charles,

I think .NET Remoting is the tool we can use when .NET presentation layer
has to deal with the J2EE applications. Read that it has better speed and
efficiency when it comes to large datasets than XML web services.

Check out
.NET/Java Interoperability: Apply the Proper Tool for the Job
By Kenn Scribner
@ http://www.developer.com/java/ent/article.php/10933_3351451_1

Krishna

  Message #135155 Post reply Post reply Post reply Go to top Go to top Go to top

Re: What about the other direction?

Posted by: Steven Vetzal on August 22, 2004 in response to Message #135135
I think .NET Remoting is the tool we can use when .NET presentation layerhas to deal with the J2EE applications. Read that it has better speed and efficiency when it comes to large datasets than XML web services
.NET Remoting is like RMI - it's binary only, hence the performance. No interop there AFAIK.

  Message #135828 Post reply Post reply Post reply Go to top Go to top Go to top

But who cares????

Posted by: Ralph Deming on August 26, 2004 in response to Message #134803
90something% of java development now adays is serverside any way. This tool will not make EJB's mysterously run on M$ servers. So it doesn't matter. If you want to write a java solitaire program and make it run on .NET this is the tool for you, however if want to run a serious enterprise app on windows, well all the major App servers run just fine on Windoze, under -tada- Java. You need JBOSS, BEA, Websphere, iPlanet or........ and of course the appropriate JVM.


Move along nothing to see here.........

New content on TheServerSide.comNew content on TheServerSide.comNew content on TheServerSide.com

Dependency Injection in Java EE 6 - Part 2

Reza Rahman continues to explore the features of the proposed JSR 299, Contexts and Dependency Injection for Java EE (CDI). When approved, it promises to be a key feature of Java EE 6. (January 21, Article)

Ted Neward Q&A: What you must know about JavaScript, Scala and more

Ted Neward is an independent consultant specializing in high-scale enterprise systems, and an authority in Java and .NET technologies. He is the author and co-author of several books, including Effective Enterprise Java. At TheServerSide Java Symposium in March, he will be presenting sessions on pragmatic architecture, ECMAScript and Scala. (January 15, Article)

Developers split on open sourcing Java

Now that Oracle is absorbing Sun Microsystems, there mixed views on what should come of the Java Community Process (JCP). While some say Oracle should become the new steward of Java and keep the JCP much as it was, others argue that it may be time to open-source this widespread language. (November 24, Article)

Dependency Injection in Java EE 6 - Part 1

Reza Rahman explores the features of the proposed JSR 299, Contexts and Dependency Injection for Java EE (CDI). When approved, it promises to be a key feature of Java EE 6. (November 2, Article)

SAML: It's Not just for Web services

SAML is an XML-based standard for exchanging authentication and authorization data between security domains. The single most important problem that SAML was created to solve is the Web browser Single Sign-On problem. Many organizations are debating whether to stay with version 1.1 or move to 2.0. This article makes observations about both options. (September 28, Article)

Programming is Also Teaching Your Team

Joe Ottinger takes a look at how people learn, and applies it to the practice of programming. He notes that understanding how people learn is an essential part of working in a programming team. (September 22, Article)

Can Java EE Deliver The Asynchronous Web?

Stephen Maryka gave us an article about the Asynchronous Web and posed a number of questions that get examined like an approach to delivering Asynchronous Web capabilities through extensions to existing Java EE technologies. (July 14, Article)

JSF Flex

JavaServer Faces Flex goal is to provide users capability in creating standard Flex components, part of flexSDK which is open sourced through MPL license, as normal JSF components. This article by Ji Hoon Kim will provide an overview of creating a simple multilingual JSF page consisting of JSF Flex tags. (June 29, Article)

The Rules of SOA - A Road to a Successful SOA Implementation

In this session Jeff explores the key characteristics of successful SOA projects. He covers some of the patterns, and anti-patterns, tool sets, and strategies that he himself learned the hard way. Last, he provides a strategy and blueprint for achieving a high likelihood of success in your SOA project. (June 23, Tech Talk)

Ari Zilka Talks About Terracotta 3.1

Ari Zilka, CTO of Terracotta, Inc., talks about the new features in Terracotta 3.1, announced during JavaOne and available now. (June 15, Tech Talk)

Enterprise Application Integration, and Spring

In this Tech Talk, Josh Long explores an integration challenge using Spring Integration and walks through the implementation, employing and expanding on the basic patterns of Enterprise Application Integration to tie together components into a function integration solution, and then demonstrates how Spring Integration helps address the integration requirements. (June 15, Tech Talk)

Google Web Toolkit: An Introduction

In this Tech Talk, David Geary teaches you: The basics of Google Web Toolkit; How to implement Ajax-enabled applications in Java; Internationalization; Hooking into the browser history mechanism; Remote procedure calls. (June 4, Tech Talk)

Just Enough Early Architecture to Guide Development

Jon Kern discusses the best architecture/technical solutions and ensure that they are repeated by all developers. By tackling the architecture up-front in a serial manner, subsequent parallel development will be much more manageable and predictable. (May 28, Tech Talk)

Productive Programmer: On the Lam from the Furniture Police

This keynote describes the frustrations of modern knowledge workers in their quest to actually get some work done, and solutions for how to guard yourself against all those distractions. Neal Ford talks about environments, coding, acceleration, automation, and avoiding repetition as ways to defeat the misguided attempts to sap your ability to produce good work. (May 26, Tech Talk)

Auto-Scaling Your Existing Web Application

Gil demonstrates how new, aggressive uses of already abundant compute capacity by common applications offer competitive value for application designers. (May 21, Tech Talk)

Automating Hibernate Mapping and Queries For Java Web Development

Chris Keene introduces WaveMaker as a new way to automate the ability to generate Hibernate classes in order to more quickly bring OR mapping into an application. (May 19, Article)

Free Book PDF Download: Mastering EJB Third Edition

Mastering EJB was one of the original and most influential EJB books in the industry. Mastering EJB III now returns with two new expert co-authors, updated for EJB 2.1 and 30% new chapters including security, integration, best practices, open source, and more.
(Book PDF Download)

Application Server Matrix

The Application Server Matrix is a detailed listing of J2EE vendors and their application server products, with information on latest version numbers, J2EE spec support and licensing, pricing, platform support, and links to product downloads and reviews.
(Application Server Comparison Matrix)

News | Blogs | Discussions | Tech talks | Patterns | Reviews | White Papers | Downloads | Articles | Media kit | About
Java Solutions
All Content Copyright ©2007 TheServerSide Privacy Policy
Site Map