Results 1 to 2 of 2
  1. #1
    INFACT is offline Member
    Join Date
    Oct 2009
    Posts
    1
    Rep Power
    0

    Default Dll Call doesnt work

    Hi,
    Im new to java and I want to call ShellAboutA() from shell32.dll. Thats just an example.
    Heres my Code:
    Java Code:
    public class main {
    
    	/**
    	 * @param args
    	 */
    	static{
    		System.load("C:\\Windows\\System32\\shell32.dll");
    	}
    	public static void main(String[] args) {
    		//System.load("user32.dll");
    		
    		main dll=new main();
    		dll.ShellAboutA();
    		//ShellAboutA();
    
    	}
    	public native void ShellAboutA();
    
    }
    It always throws this error:
    Java Code:
    Exception in thread "main" java.lang.UnsatisfiedLinkError: main.ShellAboutA()V
    	at main.ShellAboutA(Native Method)
    	at main.main(main.java:15)
    I hope you can help me!
    INFACT

  2. #2
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

Similar Threads

  1. Why doesnt my code wait for input?
    By Addez in forum New To Java
    Replies: 7
    Last Post: 08-19-2009, 10:25 PM
  2. My blackjack games random generator doesnt work!
    By Addez in forum New To Java
    Replies: 16
    Last Post: 08-17-2009, 05:29 AM
  3. JTable doesnt show columun names!
    By phil128 in forum AWT / Swing
    Replies: 3
    Last Post: 03-08-2009, 10:39 PM
  4. java doesnt allow vista to work
    By 10rosas in forum New To Java
    Replies: 5
    Last Post: 12-22-2008, 04:23 PM
  5. My program doesnt display anything
    By Bojevnik in forum AWT / Swing
    Replies: 2
    Last Post: 10-19-2007, 02:50 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
  •