hi.everyone..
Suppose, i have a Java class:
public class Test{
public String testMethod(Stri ng args){
return "Hi I am Java";
}
}
How could .net call method "testMethod "? Any suggestions,or related links?
Also welcome to discuss via msn : seu_li at hotmail dot com.
thanks any replies in advance. 5 1996
The easiest way is to compile the Java code with J# in order to build a .NET
DLL. Then you can reference the DLL from other .NET projects n any language.
"SmartGuy" <Sm******@discu ssions.microsof t.com> wrote in message
news:D5******** *************** ***********@mic rosoft.com... hi.everyone.. Suppose, i have a Java class:
public class Test{ public String testMethod(Stri ng args){ return "Hi I am Java"; } } How could .net call method "testMethod "? Any suggestions,or related links? Also welcome to discuss via msn : seu_li at hotmail dot com. thanks any replies in advance.
Ed Kaim [MSFT] <ed****@online. microsoft.com> wrote: The easiest way is to compile the Java code with J# in order to build a .NET DLL. Then you can reference the DLL from other .NET projects n any language.
Well, that's only the easiest way if the Java code only requires Java
1.1, isn't it? (Unless I've misread something, J# doesn't support
Java2, i.e. Java 1.2 and higher.)
Another possibility is a Java<->.NET bridge: see http://j-integra.intrinsyc.com/
--
Jon Skeet - <sk***@pobox.co m> http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
perhaps this article will fill in some of the blanks for you. http://www.devx.com/interop/Article/19928
--- Nick
"SmartGuy" <Sm******@discu ssions.microsof t.com> wrote in message
news:D5******** *************** ***********@mic rosoft.com... hi.everyone.. Suppose, i have a Java class:
public class Test{ public String testMethod(Stri ng args){ return "Hi I am Java"; } } How could .net call method "testMethod "? Any suggestions,or related
links? Also welcome to discuss via msn : seu_li at hotmail dot com. thanks any replies in advance.
"Jon Skeet [C# MVP]" <sk***@pobox.co m> wrote in message
news:MP******** *************** *@msnews.micros oft.com... Ed Kaim [MSFT] <ed****@online. microsoft.com> wrote: The easiest way is to compile the Java code with J# in order to build a
..NET DLL. Then you can reference the DLL from other .NET projects n any
language. Well, that's only the easiest way if the Java code only requires Java 1.1, isn't it? (Unless I've misread something, J# doesn't support Java2, i.e. Java 1.2 and higher.)
Another possibility is a Java<->.NET bridge: see http://j-integra.intrinsyc.com/
Since we're mentioning bridging products, we should also mention
JNBridgePro. See www.jnbridge.com.
BTW, if you only have binary for your Java code, you pretty much need a
bridge or similar technology to accomplish the interop.
Wayne
_______________ _______________ ______
Wayne Citrin
JNBridge, LLC ci****@jnbridge .com www.jnbridge.com
Spanning the Worlds of Java and .NET
_______________ _______________ ______
Wayne Citrin <ci****@jnbridg e.com> wrote: Another possibility is a Java<->.NET bridge: see http://j-integra.intrinsyc.com/
Since we're mentioning bridging products, we should also mention JNBridgePro. See www.jnbridge.com.
BTW, if you only have binary for your Java code, you pretty much need a bridge or similar technology to accomplish the interop.
I knew there was another popular one - just couldn't remember the name.
Apologies :(
--
Jon Skeet - <sk***@pobox.co m> http://www.pobox.com/~skeet
If replying to the group, please do not mail me too This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: parthan |
last post by:
We are running our c++ program as Windows services which uses JNI.
> Program is getting CLASSPATH env variable correctly and also
> initializes JVM successfully. After initializing JVM, programs makes a
> JNI call FindClass() for getting java class.But FindClass method
> returns NULL even though java class exists in the CLASSPATH.
>
> Same...
|
by: Ayesha Ahsan |
last post by:
Hi,
I use Runtime.getRuntime().exec(command) to make my system call.
For Windows based Dos, i add "cmd /c" before I type in my system
call. So for example make the system call "dir":
String command="cmd /c dir";
Runtime.getRuntime().exec(command);
What is the equivalenr of cmd /c in Unix .
|
by: aychai |
last post by:
Hi all,
I am trying to make use Oracle9i db to call an external .Net Web
Service from a JAva Stored Procedure.
I created the .Net Web Service and use JDeveloper 9.0.3.4Build(1247)
to create the Client Stub Java class(ie: serviceClientStub.java).
Following the instruction from the article"Calling External Web
Service from Java Stored...
|
by: Eugene A |
last post by:
Hello.
In this call from a Java prog to a Oracle SP I am trying to pass along some
varchars and a cursor, but apperently the syntax of the call to the stor
proc is incorrect. What am I doing wrong?
Please help.
Thanks,
|
by: Jean-Marc Blaise |
last post by:
Dear all,
I have simulated the windows MULTI application with a java program calling
the SQLTP1DL proc referenced as DB2DARI application, on Linux Intel or
ZLinux. If the proc is NOT FENCED, there is no pb and the program works
fine. If either the proc is FENCED, or FENCED THREADSAFE, I get a SQL1042C,
or the instance crashes on ZLinux...
| |
by: karen |
last post by:
Hi all :
this is going to be a long post. So i apologize in
advance :)
i am converting a java program in VB right now. I am a
java programmer by trade. so i am no expert in this
department.
I have written the following three class:
1.icoCORE_test
2.icoMINDB_test
|
by: Steven T. Hatton |
last post by:
I just read §2.11.3 of D&E, and I have to say, I'm quite puzzled by what it
says.
http://java.sun.com/docs/books/tutorial/essential/concurrency/syncrgb.html
<shrug>
--
NOUN:1. Money or property bequeathed to another by will. 2. Something handed
down from an ancestor or a predecessor or from the past: a legacy of
religious freedom....
|
by: Rahul |
last post by:
Hi Everyone,
While working with Java, i came across super() which passes values to
base class constructor from derived class constructor. I was wondering
if this could be implemented in c++ by any mechanism as super is not
supported by c++, atleast by MS vc++ 6.0.
|
by: BigZero |
last post by:
Hello,
can i call Java method.That is java code from php,here what i m
looking for i have class called DB in this class all the DB related
things ,like DB connection DB insert,DB read etc Methods are defined.
"All i m looking for just call the DB method from PHP that Read
data from DB".
|
by: Christopher |
last post by:
Its been awhile and I am rusty.
Can the constructor of my class call another method in the same class
if that other method does not change any member data?
I want to simply have a seperate method that returns a huge string,
that string containing code in another language, which is to be
compiled by a third party API when my object is...
|
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, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
| |
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...
|
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it. ...
|
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...
|
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...
|
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...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...
| |