473,761 Members | 10,057 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

integrate c++ in Java

How can I integrate c++ programs inside a GUI java interface?

I would like to get the results from a c++ program and integrate them
inside a java GUI.

thanks

Marcelo
Sep 14 '05 #1
5 2650
Marcelo wrote:
How can I integrate c++ programs inside a GUI java interface?

I would like to get the results from a c++ program and integrate them
inside a java GUI.


This is a bit off topic here. A better place to ask would be a Java
forum since this newsgroup is for discussions of the C++ language apart
from platform-specific or third-party applications.

That being said, I'd suggest you look into Java's Remote Method
Invocation (RMI) and see how it compares to CORBA, COM, and RPC, which
are all third-party libraries for C++ (and in the case of RPC, C) that
do approximately the same thing.

Cheers! --M

Sep 14 '05 #2
Marcelo wrote:
How can I integrate c++ programs inside a GUI java interface?

I would like to get the results from a c++ program and integrate them
inside a java GUI.

thanks

Marcelo


JNI might be your friend (and Google also...).

In what form do you get the results from the C++ program ?

/S.
Sep 14 '05 #3
The results that I get from c++ are just numbers. So the only thing that
I want to do is to get thos numbers and draw them in a GUI (in real-time).

I hope with JNI it works....

thank you

Marcelo
Sep 14 '05 #4
* Marcelo:
How can I integrate c++ programs inside a GUI java interface?

I would like to get the results from a c++ program and integrate them
inside a java GUI.


As others have mentioned, Java's JNI is one way to go.

But you might consider some simpler solutions first.

E.g., writing data to a file, socket or (Windows) mailslot, or the
time-honored notion of a pipe.

There are also more complicated solutions, e.g. a web service.

Such solutions can be preferable because they're more language independent.

--
A: Because it messes up the order in which people normally read text.
Q: Why is it such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?
Sep 14 '05 #5


Marcelo wrote:
How can I integrate c++ programs inside a GUI java interface?

I would like to get the results from a c++ program and integrate them
inside a java GUI.

thanks

Marcelo


You can use a messaging based approach. Take a lpook at the spread
communications toolkit. There are C/C++ as well a Java version for the
library.

Alternatively, use simple TCP/IP and pass data as simple ASCI text.

Sep 15 '05 #6

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

Similar topics

7
2494
by: rockwell | last post by:
Hi groups i want to write a program ro numerically integrate an equation using the rectangle method,i know a little bit about the rectangle method but never used it abd dont quite really know how to program it.if you guys know how to do it, can you help me out. the equation looks like eq = ∫ sin(θ*Π) / cos(2*Π*θ) ,the integration is from 0 to 1000. Thanks in advance,
0
1847
by: eric | last post by:
Hi, I would like to build the inParams SQLJ sample procedure from the Development Center. if I declare a #sql public iterator SpIterat, the Development Center complains this should be in a separate file. if I declare a #sql iterator SpIterat, the Development Center complains the statements #sql updateIterator are not Java ...
0
1232
by: BFM | last post by:
Hello, I'm just beginning a project, and looking through much documentation, and trying to figure out the best platform to develop the core of my project in/on. The project will consist of a server/client relationship, with both the server and client needing access to much of the Windows API. It will need to integrate with Outlook, and probably access to other selected Window programs.
3
5492
by: hwang2404 | last post by:
I have PHP 5.0.5 and java 1.2.2. I am trying to integrate them together. I have configure the php.ini as following: ;This must point to the location of php_java.dll. java.library.path = "C:\php\ext" ; This points to the directory where your Java ; classes will be stored. You can designate multiple ; paths, each path separated by a semicolon. ; It must also include the location of php_java.jar java.classpath =...
0
1159
by: rajaramanindia | last post by:
I have some doubt in integration. We have a java based web applications and .net based windows application. Example" Java Web applications having a grid with some datas. when the user will clicked the button (from web application), then all the grid datas should be populated in windows application gridview. It will happen concurrency. How will design the application? Please tell me some feasiable solutions. Regards, Raman.
1
3651
by: BanuPriyag | last post by:
Hi All Can we open Microsoft Word application in Java. Inside java interfaceMicrosoft word application should get opened and not the word file. One of the solution i received was using JIntegra's com object, then i came to know it was a thrid party tool. Is there is any other single way to make this without using thirdparty tool. If anybody have answer kindly post that for me.
1
1939
by: Prajaktaj | last post by:
Hi All, I have created one web service in java which contain one web method called getItemDetails(). I have also created one web service in .Net which contains another 4 web methods. I want to integrate the java web service in .Net web service. For this purpose I have added the web reference of .WSDL file in to .Net web service. And by creating the object of that web service I have called getItemDetails() method. when I tried running...
5
6713
by: najmi | last post by:
hai.. i hava use FullCalendar in my application.i try to reload event into the calendar but it doesn`t work.here is my code <%@ page import="java.util.HashMap;" %> <%@ page import="java.util.Map;" %> <%@ page import="com.google.gson.Gson;" %>
1
2529
by: najmi | last post by:
hai, i have one problem to integrate ms access and mysql together using jsp.my error is it can not find the driver for mysql..here is my code <%@ page import="java.sql.*" %> <% Connection odbcconn = null; Connection jdbcconn = null; PreparedStatement readsms = null;
0
9521
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, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9333
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 synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
9900
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 most users, this new feature is actually very convenient. If you want to control the update process,...
0
9765
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 choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8768
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7324
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 instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5361
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3863
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
3
2733
bsmnconsultancy
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 effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.