File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Other JSE/JEE APIs and the fly likes Can I call Win32 API from within Java code? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "Can I call Win32 API from within Java code?" Watch "Can I call Win32 API from within Java code?" New topic
Author

Can I call Win32 API from within Java code?

Abdullah Javid
Greenhorn

Joined: Jan 06, 2002
Posts: 12
Hello. I tried to understand Java from some books and the Java documentation but I was unable to find the answer of the question "Can I call Win32 APIs from JNI interface?". I know how to call other native methods which we write and specify that they could be called by Java(we use javah.exe and some other #include statements for C/C++). Microsoft has not explicitly specified that their Win32 API classes could be called from within Java. So my question is that can we call those API simply by using System.loadLibrary() method. I am looking forward for your replies. Thanks in advance. Can somebody explain the process with example, i will be so thankful to you.
Sicerely,
Abdullah.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Can I call Win32 API from within Java code?