Results 1 to 5 of 5
  1. #1
    khajalid is offline Member
    Join Date
    Sep 2008
    Posts
    31
    Rep Power
    0

    Default Connecting c with java

    I have library in visual c++ for some code.Now i want that from visual c++ under some condition java files should be called.Can i do this? If yes then how

  2. #2
    danielstoner's Avatar
    danielstoner is offline Senior Member
    Join Date
    Apr 2008
    Location
    Canada
    Posts
    191
    Rep Power
    7

    Default

    Yes it is possible with JNI. You can call C/C++ code from Java and Java code form C/C++ code. But this is not trivial...
    Daniel @ [www.littletutorials.com]
    Language is froth on the surface of thought

  3. #3
    khajalid is offline Member
    Join Date
    Sep 2008
    Posts
    31
    Rep Power
    0

    Default

    Can i get the sample code please.

  4. #4
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,315
    Blog Entries
    1
    Rep Power
    26

    Default

    Can i get the sample code please.
    You have no idea of the magnitude of this question do you? Please check out and study some JNI tutorials and info sites:
    Java Native Interface: Programmer's Guide and Specification
    Chapter 5: JNI Technology
    Java Native Interface - Wikipedia, the free encyclopedia

    Then come back, oh, in say a month, and you'll understand.
    Last edited by Fubarable; 09-11-2008 at 03:43 AM.

  5. #5
    fishtoprecords's Avatar
    fishtoprecords is offline Senior Member
    Join Date
    Jun 2008
    Posts
    571
    Rep Power
    7

    Default

    Crosspost. Also in networking.

    @khajalid, pick one forum section, and ask once. duplicate postings tend to cause folks to get a lot less helpful quickly.

Similar Threads

  1. Connecting c with java
    By khajalid in forum Networking
    Replies: 6
    Last Post: 12-10-2008, 10:35 PM
  2. Java connecting to sql server 2005
    By pelegk2 in forum JDBC
    Replies: 0
    Last Post: 04-05-2008, 10:17 PM
  3. Connecting to DB from Applet
    By ibanez270dx in forum New To Java
    Replies: 1
    Last Post: 11-14-2007, 12:51 AM
  4. Problem connecting to my Database using Java
    By javaneed in forum New To Java
    Replies: 3
    Last Post: 08-13-2007, 10:35 AM
  5. Error While connecting to Oracle thru JAVA
    By javaneed in forum Advanced Java
    Replies: 1
    Last Post: 08-11-2007, 11:05 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •