473,323 Members | 1,622 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,323 software developers and data experts.

Porting C++ API to Java

365 100+
Is there any tool to port C++ APi to Java?. Or Is it manually portable any C++ to Java?. appreciated. It is very straight forward C++ code (like C functions).
Jul 28 '11 #1
7 2633
If you want to use C++ API in Java, you should interest in 'native' keyword. In this way you could call C/C++ functions in Java program.
Jul 29 '11 #2
Dheeraj Joshi
1,123 Expert 1GB
You can use SWIG too.
Check this link.

Regards
Dheeraj Joshi
Jul 29 '11 #3
tvnaidu
365 100+
I have pretty straight C++ api for portOpen, PortClose, sendMsg and etc., I need to port these into java, if I use "native" before C++ api, I can call C++ in Java right?. but I need to port completely those C++ to java.
Jul 29 '11 #4
Dheeraj Joshi
1,123 Expert 1GB
You want your code to be independent of any C++ code? You want to port all C++ code to Java?

Regards
Dheeraj Joshi
Aug 1 '11 #5
Only if you call this method, which you make native. Cannot make all API native. Only methods can be native.
Aug 1 '11 #6
Dheeraj Joshi
1,123 Expert 1GB
I am little bit confused about the requirement. If there is a way to call native C++ calls directly from Java, why can't you call it?

Regards
Dheeraj Joshi
Aug 1 '11 #7
tvnaidu
365 100+
Correct, I want to port.
Aug 1 '11 #8

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: Patrick | last post by:
Hello all! I am porting an application from C++ to Java and have run into a problem using the DataInputStream reader object. The file I am trying to read in is anywhere from 20 to 60 MB and has a...
14
by: Wolfgang Keller | last post by:
Hello, as a non-developer I am currently participating in an industrial "research" project to develop a so-called "web application". This application serves at the same time as middleware to...
13
by: cjl | last post by:
Hey all: I'm working on a 'pure' python port of some existing software. Implementations of what I'm trying to accomplish are available (open source) in C++ and in Java. Which would be...
6
by: Tone | last post by:
I've written a large suite of ANSI C routines for a virtual hand-held device. A hardware manufacturer with whom we wish to do business prefers C#. My understanding of C# is somewhat limited. I...
2
by: yaron | last post by:
Hi, for porting java to c# i need to know: What is the C#.NET equivalent for java.net.SocketAddress and java.nio.ByteBuffer ? Thanks.
0
by: yaron | last post by:
Hi, 1. How can i know that a socket finished the CONNECT operation or failed when i use the Socket.Select method to monitor a list of sockets ? 2. Is there is any more detailed document on...
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...
2
by: sandip desale | last post by:
Dear All, We have a Tcl/Tk application written using Python 2.2. Using this application we want to call some customizable Java APIs. I tried porting Tcl/Tk application to Jython but not able to do...
148
by: BillJosephson | last post by:
Want to do OOP. Does c++ have all the abilities of java, or is it some subset? Thanks...
5
by: E2CMonkeyBoy | last post by:
Quick Intro: was thumbing through a book on Programming Windows in C# and was wondering if I shouldnt fork my developement: I've written a program in windows script, and now a more robust version...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.