?
Solved

Embedding a JFrame into a Win32 C++ application

Posted on 2004-11-02
3
Medium Priority
?
422 Views
Last Modified: 2010-04-01
Greetings.  I'm new to the world of JNI, and I'm also relatively new to the world of MFC.  I have a java swing program that is a JFrame and I'd like to embed this frame into a legacy C++ application built using MFC.  Can anyone point me to a good example or tutorial of this, or provide some code snippets that might get me on the right path?

Thanks in advance,
Rick
0
Comment
Question by:slikrik98
  • 2
3 Comments
 
LVL 2

Expert Comment

by:pb_india
ID: 12473685
0
 

Author Comment

by:slikrik98
ID: 12474118
I had actually already tried that sample.  It compiled fine, however it crashes when i try to run it.  I've set the "JAVA_HOME" environment variable to my j2sdk1.4.2_04/jre/bin folder... is that correct?

0
 
LVL 2

Accepted Solution

by:
pb_india earned 1000 total points
ID: 12474264
Try to set:

JAVA_HOME=d:\j2sdk1.4.2_04
0

Featured Post

Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

What is C++ STL?: STL stands for Standard Template Library and is a part of standard C++ libraries. It contains many useful data structures (containers) and algorithms, which can spare you a lot of the time. Today we will look at the STL Vector. …
  Included as part of the C++ Standard Template Library (STL) is a collection of generic containers. Each of these containers serves a different purpose and has different pros and cons. It is often difficult to decide which container to use and …
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.
Suggested Courses

600 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question