VB to Java migration tool?


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 15 of 15

Thread: VB to Java migration tool?

  1. #1
    Kent Guest

    VB to Java migration tool?


    Would anyone be interested in a tool that migrated VB6 code to Java? The
    migration can't be any worse than the VB6 to VB.Net migration **** that M$
    has stuck us with.

    There would still be migration issues, but it would nice to be able to make
    a clean break while leveraging your existing codebase.

    The forms package could be translated to SWING or SWT.

    ADO, RDO and DAO converted to JDBC

    A COM interop could be provided to make use of critical ActiveX controls
    and libraries the same way .Net does.

    VB6 webclasses (Like anyone uses them) could be converted to servlets

    How about a VB6 to Delphi migration tool?

    Just a little fuel for the flame!


  2. #2
    John Butler Guest

    Re: VB to Java migration tool?


    "Kent" <kp@kp.org> wrote in message news:3e2c8fa0$1@tnews.web.devx.com...
    >
    > Would anyone be interested in a tool that migrated VB6 code to Java? The
    > migration can't be any worse than the VB6 to VB.Net migration **** that M$
    > has stuck us with.


    Whatever you're smoking...it must be good stuff...VB.NET has the identical
    language syntax, for heavens sake...

    > There would still be migration issues, but it would nice to be able to

    make
    > a clean break while leveraging your existing codebase.


    How exactly are you going to "leverage your existing codebase" by moving to,
    of all things, Java?

    > The forms package could be translated to SWING or SWT.


    That would slow things down nicely...say by a factor of oh...70%...

    > ADO, RDO and DAO converted to JDBC


    do-able...been done already..

    > A COM interop could be provided to make use of critical ActiveX controls
    > and libraries the same way .Net does.


    do-able...been done already (I think)....

    I'll try and find you a link to a bunch who have a VB6->Java
    converter...it's out there, search Google. Dunno about the COM interop stuff
    though...it's probably a fudge at best...but maybe others know better.

    > VB6 webclasses (Like anyone uses them) could be converted to servlets


    No-one uses em..no-one ever used them..did they???

    > How about a VB6 to Delphi migration tool?


    Why, who uses Delphi? Great tool...try selling your client on doing a
    project in Delphi and seeing whether they nibble. You have a 20% chance,
    max...besides...Object Pascal? Urgh...not a language of the future I
    think....not that I am knocking Borland...I look forward to seeing what
    their up and coming tools for .NET will be like...


    Rgds
    John Butler



  3. #3
    John Butler Guest

    Re: VB to Java migration tool?


    "Kent" <kp@kp.org> wrote in message news:3e2c8fa0$1@tnews.web.devx.com...
    >
    > Would anyone be interested in a tool that migrated VB6 code to Java?


    Kent

    Check out:

    http://www.tvobjects.com/products/Co...B-to-Java.html

    They seem to have something that does this. Who knows if it works though.

    Also have a look at:

    http://www.stryon.com/products.asp


    rgds
    John Butler



  4. #4
    Dan Barclay Guest

    Re: VB to Java migration tool?

    On 20 Jan 2003 16:09:04 -0800, "Kent" <kp@kp.org> wrote:

    >
    >How about a VB6 to Delphi migration tool?


    You can check out http://www.deluxsoftware.com/

    Dan


    Language Stability is a *feature* I wish VB had!
    (#6)
    Error 51
    Error 3
    Error 9
    ....

  5. #5
    Kent Guest

    Re: VB to Java migration tool?


    Sounds pretty good. Anyone used it? I don't own a copy of Delphi higher
    than 1.0 which is still 16bit.

    Dan Barclay <Dan@MVPs.org> wrote:
    >On 20 Jan 2003 16:09:04 -0800, "Kent" <kp@kp.org> wrote:
    >
    >>
    >>How about a VB6 to Delphi migration tool?

    >
    >You can check out http://www.deluxsoftware.com/
    >
    >Dan
    >
    >
    >Language Stability is a *feature* I wish VB had!
    > (#6)
    >Error 51
    >Error 3
    >Error 9
    >....


  6. #6
    Dan Barclay Guest

    Re: VB to Java migration tool?

    On 20 Jan 2003 18:42:13 -0800, "Kent" <kp@kp.com> wrote:

    >Sounds pretty good.


    Better than we thought we'd see.

    > Anyone used it?


    Yup. We haven't committed to a conversion move (to anywhere) and
    won't until we need to, but we've done a fair amount of
    experimentation with it. It's done well, but your mileage may vary
    depending on your app and coding. Fortunately, the product allows you
    to redefine some of the conversions yourself.

    It's only an estimate, but it appears migration to Delphi will be
    easier than migration to VB.Net in many cases.

    Dan
    Language Stability is a *feature* I wish VB had!
    (#6)
    Error 51
    Error 3
    Error 9
    ....

  7. #7
    Miha Markic Guest

    Re: VB to Java migration tool?

    > It's only an estimate, but it appears migration to Delphi will be
    > easier than migration to VB.Net in many cases.


    Do you mean the Delphi that is going .NET full force?

    Miha



  8. #8
    Phil Weber Guest

    Re: VB to Java migration tool?

    > Do you mean the Delphi that is going .NET full force?

    Miha: If I may speak for Dan, I don't think he has any problem with .NET
    itself. His objection is to the fact that his VB6 code won't compile under
    VB.NET without significant modification. I believe his hope is that existing
    Delphi code will move more easily to .NET, when the time comes.
    --
    Phil Weber



  9. #9
    Vlad Ivanov Guest

    Re: VB to Java migration tool?


    Probably a good thread as any to pose a question: Anyone seen VB.classic to
    C# conversion? Or even VB.Net to C# conversion? I will use built-in .Net
    conversion to bring VB6 to VB.Net but i want to move it to C# eventually.

    Essentially what would be a decent way to bring VB6 code into C#?

    I understand that everything will break and look fairly strange - i just
    want to avoid having literally RETYPE all my code in different syntax.

    TIA for suggestions.

  10. #10
    Mike Mitchell Guest

    Re: VB to Java migration tool?

    On Mon, 20 Jan 2003 19:40:37 -0600, Dan Barclay <Dan@MVPs.org> wrote:

    >On 20 Jan 2003 16:09:04 -0800, "Kent" <kp@kp.org> wrote:
    >
    >>
    >>How about a VB6 to Delphi migration tool?

    >
    >You can check out http://www.deluxsoftware.com/


    That site doesn't appear to have been updated at all for literally a
    year.

    MM

  11. #11
    Phil Weber Guest

    Re: VB to Java migration tool?

    > Anyone seen VB.classic to C# conversion? Or even
    > VB.Net to C# conversion?


    Vlad: I haven't tried it yet, but I did notice this:
    http://radio.weblogs.com/0117167/2003/01/03.html . If you decide to try it,
    please let us know how well it works!
    --
    Phil Weber



  12. #12
    Dan Barclay Guest

    Re: VB to Java migration tool?

    On Tue, 21 Jan 2003 20:55:15 +0100, "Miha Markic"
    <miham@nospamDOTspinDOTsi> wrote:

    >> It's only an estimate, but it appears migration to Delphi will be
    >> easier than migration to VB.Net in many cases.

    >
    >Do you mean the Delphi that is going .NET full force?


    Phil is pretty much on target with my position. He's seen it enough
    that it might even be soaking in <gd&r>.

    I mean the Delphi that seems to be interested in moving their
    customers' code base to strategic platforms, whatever they may be.

    At this point you can keep your core code in a position that it will
    compile to either Windows or Linux platforms with little or no change.
    Hopefully they will retain that philosophy as they support the .Net
    platform, and whatever is "the next big thing" after that.

    Given that capability, having a code library that can be utilized on
    any of the three platforms is quite interesting.

    If you're not clear on my position, you can check out:
    http://www.mvps.org/vb/index2.html?tips/stability.htm
    I wrote that about a year and a half ago, but it still holds.

    Dan

    Language Stability is a *feature* I wish VB had!
    (#6)
    Error 51
    Error 3
    Error 9
    ....

  13. #13
    Dan Barclay Guest

    Re: VB to Java migration tool?

    Vlad,

    It's been a while since I looked at this stuff, but I think all you
    really need to do is compile then decompile. Compile with whatever
    ..net compiler you want (VB.net C#...). The decompile comes out C#.

    To do VB.Classic you'd have to first get it into MSIL. To do that you
    need to convert to one of the C# languages then compile.

    Dan

    On 21 Jan 2003 12:23:08 -0800, "Vlad Ivanov" <vb.@127.0.0.1> wrote:

    >
    >Probably a good thread as any to pose a question: Anyone seen VB.classic to
    >C# conversion? Or even VB.Net to C# conversion? I will use built-in .Net
    >conversion to bring VB6 to VB.Net but i want to move it to C# eventually.
    >
    >Essentially what would be a decent way to bring VB6 code into C#?
    >
    >I understand that everything will break and look fairly strange - i just
    >want to avoid having literally RETYPE all my code in different syntax.
    >
    >TIA for suggestions.


    Language Stability is a *feature* I wish VB had!
    (#6)
    Error 51
    Error 3
    Error 9
    ....

  14. #14
    Vlad Ivanov Guest

    Re: VB to Java migration tool?


    Thanks for a suggestion! This is actually exactly what i wanted!

    Basically it replaces VB constructs with C# contructs without attempting
    to translate anything - which saves lots of typing and still lets you trnslate
    the code yourself.

    Example VB6 code:

    ''' Move all UserOwner properties into separate bag
    oStoreSystem.PropertyBag = oStoreAll.PropertyBag
    For Each oProperty In oStoreSystem
    If moGUIFAppStoreOwnershipPB.Exists(oProperty.Name) Then
    If moGUIFAppStoreOwnershipPB(oProperty.Name).Value = GUIFPropertyOwnership.PropertyUser
    Then
    oStoreUser.Add oProperty.Name, oProperty.Value
    oStoreSystem.Remove oProperty.Name
    End If
    Else
    oStoreSystem.Remove oProperty.Name
    End If
    Next

    Translates into C# code:

    ////// Move all UserOwner properties into separate bag
    oStoreSystem.PropertyBag = oStoreAll.PropertyBag;
    for ( Each o In oStoreSystem {
    if ( moGUIFAppStoreOwnershipPB.Exists(oProperty.Name) ) {
    if ( moGUIFAppStoreOwnershipPB(oProperty.Name).Value = GUIFPropertyOwnership.PropertyUser
    ) {
    oStoreUser.Add oProperty.Name, oProperty.Value;
    oStoreSystem.Remove oProperty.Name;
    }
    } else {
    oStoreSystem.Remove oProperty.Name;
    }
    } //


    I still have to figure out the best way to accomplish what i am looking for,
    or to set my mind on any given direction...
    >Vlad: I haven't tried it yet, but I did notice this:
    >http://radio.weblogs.com/0117167/2003/01/03.html . If you decide to try

    it,
    >please let us know how well it works!
    >--
    >Phil Weber
    >
    >



  15. #15
    Join Date
    Jan 2014
    Posts
    1
    Old thread... But still a very viable question. There is still a lot of companies that are starting up Visual Basic migration efforts and many of these have since long chosen Java as their target of choice. There are today good tools for migrating Visual Basic to Java. For example, check out https://jump2java.com/download. With this Ecplise based IDE you can convert the VB6 Desktop app into either a Java Swing app or into a web-based Java Server Faces app.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center