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.
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.