-
Jni
Hello,
I'm in a process of writing a C++ application which needs to invoke methods on a Java application.
I'm using JNI and when I run my application, I can see that the object I created connects to the Java application.
However, I'm getting an error:-
Error - [The Microsoft Windows Look and Feel - com.sun.java.swing.plaf.windows.WindowsLookAndFeel] not supported on this platform
I looked online and found this tip:
http://www.devx.com/tips/Tip/20570
I also found another site which says if I'm not concerned which Look and Feel to use, I can run the application using: -
java -Dswing.defaultlaf=com.sun.java.swing.plaf.windows.WindowsLookAndFeel <myApp>
However, it seems to me, you'd use that when you want to execute a Java program, not C++.
I mean: my executable is from C++ !
Can I add java -Dswing.defaultlaf=com.sun.java.swing.plaf.windows.WindowsLookAndFeel to some environment variable so that when I create my JVM (in my C++ program), Java will be called with this option ?
Other suggestions, suggestions are most welcome.
Many thanks,
Imanuel.
Similar Threads
-
By harry@dayfamily in forum Java
Replies: 1
Last Post: 07-04-2006, 03:30 AM
-
Replies: 0
Last Post: 03-29-2002, 10:24 AM
-
Replies: 0
Last Post: 03-21-2002, 11:04 AM
-
By Kundan Vyas in forum Java
Replies: 2
Last Post: 02-26-2002, 10:23 PM
-
Replies: 0
Last Post: 09-29-2001, 12:15 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
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks