Difficulty of porting to J# from Sun Java?

I asked the same question in Sun's web site, which got me some cold faces. I hope folks here would be nice. i m only seeking an advice.

my app was originaly developed under Sun's JDK 1.1.4, but as i kept adding more fetures on it, it has been optimised to a 1.4.2 app, and some parts of the code are using 1.5's.

Due to the fact that my clients mainly use windows and they only like Word(no open office), and i find it's really hard to deal with Word using java, so i m thinking of building a native app for windows and by using the .net library, let me generate word document more easily.

we are just small company, we dont have enough man power to rewrite the code, in that case i m thinking of plotting java to J#.

is that possible and how hard is that

thank you in advance.


Answer this question

Difficulty of porting to J# from Sun Java?

  • dma550

    Hi,
    Just for your information...

    J# redistributable 2.0 (shipped with Visual sudio 2005) is available for free. It can be downoladed from here.

    Please let us know if you face any issues while using J#.

    Thanks.

  • Rik Dodsworth

    Yes, beta version of visual studio does have the required capability but i doubt it's available freely. I think you are talking about the express version which doesn't have the conversion capability.

    Alternatively you can download only the Java Language Conversion Assistant from http://www.microsoft.com/downloads/details.aspx FamilyId=46BEA47E-D47F-4349-9B4F-904B0A973174&displaylang=en.

    Let us know if you face any issue.

    Thanks.


  • hengemd

    Yes, this is the one which has got the Java language Conversion Assistant.

    Thanks.



  • Tracy - MSFT

    Hi,
    If you are working on Visual Studio then you have 2 options...

    1. Convert Java -> C#
        Visual studio has got JAVA language Converter Assistant for this purpose. Go to File > OPen > Convert.... A self explainatory wizard comes up. Follow the instructions there and it will convert your java project to C# project. Refer http://msdn.microsoft.com/vstudio/downloads/tools/jlca/ to know more.


    2. Convert Java -> J#
    Create a new J# application and add all your java file to it (Right click on project node in solution explorer > Add existing items). Add all the required references and compile it.

    If you dont have visual studio with you then you create a .resp file and pass to compiler. To know more about resp file please refer following link...
    http://winfx.msdn.microsoft.com/library/default.asp url=/library/en-us/dv_vjcomp/html/00862867-532d-44ed-92d4-53a466240607.asp

    Thanks.


  • dtwilliamson

    Thanks for your kind reply. I m living in uk, so i went to the uk's MS site, and order the Visual Studio 2005 beta kit, it says it's free and it told me that:

    By joining the Beta Experience you will get:

    ?

    Microsoftc Visual Studioc 2005 Team System Beta 2

    ?

    Microsoftc Team Foundation Server Beta 2

    ?

    WeFly247.Net training DVD

    ?

    Microsoftc SQL Server 2005 Standard Edition Community Technology Preview

    ?

    The Beta Experience newsletter (6-weekly, terminated with the launch of the final version of Visual Studio 2005)

    ?

    Free registration to MSDN Connection


    is the Team System Beta 2 version going to do the convertion


  • CE

    Hi,

    Thank you so much for getting back to me.

    I dont have Visual Studio, i have been  spending almost all my time working with sun's java and i m not familiar with Visual Studio at all.

    will the free download Visual Studio 2005 beta give me some idea can it do the convertion that you just mentioned above




  • Difficulty of porting to J# from Sun Java?