How can I change the Windows wallpaper in Java ?

I want to change the Windows wallpaper using Java. I know that I should use C or Visual Basic, but still I am wondering if there is a way to do this in Java.


  • Hi.

    You could use JNI (java native interface) for this, since you'd need to call some system library's method to change the wallpaper. You can find out how JNI works at

    Nevertheless, I don't know which libraries would be responsible for changing the wallpaper - perhaps you might want to take a look at the MSDN Library at for this.


    -- planning is the substitution of hazard by error --

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


In this Discussion