Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. How about including Java as one of the .NET supported languages?

How about including Java as one of the .NET supported languages?

Scheduled Pinned Locked Moved The Lounge
csharpjavaquestion
41 Posts 29 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    Jun Du
    wrote on last edited by
    #1

    I came across an experimental tool named XMLVM, which as claimed can convert the compiled .NET assemblies into Java byte code and vice versa. This makes me thinking why can't Microsoft include Java into the .NET run-time support...

    Best, Jun

    L D N L M 13 Replies Last reply
    0
    • J Jun Du

      I came across an experimental tool named XMLVM, which as claimed can convert the compiled .NET assemblies into Java byte code and vice versa. This makes me thinking why can't Microsoft include Java into the .NET run-time support...

      Best, Jun

      L Offline
      L Offline
      lewax00
      wrote on last edited by
      #2

      I can think of a few: 0. They don't want to pay licensing fees. 1. They want to promote their own technologies 2. XMLVM is not developed by Microsoft 3. They tried it already, it was called J#, it never really caught on

      C 1 Reply Last reply
      0
      • J Jun Du

        I came across an experimental tool named XMLVM, which as claimed can convert the compiled .NET assemblies into Java byte code and vice versa. This makes me thinking why can't Microsoft include Java into the .NET run-time support...

        Best, Jun

        D Offline
        D Offline
        Daniel Grunwald
        wrote on last edited by
        #3

        They use XSL transformations for the program transformations? :omg: :omg: :omg: That sounds REALLY painful for non-trivial transformations. Also, it looks highly incomplete, especially the supported class libraries. If you just want to run Java byte code on .NET, take a look at IKVM[^] instead. Also, read the IKVM blog[^] if you want to get an idea of just how complex this is - the IKVM author is frequently running into trouble with either Java or .NET not working as documented in some corner cases.

        Jun Du wrote:

        This makes me thinking why can't Microsoft include Java into the .NET run-time support...

        a) It's a HUGE effort to get right (see above) b) Patents. Microsoft started .NET because they got sued when trying to improve Java, remember?

        S 1 Reply Last reply
        0
        • J Jun Du

          I came across an experimental tool named XMLVM, which as claimed can convert the compiled .NET assemblies into Java byte code and vice versa. This makes me thinking why can't Microsoft include Java into the .NET run-time support...

          Best, Jun

          N Offline
          N Offline
          Nish Nishant
          wrote on last edited by
          #4

          They used to, it was called J#. Didn't take off - and that's understating it.

          Regards, Nish


          My technology blog: voidnish.wordpress.com

          M 1 Reply Last reply
          0
          • L lewax00

            I can think of a few: 0. They don't want to pay licensing fees. 1. They want to promote their own technologies 2. XMLVM is not developed by Microsoft 3. They tried it already, it was called J#, it never really caught on

            C Offline
            C Offline
            Chris Meech
            wrote on last edited by
            #5

            lewax00 wrote:

            3. They tried it already, it was called J#, it never really caught on and they got taken to court about it.

            FTFY. :)

            Chris Meech I am Canadian. [heard in a local bar] In theory there is no difference between theory and practice. In practice there is. [Yogi Berra] posting about Crystal Reports here is like discussing gay marriage on a catholic church’s website.[Nishant Sivakumar]

            L L B J 4 Replies Last reply
            0
            • J Jun Du

              I came across an experimental tool named XMLVM, which as claimed can convert the compiled .NET assemblies into Java byte code and vice versa. This makes me thinking why can't Microsoft include Java into the .NET run-time support...

              Best, Jun

              L Offline
              L Offline
              Lost User
              wrote on last edited by
              #6

              Why would anyone do something like that through XML?

              1 Reply Last reply
              0
              • C Chris Meech

                lewax00 wrote:

                3. They tried it already, it was called J#, it never really caught on and they got taken to court about it.

                FTFY. :)

                Chris Meech I am Canadian. [heard in a local bar] In theory there is no difference between theory and practice. In practice there is. [Yogi Berra] posting about Crystal Reports here is like discussing gay marriage on a catholic church’s website.[Nishant Sivakumar]

                L Offline
                L Offline
                loctrice
                wrote on last edited by
                #7

                excellent!

                1 Reply Last reply
                0
                • J Jun Du

                  I came across an experimental tool named XMLVM, which as claimed can convert the compiled .NET assemblies into Java byte code and vice versa. This makes me thinking why can't Microsoft include Java into the .NET run-time support...

                  Best, Jun

                  M Offline
                  M Offline
                  Mladen Jankovic
                  wrote on last edited by
                  #8

                  Jun Du wrote:

                  This makes me thinking why can't Microsoft include Java into the .NET run-time support...

                  Could be that they are smart enough not to try it for the third time. There were two attempts by MS to bring Java to their ecosystem: J++ and J# and both failed miserably due to various reasons.

                  1 Reply Last reply
                  0
                  • N Nish Nishant

                    They used to, it was called J#. Didn't take off - and that's understating it.

                    Regards, Nish


                    My technology blog: voidnish.wordpress.com

                    M Offline
                    M Offline
                    Mike Hankey
                    wrote on last edited by
                    #9

                    Nishant Sivakumar wrote:

                    They used to, it was called J#. Didn't take off

                    Dropped flatter than a pancake. Got a copy of it with the first .NET. I bought it here from CP in 2002 and got their Dundas Ultimate Toolbox with it.

                    VS2010/AVR Studio 5.0 ToDo Manager Extension

                    1 Reply Last reply
                    0
                    • J Jun Du

                      I came across an experimental tool named XMLVM, which as claimed can convert the compiled .NET assemblies into Java byte code and vice versa. This makes me thinking why can't Microsoft include Java into the .NET run-time support...

                      Best, Jun

                      E Offline
                      E Offline
                      Espen Harlinn
                      wrote on last edited by
                      #10

                      IKVM.NET[^] works pretty well ... From Uses for IKVM.NET[^]: The ikvm application included with the distribution is a .NET implementation of a Java Virtual Machine. In many cases, you can use it as a drop-in replacement for java. For example, instead of typing java -jar myapp.jar to run an application, you can type ikvm -jar myapp.jar

                      Espen Harlinn Senior Architect, Software - Goodtech Projects & Services

                      1 Reply Last reply
                      0
                      • J Jun Du

                        I came across an experimental tool named XMLVM, which as claimed can convert the compiled .NET assemblies into Java byte code and vice versa. This makes me thinking why can't Microsoft include Java into the .NET run-time support...

                        Best, Jun

                        C Offline
                        C Offline
                        Chris Maunder
                        wrote on last edited by
                        #11

                        Look up the history of Java and Microsoft. Then have a look at how well Sun has done out of all the posing and fighting. It's a long sordid story.

                        cheers, Chris Maunder The Code Project | Co-founder Microsoft C++ MVP

                        1 Reply Last reply
                        0
                        • C Chris Meech

                          lewax00 wrote:

                          3. They tried it already, it was called J#, it never really caught on and they got taken to court about it.

                          FTFY. :)

                          Chris Meech I am Canadian. [heard in a local bar] In theory there is no difference between theory and practice. In practice there is. [Yogi Berra] posting about Crystal Reports here is like discussing gay marriage on a catholic church’s website.[Nishant Sivakumar]

                          L Offline
                          L Offline
                          lewax00
                          wrote on last edited by
                          #12

                          I hadn't heard that. The only things I saw (from Microsoft though, probably biased in their favor) made it sound like it didn't have enough of a user base to continue supporting it. But that makes a lot of sense.

                          T 1 Reply Last reply
                          0
                          • J Jun Du

                            I came across an experimental tool named XMLVM, which as claimed can convert the compiled .NET assemblies into Java byte code and vice versa. This makes me thinking why can't Microsoft include Java into the .NET run-time support...

                            Best, Jun

                            H Offline
                            H Offline
                            hoonzis
                            wrote on last edited by
                            #13

                            Why would you like to do that? There is nothing which Java can offer on the language level...well there are some points, like the "throws" declaration which forces you to catch possible exceptions. I do not see any added value on adding Java to the languages for CLR. (except the fact that it is so popular). On the other hand it would be great to write software in C# which would run on JVM... Or let's just wait till the release of Java 8 which will offer some good language stuff (2013...maybe) - than I will happily code in java...maybe

                            R E 2 Replies Last reply
                            0
                            • H hoonzis

                              Why would you like to do that? There is nothing which Java can offer on the language level...well there are some points, like the "throws" declaration which forces you to catch possible exceptions. I do not see any added value on adding Java to the languages for CLR. (except the fact that it is so popular). On the other hand it would be great to write software in C# which would run on JVM... Or let's just wait till the release of Java 8 which will offer some good language stuff (2013...maybe) - than I will happily code in java...maybe

                              R Offline
                              R Offline
                              Rob Grainger
                              wrote on last edited by
                              #14

                              Jan Fajfr wrote:

                              Or let's just wait till the release of Java 8 which will offer some good language stuff (2013...maybe) - than I will happily code in java...maybe

                              I wouldn't hold your breath - all their good engineers fled shortly after Oracle took over.

                              1 Reply Last reply
                              0
                              • J Jun Du

                                I came across an experimental tool named XMLVM, which as claimed can convert the compiled .NET assemblies into Java byte code and vice versa. This makes me thinking why can't Microsoft include Java into the .NET run-time support...

                                Best, Jun

                                P Offline
                                P Offline
                                Peter Kibble
                                wrote on last edited by
                                #15

                                Great idea. I'm currently linking a Java project into .Net, and I think we need more badly documented, slow running stuff with ugly interfaces in the .Net world.

                                S 1 Reply Last reply
                                0
                                • J Jun Du

                                  I came across an experimental tool named XMLVM, which as claimed can convert the compiled .NET assemblies into Java byte code and vice versa. This makes me thinking why can't Microsoft include Java into the .NET run-time support...

                                  Best, Jun

                                  T Offline
                                  T Offline
                                  Thornik
                                  wrote on last edited by
                                  #16

                                  Java is a dead walker. Having C# I see no any reason to have Java too, esp. when Java as a language far behind C#.

                                  R L T 3 Replies Last reply
                                  0
                                  • T Thornik

                                    Java is a dead walker. Having C# I see no any reason to have Java too, esp. when Java as a language far behind C#.

                                    R Offline
                                    R Offline
                                    roger2412
                                    wrote on last edited by
                                    #17

                                    Totally agree Being forced to use Java in Eclipse after coding in VS2010 was a nightmare. All that setting up ENV variables JAVA_HOME etc drives you nuts! And the stuff out there in the public domain is soooo amateur looking. BUT (and it's a big one) the reason enterprise Java is used a lot is that it can run on UNIX - that and it's not C++ (which I'd also rather use than Java...)

                                    T 1 Reply Last reply
                                    0
                                    • T Thornik

                                      Java is a dead walker. Having C# I see no any reason to have Java too, esp. when Java as a language far behind C#.

                                      L Offline
                                      L Offline
                                      Lobachevsky
                                      wrote on last edited by
                                      #18

                                      Wasn't there a fair bit of litigation in the past regarding just this thing? I would love to at least dump Eclipse and move on to Visual Studio. And dump Java too. Java is proof that after over 55 years of mainstream language development (Fortran came out in 1956) we haven't got very far. A real productivity killer.

                                      1 Reply Last reply
                                      0
                                      • R roger2412

                                        Totally agree Being forced to use Java in Eclipse after coding in VS2010 was a nightmare. All that setting up ENV variables JAVA_HOME etc drives you nuts! And the stuff out there in the public domain is soooo amateur looking. BUT (and it's a big one) the reason enterprise Java is used a lot is that it can run on UNIX - that and it's not C++ (which I'd also rather use than Java...)

                                        T Offline
                                        T Offline
                                        Thornik
                                        wrote on last edited by
                                        #19

                                        I fear "enterprise Java" is the same myth like NFO: everybody knows it, but nobody seen. :) Currently .NET has everything to build any scale applications. Who care about "enterprise Java"? People just use stuff most handy in their company - a whole MS chain, from Server/Exchange/SQL till WinXP/Outlook.

                                        R C 2 Replies Last reply
                                        0
                                        • T Thornik

                                          I fear "enterprise Java" is the same myth like NFO: everybody knows it, but nobody seen. :) Currently .NET has everything to build any scale applications. Who care about "enterprise Java"? People just use stuff most handy in their company - a whole MS chain, from Server/Exchange/SQL till WinXP/Outlook.

                                          R Offline
                                          R Offline
                                          roger2412
                                          wrote on last edited by
                                          #20

                                          Agreed But the UNIX problem doesn't go away. I work on a lot Govt stuff and apart from the odd breath of fresh air, it all runs on UNIX - hence no C# dev - it's all done in Java. If there was a reliable solid MSIL VM for UNIX we could truly wave goodbye to the mess that is the Java programming environment....

                                          1 Reply Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          • Login

                                          • Don't have an account? Register

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • World
                                          • Users
                                          • Groups