• Post Reply Bookmark Topic Watch Topic
  • New Topic

JNI Code Sample  RSS feed

 
Asim Ali
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am working on a designing tool for Barcode for linux enviornment. Now my problem is to integrate pre written VC++ DLL in Java. Some how i made few programs. But i want some real standard code if anybody help me i will be very thankfull.
Plaese send cc to asimnet2003@yahoo.com.
Thanks!
 
rom chatterjee
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why are you wanting to integrate VC++ with Java. Are you aiming eventually for a full Java solution but need to use legacy code for now? In which case decide no your ninterfaces and use JNI. If it is because you have too much VC++ code to port then maybe you shouldnt be adding Java into the mix... BTW I think Java is great and getting better, but it is not the always the answer to every problem!
Check out code samples
 
Mathews P Srampikal
Ranch Hand
Posts: 211
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am passing a vector containing 10 "String" in javca native method......Can anybody tell me how write Java equivalent C methods(5 lines May be ) to acces that vector in C and print all the values and legth of the Strings contained.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!