473,545 Members | 1,983 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Java class or jar usage in vb.net

Experienced members,

Can someone point me in the direction of utilizing some existing objects
that where writing in java. I was given a .jar file with some documentation
about the classes within it.

I am trying to create a instance of these classes from within vb.net (VS
2003 Framework 1.1). Can someone point me in the direction I need to go or
some good documentation?

Thanks,

Chris Smith
Nov 20 '05 #1
4 6999
* "Chris Smith" <us**@email.com > scripsit:
Can someone point me in the direction of utilizing some existing objects
that where writing in java. I was given a .jar file with some documentation
about the classes within it.

I am trying to create a instance of these classes from within vb.net (VS
2003 Framework 1.1). Can someone point me in the direction I need to go or
some good documentation?


You cannot use Java classes in .NET directly.

<http://www.intrinsyc.c om/products/ja.net/>
<http://www.remotesoft. com/javanet/index.html>
<http://www.jnbridge.co m/1dot2beta.htm> bzw. <http://www.jnbridge.co m>
<http://koti.mbnet.fi/akini/java/axis/>

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #2
Check this link out;

http://groups.google.com/groups?hl=e...3DN%26tab%3Dwg

I will agree that you just can use java natively, but this I think is pretty
close. You think this will work in .NET languages?
"Herfried K. Wagner [MVP]" <hi************ ***@gmx.at> wrote in message
news:%2******** *******@tk2msft ngp13.phx.gbl.. .
* "Chris Smith" <us**@email.com > scripsit:
Can someone point me in the direction of utilizing some existing objects
that where writing in java. I was given a .jar file with some documentation about the classes within it.

I am trying to create a instance of these classes from within vb.net (VS
2003 Framework 1.1). Can someone point me in the direction I need to go or some good documentation?


You cannot use Java classes in .NET directly.

<http://www.intrinsyc.c om/products/ja.net/>
<http://www.remotesoft. com/javanet/index.html>
<http://www.jnbridge.co m/1dot2beta.htm> bzw. <http://www.jnbridge.co m>
<http://koti.mbnet.fi/akini/java/axis/>

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>

Nov 20 '05 #3
Hi Chris --

The link you supply below requires the MS JVM, and the days of the MS JVM
are numbered. Also, the MS JVM doesn't support the most up-to-date Java (it
only supports up through JDK 1.1.4 and a few other classes), and may not run
your jar file.

You have a couple of choices in doing interop. One is to use one of the
interop technologies that Herfried mentions below. I, of course, recommend
JNBridge. :-) BTW, the link http://www.jnbridge.com/1dot2beta.htm that
Herfried supplied is out of date -- simply use www.jnbridge.com.

The other choice is to use the jbimp.exe tool supplied with the .NET SDK.
This will convert Java binaries and jar files to MSIL, but only if the
binaries only depend on JDK 1.1.4 and JDK 1.2 collections, so you may not be
able to use it.

Wayne
_______________ _______________ ______

Wayne Citrin
JNBridge, LLC
ci****@jnbridge .com
www.jnbridge.com
Spanning the Worlds of Java and .NET
_______________ _______________ ______

"Chris Smith" <us**@email.com > wrote in message
news:%2******** ********@TK2MSF TNGP11.phx.gbl. ..
Check this link out;

http://groups.google.com/groups?hl=e...3DN%26tab%3Dwg
I will agree that you just can use java natively, but this I think is pretty close. You think this will work in .NET languages?
"Herfried K. Wagner [MVP]" <hi************ ***@gmx.at> wrote in message
news:%2******** *******@tk2msft ngp13.phx.gbl.. .
* "Chris Smith" <us**@email.com > scripsit:
Can someone point me in the direction of utilizing some existing objects that where writing in java. I was given a .jar file with some documentation about the classes within it.

I am trying to create a instance of these classes from within vb.net (VS 2003 Framework 1.1). Can someone point me in the direction I need to
go
or some good documentation?


