September 04, 2010, 02:43:16 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  Home Help Media Affiliates Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: Java With C++ Using JNI  (Read 1729 times)
0 Members and 1 Guest are viewing this topic.
jazz2k8
Yo Maaan Cheer Up...
Member
*

Reputation: 0
Offline Offline
Posts: 82
Referrals: 0

WWW Awards
« on: July 12, 2008, 03:14:27 AM »

I am writing a java application by using C++.Can you help me in this.

I came to know that using JNI, Java can Communicate with C++ is used for this.So,if possible, can you provide some links or Sample code.

Thanks for your time and support...

Jazz
Logged

visit my blog: www.yoteam.co.cc
Javaforums.net :: a community about Java software development.
« on: July 12, 2008, 03:14:27 AM »

Your Ad Here
 Logged
Arkie
Javaforums.net Admin
Senior Member
*

Reputation: 16
Developer @ Javaforums.net
Offline Offline
Posts: 2620
Referrals: 13

WWW Awards
« Reply #1 on: July 12, 2008, 06:33:24 AM »

I haven't done any JNI stuff myself do i can't help you there but here's a link with a tutorial: http://www.codetoad.com/java_simpleJNI.asp
Logged

Java and .NET developer

To students: It doesn't matter how hard you've studied; the material won't be on the exam anyway.

Fan of http://www.retardedweblogger.com
Oh man, too much stuff to do in so little time.

http://img222.imageshack....707/arkietomatoesmall.jpg
Blizzcon 2k9 Grubby and Cassandra Ng engaged ! <3
Triple D, eerste Denken Dan Doen
jazz2k8
Yo Maaan Cheer Up...
Member
*

Reputation: 0
Offline Offline
Posts: 82
Referrals: 0

WWW Awards
« Reply #2 on: July 14, 2008, 01:59:41 AM »

Thanks for ur help
Logged

visit my blog: www.yoteam.co.cc
jazz2k8
Yo Maaan Cheer Up...
Member
*

Reputation: 0
Offline Offline
Posts: 82
Referrals: 0

WWW Awards
« Reply #3 on: July 14, 2008, 02:17:31 AM »

How to include C Header files in java??
Logged

visit my blog: www.yoteam.co.cc
Arkie
Javaforums.net Admin
Senior Member
*

Reputation: 16
Developer @ Javaforums.net
Offline Offline
Posts: 2620
Referrals: 13

WWW Awards
« Reply #4 on: July 14, 2008, 06:52:28 AM »

How to include C Header files in java??

This looks like a tutorial that you could use: http://www.javaworld.com/...avatips/jw-javatip23.html

ps i'm wondering what you are coding =)
Logged

Java and .NET developer

To students: It doesn't matter how hard you've studied; the material won't be on the exam anyway.

Fan of http://www.retardedweblogger.com
Oh man, too much stuff to do in so little time.

http://img222.imageshack....707/arkietomatoesmall.jpg
Blizzcon 2k9 Grubby and Cassandra Ng engaged ! <3
Triple D, eerste Denken Dan Doen
jazz2k8
Yo Maaan Cheer Up...
Member
*

Reputation: 0
Offline Offline
Posts: 82
Referrals: 0

WWW Awards
« Reply #5 on: July 14, 2008, 07:49:25 AM »

Ahhhhhhh....M my self confusing wat m i doing :-)

Actually building an application using Java(Invoice Management system) using a SDK(OCR Engine) Documentation which is in .net and C....so trying to convert C lang prog into Java.

But i think it wont be that much esy task...:-(

....anywayz thnx for time and support..i ll try out this...if u ry ny sample examples can you post here...it will b very help ful to me..
thanks
Logged

visit my blog: www.yoteam.co.cc
Arkie
Javaforums.net Admin
Senior Member
*

Reputation: 16
Developer @ Javaforums.net
Offline Offline
Posts: 2620
Referrals: 13

WWW Awards
« Reply #6 on: July 14, 2008, 07:52:12 AM »

You can't "convert" a c/c++ file into Java but you can load ithe c/c++ file and use it's methods. Check out the links i posted above.

btw, sounds like a cool project  005
Logged

Java and .NET developer

To students: It doesn't matter how hard you've studied; the material won't be on the exam anyway.

Fan of http://www.retardedweblogger.com
Oh man, too much stuff to do in so little time.

http://img222.imageshack....707/arkietomatoesmall.jpg
Blizzcon 2k9 Grubby and Cassandra Ng engaged ! <3
Triple D, eerste Denken Dan Doen
jazz2k8
Yo Maaan Cheer Up...
Member
*

Reputation: 0
Offline Offline
Posts: 82
Referrals: 0

WWW Awards
« Reply #7 on: July 14, 2008, 08:35:55 AM »

:-)
Logged

visit my blog: www.yoteam.co.cc
Javaforums.net :: a community about Java software development.
   

 Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.10 | SMF © 2006-2009, Simple Machines LLC
TinyPortal v0.9.8 © Bloc
Valid XHTML 1.0! Valid CSS!
Page created in 0.215 seconds with 39 queries.

Google visited last this page August 27, 2010, 05:14:26 PM