Solved

Using java code in VB.NET

Posted on 2004-11-01
186 Views
Last Modified: 2010-04-24
Hello Experts,

I have an open source library written in Java. I want to use this library in my VB.NET application (I don't have enough time to convert this library to VB.NET, and it's not a trivial task). Could you please direct me how to use my java library in VB.NET efficiently?

Thank you a lot for your help. I am in need of a how-to urgently.
Grade A and 500 points will be my many thanks to you!!!

Best regards,
Nhuan
0
Question by:nhuanvn
    8 Comments
     
    LVL 10

    Expert Comment

    by:prakash_prk
    0
     
    LVL 10

    Expert Comment

    by:prakash_prk

    you can try this  also.
    Create a new J# project.

    Add your java code .
    Maximum of the code syntax is same .
    0
     
    LVL 1

    Author Comment

    by:nhuanvn
    Hello,

    Thank you for your good direction. I am considering to create a new J# project. The problem now is how to add a JAR file to the J# project? If I can use these JAR files then everything is OK.

    0
     
    LVL 10

    Expert Comment

    by:prakash_prk
    0
     
    LVL 10

    Expert Comment

    by:prakash_prk
    0
     
    LVL 1

    Author Comment

    by:nhuanvn
    Hello prakash_prk,

    VJ# is a choice, but dealing with it is not trivial in a short time (and I am in lack of time now, deadline is coming for the master thesis). So I turn to resist on a bad (but workable right now) solution: JSP files can call my java library easily and the GUI part is in VB.NET using WebClient class to talk to the JSP files (I don't want to write my own server in Java code, again it is time consuming). So it is quite OK at the moment, what is in lack is that I can't use SOAP to access my java library. I want to close the question here.

    Thank you a lot for the VJ# tip. Actually I don't think of it before :-)
    Please make a comment and I will accept yours as the solution with full points and Grade A.

    Best regards,
    Nhuan
    0
     
    LVL 10

    Accepted Solution

    by:
    Ok nhuanvn
    using JSP on server . for that you run the program in web server.


    Best of luck

    Regards
    Prakash
    0
     
    LVL 1

    Author Comment

    by:nhuanvn
    Hello,

    I my case, I use UDDI4J which is a java open source library to access a UDDI registry. After a while I want to turn to use VB.NET and the problem above raises. In fact the best way that I have found is to turn to use Microsoft UDDI SDK which has a namespace Microsoft.Uddi and then we can use the classes there to do the same thing as UDDI4J.

    I think this is the best way for me to do my task.
    I close the question with a solution found by myself.
    0

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Since .Net 2.0, Visual Basic has made it easy to create a splash screen and set it via the "Splash Screen" drop down in the Project Properties.  A splash screen set in this manner is automatically created, displayed and closed by the framework itsel…
    Introduction When many people think of the WebBrowser (http://msdn.microsoft.com/en-us/library/2te2y1x6%28v=VS.85%29.aspx) control, they immediately think of a control which allows the viewing and navigation of web pages. While this is true, it's a…
    With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…
    This Experts Exchange video Micro Tutorial shows how to tell Microsoft Office that a word is NOT spelled correctly. Microsoft Office has a built-in, main dictionary that is shared by Office apps, including Excel, Outlook, PowerPoint, and Word. When …

    934 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    13 Experts available now in Live!

    Get 1:1 Help Now