You cannot use Java classes in .NET directly.

<http://www.intrinsyc.c om/products/ja.net/>
<http://www.remotesoft. com/javanet/index.html>
<http://www.jnbridge.co m/1dot2beta.htm> bzw. <http://www.jnbridge.co m>
<http://koti.mbnet.fi/akini/java/axis/>

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>


Nov 20 '05 #4
Hello Chris

I once had a friend named Chris Smith living in San Diego... Are you him? If so drop me an email @ ya**@yamabiz.co

Yam

----- Chris Smith wrote: ----

Experienced members

Can someone point me in the direction of utilizing some existing object
that where writing in java. I was given a .jar file with some documentatio
about the classes within it

I am trying to create a instance of these classes from within vb.net (V
2003 Framework 1.1). Can someone point me in the direction I need to go o
some good documentation

Thanks

Chris Smit

Nov 20 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
10828
by: Fu Bo Xia | last post by:
the java.lang.Object.forName method takes a java class name and returns a Class object associated with that class. eg. Class myClass = Object.forName("java.lang.String"); by if i only know the absolute file name of a .class file eg. C:\myJava\myApp.java, then how do i translate this file name to a java class name the Object.forName method...
0
6788
by: Ravi Tallury | last post by:
Hi We are having issues with our application, certain portions of it stop responding while the rest of the application is fine. I am attaching the Java Core dump. If someone can let me know what the issue is. Thanks Ravi
8
1687
by: Beatrice Rutger | last post by:
Hi, I am a previous Micro$oft desertee (moved from VB/VC++ to Java before this whole DOTNET thing) because I had several issues with Micro$oft. I am not completely in love with Windoze, but I have to say that Java SWING sucks BIG TIME for developing and deploying desktop applications (especially on Windoze). Unfortunately, I have been...
133
8456
by: Gaurav | last post by:
http://www.sys-con.com/story/print.cfm?storyid=45250 Any comments? Thanks Gaurav
18
2975
by: Matt | last post by:
I try to compare the default constructor in Java and C++. In C++, a default constructor has one of the two meansings 1) a constructor has ZERO parameter Student() { //etc... } 2) a constructor that all parameters have default values
1
9597
by: David Van D | last post by:
Hi there, A few weeks until I begin my journey towards a degree in Computer Science at Canterbury University in New Zealand, Anyway the course tutors are going to be teaching us JAVA wth bluej and I was wondering if anyone here would be able to give me some tips for young players such as myself, for learning the language. Is this the...
12
5896
by: Mark Fink | last post by:
I wrote a Jython class that inherits from a Java class and (thats the plan) overrides one method. Everything should stay the same. If I run this nothing happens whereas if I run the Java class it says: usage: java fit.FitServer host port socketTicket -v verbose I think this is because I do not understand the jython mechanism for...
458
20848
by: wellstone9912 | last post by:
Java programmers seem to always be whining about how confusing and overly complex C++ appears to them. I would like to introduce an explanation for this. Is it possible that Java programmers simply aren't smart enough to understand C++? This is not merely a whimsical hypothesis. Given my experience with Java programmers --- the code they...
15
2774
by: Xah Lee | last post by:
On Java's Interface Xah Lee, 20050223 In Java the language, there's this a keyword “interface”. In a functional language, a function can be specified by its name and parameter specs. For example: f(3) f(3, )
2
3962
by: astolpho | last post by:
I am using a slightly outdated reference book on J2EE programming. It gives 2 methods of creating a database used in its casestudies. The first is an ANT script that gives the following output: D:\original\CaseStudy-2-5\CaseStudy\Day02\exercise>asant database Buildfile: build.xml env-user: prop-user: set-user:
0
7479
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, well explore What is ONU, What Is Router, ONU & Routers main...
0
7411
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7926
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7439
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7773
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
5987
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development projectplanning, coding, testing, and deploymentwithout human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5343
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupr who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3450
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1028
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.