473,397 Members | 2,084 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,397 software developers and data experts.

RH8: Java Src to C++ Shared Libs

I have a C++ Red Hat 8.0 program that will need
to use some utilities written in Java. I would
like to a generate shared library from the Java
code that will be linked into the C++ program
so that everything runs in one process.
Can this be done? Where do I begin?

Thanks in advance,
Mike.
Jul 17 '05 #1
2 1670
Mike - EMAIL IGNORED wrote:
I have a C++ Red Hat 8.0 program that will need
to use some utilities written in Java. I would
like to a generate shared library from the Java
code that will be linked into the C++ program
so that everything runs in one process.
Can this be done? Where do I begin?

Thanks in advance,
Mike.


Calling Java from C++ is easy using JNI, wile not as easy as calling C++
from java basically you can load the jvm.dll (or libjvm.so on
UNIX/Linux) and make calls into it. Look on Sun's web site for a JNI
tutorial.

Jul 17 '05 #2
Mike - EMAIL IGNORED wrote:
I have a C++ Red Hat 8.0 program that will need
to use some utilities written in Java. I would
like to a generate shared library from the Java
code that will be linked into the C++ program
so that everything runs in one process.
Can this be done? Where do I begin?

Thanks in advance,
Mike.


Jul 17 '05 #3

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

Similar topics

4
by: Laura P | last post by:
Hi, I wasn't sure whether this should be posted in the Java are or in a Solaris thread, so I shall post it in both. Sorry for the duplication. I am new to Solaris and am having trouble...
114
by: Maurice LING | last post by:
This may be a dumb thing to ask, but besides the penalty for dynamic typing, is there any other real reasons that Python is slower than Java? maurice
3
by: Mike - EMAIL IGNORED | last post by:
I have a C++ Red Hat 8.0 program that will need to use some utilities written in Java. I would like to a generate shared library from the Java code that will be linked into the C++ program so...
1
by: Darin | last post by:
I have an application that is one EXE with mutliple DLL's. In one of the DLL's (libs.dll) that the EXE has refeneced, I have: Public Class Globals Public Shared gLogin as String End Class ...
9
by: Dwight | last post by:
I have several projects that use the same dlls. When deploying these projects, is there a way that I can have all the shared dlls in one subdirectory and the project specific files in another? ...
1
by: vasilip | last post by:
root@Server:/opt/ibm/db2/V9.1/bin# ./db2adutl ../db2adutl: error while loading shared libraries: libApiDS.so: cannot open shared object file: No such file or directory I just installed db2 9.1...
3
by: S S | last post by:
Hi Are there some known issues using STL with shared library. Recently I got some crash for which the reason I dont see any, and searching on goolge shown some such issues with shared library. ...
1
by: tvnaidu | last post by:
I have windows code to port to Linux, there are some static libraries like xyz.lib, also shared libs ABC.dll, I have to convert those static and shared libs (basically static will be used to make...
0
by: tvnaidu | last post by:
created a shared library .so file, using "gcc -shared ...." command, when I did "ldd xyz.so", I cannot see those static libs which are added with -l option, also I gave path -L/opt/lib where I copied...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
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...
0
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,...
0
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...

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.