Click here to Skip to main content
15,891,712 members
Articles / Containers / Virtual Machine

.NET Platform Invoke Paradigm in Java (J/Invoke)

Rate me:
Please Sign up or sign in to vote.
4.20/5 (7 votes)
5 May 2009CPOL9 min read 34.9K   554   13  
Describes an SDK that enables direct Java calls to export functions from regular DLL modules
package demo;

public class Test {
	/**
	 * Load C Runtime Library
	 */
	public static MsvcrtLib win32 = new MsvcrtLib();

	/**
	 * Load User.dll
	 */
	public static UserLib user32 = new UserLib();
    /**
     * Load Kurnel32.dll
     */
	public static Kurnel32 kurnel32 = new Kurnel32();
	
	public static Thread t0 = new Thread(new StaticFunctionCalls());
	
	public static void main(String[] args) {
		t0.start();
		
		try{
			t0.join();
		} catch(InterruptedException e){
			e.printStackTrace();
		}
		System.exit(0);
	}

}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer (Senior) Javain Ltd
Israel Israel
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions