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

Using C++ to wrap Java

Hi,

I'm writing a windows application in C++. However, much of the
application's logic is already written in Java. I'd like to be able
to make use of that code from within my C++ code. How can this be
accomplished? I'd appreciated any thoughts or good internet reference
material on the subject.

Thanks,
cpp
Jul 22 '05 #1
2 1799
cppaddict wrote:
Hi,

I'm writing a windows application in C++. However, much of the
application's logic is already written in Java. I'd like to be able
to make use of that code from within my C++ code. How can this be
accomplished? I'd appreciated any thoughts or good internet reference
material on the subject.

Thanks,
cpp

Check out for JNI.

http://java.sun.com/j2se/1.4.2/docs/...jni/index.html .

This is out of topic of current newsgroup. Hence setting follow-up to
the relavant one (hopefully ;) - comp.lang.java.programmer .

HTH

--
Karthik
Humans please 'removeme_' for my real email.
Jul 22 '05 #2
cppaddict wrote:
Hi,

I'm writing a windows application in C++. However, much of the
application's logic is already written in Java. I'd like to be able
to make use of that code from within my C++ code. How can this be
accomplished? I'd appreciated any thoughts or good internet reference
material on the subject.


This is off-topic here. What you want is the JNI (java native
interface.) First visit java.sun.com, then post in
comp.lang.java.programmer if you need more help.
--
Daniel Sjöblom
Remove _NOSPAM to reply by mail
Jul 22 '05 #3

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

Similar topics

0
by: descds | last post by:
OK im prety much a newbie at PHP but it has me hooked. Im writing a comment system for one of our modules on phpnuke. Its all going very well, well should i say WAS going very well :) Ok all...
4
by: news.ntlworld.com | last post by:
Hi everyone. I'm trying to emulate a simple table layout using CSS only. This hyperlink (http://homepage.ntlworld.com/r.morris7/tabledemo.htm) shows the intended result, which I've knocked up using...
11
by: WindAndWaves | last post by:
Hi Gurus What I would like to do is to setup a little form where people can put in a date (e.g. Day: Month..... Year , where ... is user input) and subsequently, will take them through to an...
3
by: Fluffy Convict | last post by:
I am trying to write a script that changes a textarea wrap realtime, basically like you can switch to and from "wordwrap" in Microsofts Notepad. Because of a bug...
8
by: name | last post by:
Back again for more critique... <grin> ------------------------------------------------ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <limits.h> #define MAX 10000
6
by: Eric Moreau | last post by:
Hi I have to use Java classes from a VB.Net application. I never did that. How can I use these classes ? The Java library was provided to me by FundServ. Anyone know it? The library is...
3
by: Jason | last post by:
Anyone know how to make the text wrap in a text box of a DetailsView?
3
by: sj3vans | last post by:
I'm trying to integrate a ColdFusion application with a webAPI provided by another company to access their services. Their requirements are that requests should be generated using standard HTTP...
65
by: Arjen | last post by:
Hi, Form a performance perspective, is it wise to use the ref statement as much as possible? Thanks! Arjen
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
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...
1
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: 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...
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...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.