Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can you use Java libraries in a VB.net program?

Tags:

java

vb.net

I'm wondering if a Java library can be called from a VB.net application.

(A Google search turns up lots of shady answers, but nothing definitive)

like image 228
David Koelle Avatar asked Sep 30 '08 13:09

David Koelle


People also ask

Is VB net the same as Java?

VB.NET is a platform-dependent language. Java is a platform-independent language that is it can be run on any Operating system which is able to install JVM. VB.NET supports disconnected Architecture. Java supports connected architecture.

Can I use Java code in C#?

The first way provides evidence that Java can be linked to C# at the native code level, albeit through C++ wrappers. The second is a means for retaining the useful applet feature of Java in the server- side architecture of web services written in C#.

How libraries are used in Java?

The library provides an abstract interface to tasks that would normally depend heavily on the hardware and operating system, such as network access and file access. Some underlying platforms may not support all of the features a Java application expects.


1 Answers

No, you can't. Unless you are willing to use some "J#" libraries (which is not nearly the same as Java) or IKVM which is a Java implementation that runs on top of .NET, but as their documentation says:

IKVM.OpenJDK.ClassLibrary.dll: compiled version of the Java class libraries derived from the OpenJDK class library with some parts filled in with code from GNU Classpath and IcedTea, plus some additional IKVM.NET specific code.

So it's not the real deal.

like image 183
dguaraglia Avatar answered Oct 20 '22 23:10

dguaraglia