473,395 Members | 2,436 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,395 software developers and data experts.

Just checking.....

Is it possible, from Java, to invoke a .net class and call it's memebers? I
believe the answer to be no, but am also looking for workarounds that people
have come up with.

Thanks
Nov 16 '05 #1
3 1110
another quick comment.

I can make a C# exe and call it from java passing it the appropriate args,
but can the .net exe return a status code back to the calling app directly
without using a file, db, or something in the middle. I think Dos had a
similar capability, just wondering if this is also available in a .net exe.
Prob not.

Thanks

"Chris Fink" <ch*********@hotmail.com> wrote in message
news:eW*************@TK2MSFTNGP10.phx.gbl...
Is it possible, from Java, to invoke a .net class and call it's memebers?
I believe the answer to be no, but am also looking for workarounds that
people have come up with.

Thanks

Nov 16 '05 #2
I know that it is possible to call C# applications from Win32
(non-.NET) executables, so I don't see why it wouldn't be possible to
do from Java. I mean, Java can call "normal" dlls, so that means it can
do anything that, say, C can do, and C can call C#.

The only hitch is that you need to read up on how to load the .NET
framework from within your Java program and then transfer control to
your C# application via the framework.

All of this presumes that your "application" is compiled as a dll, not
an exe. If it's an exe then you have to invoke it as you're doing now.

Try looking here for a start:

http://www.c-sharpcorner.com/Code/20...nmanagedFB.asp

Nov 16 '05 #3
directly it seems to be an issue, but there looks to be options

http://www.google.co.uk/search?sourc...teroperability
[beware of line wraps]

Dan

"Chris Fink" <ch*********@hotmail.com> wrote in message
news:eW*************@TK2MSFTNGP10.phx.gbl...
Is it possible, from Java, to invoke a .net class and call it's memebers?
I believe the answer to be no, but am also looking for workarounds that
people have come up with.

Thanks

Nov 16 '05 #4

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

Similar topics

38
by: Kevin Smith | last post by:
For what it's worth, I wrote the original PEP 318. I probably wasn't qualified, but I just wanted a nice simple way to declare class methods without having to repeat the function name. After...
6
by: Web Developer | last post by:
Hi, I come across the term "type checking" very often in my readings on C++, and have never heard it in Java. Besides the simplistic answer that it checks the "type", what more does it mean? ...
5
by: Mathieu Benoit | last post by:
(I'm having trouble to post this, sorry if this mail comes several times) I'm trying to optimize the use of an integer array class, and I found that one major problem is pointer aliasing. I...
22
by: Qopit | last post by:
Hi there, I'm pretty new to Python and am trying to figure out how to get "will this code compile?"-like code checking. To me this is a pretty basic language/environment requirement, especially...
11
by: Nicky Smith | last post by:
Hello, I'm studying a book on VB.net Win apps, and I'm reading a section on events and delegates and raising events. Is it just me, or is this not just subs dressed up as something else? I...
4
by: Patient Guy | last post by:
Does anyone have any coding rules they follow when doing argument checking? When arguments fail during check, do you return from the call with an ambiguous return value, or do you throw...
18
by: bsruth | last post by:
I tried for an hour to find some reference to concrete information on why this particular inheritance implementation is a bad idea, but couldn't. So I'm sorry if this has been answered before....
16
by: lawrence k | last post by:
I've made it habit to check all returns in my code, and usually, on most projects, I'll have an error function that reports error messages to some central location. I recently worked on a project...
125
by: jacob navia | last post by:
We hear very often in this discussion group that bounds checking, or safety tests are too expensive to be used in C. Several researchers of UCSD have published an interesting paper about this...
7
by: polas | last post by:
Afternoon everyone. I have a quick question about standard C. Generally speaking, in my experience, whenever one accesses an array there is never any bounds checking done (either statically...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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?
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
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...
0
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...
0
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 project—planning, coding, testing,...

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.