Thread: How to use Java with C++

  1. #1
    Registered User
    Join Date
    Aug 2002
    Posts
    22

    How to use Java with C++

    I have a robust Java charting package that I need to use in a C++ COM object. I don't know too much about how to get Sun Java and C++ to work together, so I need some suggestions on how to approach the integration. Currently, the only thing I've been able to think of is to wrap the Java charting package in a Java application and have the C++ COM object spawn the Java app as a seperate process and feed it data.

    Furthermore, this COM object would called from ASP. I would like to call the Java package directly from ASP, but I have no clue how to do this.

    Also, does anyone know of a very robust C++ charting package that can be used freely? This would cut out the Java integration problem completely.

    Thanks,
    Ryan
    Never give an Ewok a thermial detonator

  2. #2
    xmdvp
    Guest
    easy: wrap your java package into an activeX component. then call your activeX component from the ASP. No need to have C++ and Java mixed up. The result is a COM object.

  3. #3
    Registered User
    Join Date
    Aug 2002
    Posts
    22
    You can do that with Sun Java? I knew you could with MS's Java implementation, but didn't know you could with Sun's. I'll take a look at the project options that Forte/Netbeans gives me. Thanks.
    Never give an Ewok a thermial detonator

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. C#, Java, C++
    By incognito in forum A Brief History of Cprogramming.com
    Replies: 10
    Last Post: 10-05-2004, 02:06 PM
  2. First Java Class at college
    By GanglyLamb in forum A Brief History of Cprogramming.com
    Replies: 24
    Last Post: 09-29-2004, 10:38 PM
  3. The Java language is being expanded
    By DavidP in forum A Brief History of Cprogramming.com
    Replies: 26
    Last Post: 06-11-2004, 09:07 PM
  4. Java woes
    By DavidP in forum A Brief History of Cprogramming.com
    Replies: 15
    Last Post: 07-06-2003, 12:37 AM
  5. C or Java as a first language
    By CorJava in forum A Brief History of Cprogramming.com
    Replies: 34
    Last Post: 10-23-2002, 05:12 PM