473,386 Members | 1,726 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

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 6984
* "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.com/products/ja.net/>
<http://www.remotesoft.com/javanet/index.html>
<http://www.jnbridge.com/1dot2beta.htm> bzw. <http://www.jnbridge.com>
<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***************@tk2msftngp13.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.com/products/ja.net/>
<http://www.remotesoft.com/javanet/index.html>
<http://www.jnbridge.com/1dot2beta.htm> bzw. <http://www.jnbridge.com>
<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****************@TK2MSFTNGP11.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***************@tk2msftngp13.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.com/products/ja.net/>
<http://www.remotesoft.com/javanet/index.html>
<http://www.jnbridge.com/1dot2beta.htm> bzw. <http://www.jnbridge.com>
<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
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...
0
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...
8
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...
133
by: Gaurav | last post by:
http://www.sys-con.com/story/print.cfm?storyid=45250 Any comments? Thanks Gaurav
18
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...
1
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...
12
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...
458
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...
15
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....
2
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: ...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

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.