Solved

How to connect Java and other languages like C++

Posted on 2001-06-11
6
203 Views
Last Modified: 2010-03-31
Hi,

Is there any way I can connect java applications with other applications that are made in other languages, especially C++? I am trying to have a java GUI interface with all of the buisness logic done in C++ since my program is doing very high level math calculations and C++ is the best way to go for me because of its flexibility. Plus I am looking to have nano-second precision. So anyway, is there a way I can have a java interface with buisness logic coded in some other language, if so where can I find out more about it, I have searched on the net but I think I am using the wrong keywords to search what I want. Can anyone out there please help me and give me some resources on the net or otherwise?

I would appreciate you help very much
Thanks
0
Comment
Question by:seastallon
6 Comments
 
LVL 3

Accepted Solution

by:
exorcist earned 50 total points
ID: 6177370
check out the Java Native Interface JNI and read the tutorial at

http://java.sun.com/docs/books/tutorial/native1.1/index.html

This might be what you are looking for.
0
 
LVL 3

Expert Comment

by:superschlonz
ID: 6178486
Why do you expect to get better precision with the Java classes than with
native functions ?
The Java classes get their time from some native code which you also can
access from C++. If the maximum precision of your OS is a micro second
the Java can't give you more precision.
0
 
LVL 5

Expert Comment

by:nebeker
ID: 6178513
Take a look at CORBA.  It will let you integrate all sorts of langauges.  
0
Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

 

Expert Comment

by:surendraboppana
ID: 6178649
i think u can include snippets of c++/c code in java by using the "native" methods defined in java.
0
 
LVL 3

Expert Comment

by:exorcist
ID: 6179199
CORBA is definitely oversized if you just need a native interface.
0
 
LVL 14

Expert Comment

by:sudhakar_koundinya
ID: 9027543
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:


[points to exorcist]


Please leave any comments here within the next seven days.
 
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!
 
sudhakar_koundinya
EE Cleanup Volunteer
---------------------
If you feel that your question was not properly addressed, or that none of the comments received were appropriate answers, please post your concern in THIS thread.
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

After being asked a question last year, I went into one of my moods where I did some research and code just for the fun and learning of it all.  Subsequently, from this journey, I put together this article on "Range Searching Using Visual Basic.NET …
Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now