Newsletter sign-up
View all newsletters

Enterprise Java Newsletter
Stay up to date on the latest tutorials and Java community news posted on JavaWorld

Sponsored Links

Optimize with a SATA RAID Storage Solution
Range of capacities as low as $1250 per TB. Ideal if you currently rely on servers/disks/JBODs

Merging Java and Win32: A new way to develop Windows applications

Learn how to write Win32 applications in Java instead of C++ -- and save yourself some time and effort!

  • Print
  • Feedback

Page 6 of 6

Wrapping it up

When companies like Microsoft and Sun Microsystems release innovative products like Java and Win32, the computer industry benefits. I believe that the combination of these two technologies will usher in a new era of Windows software that is more robust than equivalent software written purely in C++. The ZIP application, introduced in this article, provides a bare glimpse of what is possible. I think this is exciting -- the potential is great. And who knows, maybe Sun and Microsoft will merge after all!

About the author

Jeff is a software engineer employed by EDS (Electronic Data Systems), a consulting firm founded by Ross Perot in the 1960s. He specializes in developing security applications for use with smart cards. He also writes his own Win32 and Java applications, which he sells as shareware.

Read more about Core Java in JavaWorld's Core Java section.

  • Print
  • Feedback

Resources
  • The zip archive contains all of the necessary C++/Java source and deployment files used by this article http://www.javaworld.com/jw-07-1998/java-win32/zip.zip
  • I've found the following resources beneficial when I'm writing applications that use the Java native Interface (JNI).
  • Essential JNI Java Native Interface, by Rob Gordon. PublisherPrentice Hall, Copyright1998. This book dives into JNI, and covers many techniques for calling C++ code with Java and calling Java with C++ code. One chapter focuses on the Invocation API and how to construct a C++ application which embeds the Java Virtual Machine -- in other words, how to create your own AppletViewer.exe program.
  • The JavaWorld article Use native methods to expand the Java environment provides an introductory look at the Java Native Interface http://www.javaworld.com/javaworld/jw-07-1997/jw-07-javadev.html