Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Java control in Windows app?

Java control in Windows app?

Scheduled Pinned Locked Moved C / C++ / MFC
c++javacomquestion
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    Paul Vickery
    wrote on last edited by
    #1

    I have been asked to see if I can use a Java control from within an MFC app. I don't know enough Java to know if this is possible. The control I am trying to hook in is the thinkmap control (http://www.thinkmap.com[^]) Does anyone have any idea of whether this is possible, and if so, how I would go about doing it?


    "The way of a fool seems right to him, but a wise man listens to advice" - Proverbs 12:15 (NIV)

    V P 2 Replies Last reply
    0
    • P Paul Vickery

      I have been asked to see if I can use a Java control from within an MFC app. I don't know enough Java to know if this is possible. The control I am trying to hook in is the thinkmap control (http://www.thinkmap.com[^]) Does anyone have any idea of whether this is possible, and if so, how I would go about doing it?


      "The way of a fool seems right to him, but a wise man listens to advice" - Proverbs 12:15 (NIV)

      V Offline
      V Offline
      V 0
      wrote on last edited by
      #2

      You can port Java code to C++ if that's what you mean. I think it's called JRI but I'm not sure. I have no experience myself though. Hope it helps! "If I don't see you in this world, I'll see you in the next one... and don't be late." ~ Jimi Hendrix

      1 Reply Last reply
      0
      • P Paul Vickery

        I have been asked to see if I can use a Java control from within an MFC app. I don't know enough Java to know if this is possible. The control I am trying to hook in is the thinkmap control (http://www.thinkmap.com[^]) Does anyone have any idea of whether this is possible, and if so, how I would go about doing it?


        "The way of a fool seems right to him, but a wise man listens to advice" - Proverbs 12:15 (NIV)

        P Offline
        P Offline
        palbano
        wrote on last edited by
        #3

        Well the first thing is this, no Java can execute without a JVM context for it to execute in. Therefore you are not going to be able to just "use" a Java component in a Win32 application since there is no JVM context. After that there is a multitude of possibilities. Their web site requires registration to get the White Papers and I don't have any requirements for your application. Therefore I can't make any informed comments on your particular situation.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups