473,785 Members | 2,640 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1817
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
1679
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 the comments work etc and everything is intergrated nicely in the database. Now im parsing the comments back out to the user and replacing string like :) with emoticons etc. It works perfectly and i'm seriously pleased with myself (ok ok remember i...
4
3128
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 a table. Please note a couple of things. The second line of text in the right-hand columns don't wrap beneath the italic heading. The first column contains a heading (of sorts, not an actual <hx> element) that is aligned to the right. Any...
11
1374
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 anchor (<A NAME={date}></A>), relating to the date that they selected. As you may have worked out by now, I am a real novice when it comes to java script. I have a browse using Google, but so far no luck
3
6776
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 (https://bugzilla.mozilla.org/show_bug.cgi?id=302710), FireFox does not listen to the textarea.wrap = 'soft' command. Because I want the script to be cross-browser compatible, someone suggested to remove and immediately add a node to the DOM, so I now have: ...
8
2174
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
2720
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 provided as .jar file. TIA
3
14588
by: Jason | last post by:
Anyone know how to make the text wrap in a text box of a DetailsView?
3
5419
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 Posts with the following HTTP Headers: Content-Type: text/XML Content-Length: {Length of content} The sample code they sent on how to access the API are .bat files that call their API via JAVA. Here is one of the .bat files: @echo off call...
65
3929
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
9481
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,...
0
10155
jinu1996
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 captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10095
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
9953
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
8978
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
7502
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
6741
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
4054
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
2
3655
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.