C++ with java

hello,would u tell me please. how can i run C++ code with in a java program.Thanks in Advance
[114 byte] By [raviadhaa] at [2007-10-3 4:30:58]
# 1

Look at JNI. Google for it. It not something you can learn with a quick answer on a forum. On forum it would wind up being a long involved discussion (probably with a lot of confusion thrown into the mix). So yur best bet, is as mentioned, search for the terms Java JNI and possibly Tutorial and/or examples and have fun.

masijade.a at 2007-7-14 22:34:18 > top of Java-index,Java Essentials,Java Programming...
# 2

Hello masijade,

Thanks you for reply,

i done all excepting .dll

i tried this but no luch

D:\JNI>cl -Im:c:\j2sdk1.4.2_08\include -Im:c:\j2sdk1.4.2_08\include\win32 -LD HelloWorld.cpp -FeHelloWorldImp.dll

my jdk path isc:\j2sdk1.4.2_08

it gives me error

D:\JNI>cl -Im:c:\j2sdk1.4.2_08\include -Im:c:\j2sdk1.4.2_08\include\win32 -LD

HelloWorld.cpp -FeHelloWorldImp.dll

Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 12.00.8168 for 80x86

Copyright (C) Microsoft Corp 1984-1998. All rights reserved.

HelloWorld.cpp

HelloWorld.h(2) : fatal error C1083: Cannot open include file: 'jni.h': No such

file or directory

Plaease help me to short out this problem.

raviadhaa at 2007-7-14 22:34:18 > top of Java-index,Java Essentials,Java Programming...
# 3
hii friend...my reply may be late.if you are still finding it a bit difficult,you can get all the details from the following link http://www.nag.co.uk/IndustryArticles/CallingCLibraryRoutinesfromJava.pdf#search=%22CallingCLibraryRoutinesfromJava.pdf%22
rbstara at 2007-7-14 22:34:18 > top of Java-index,Java Essentials,Java Programming...
# 4
hello rbstar,thanks for reply,i am have above mentioned error plz help me short out this.Thanks
raviadhaa at 2007-7-14 22:34:18 > top of Java-index,Java Essentials,Java Programming...