Discussion Locked

java prog..Screen Saver

0 helpful
5 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
i would like to know how to run Screen Saver...how to run? by using JAva Program?

5 replies

by pratibha.malhotra

U can definatly execute an exe from java code...u can always embed java code in html...

Use exec() of java.lang.Runtime class to execute any exe namely notepad or a screen saver for that matter....
This method will execute the specified string command in a separate process...

in case u want code ::

Runtime r = Runtime.getRuntime();
r..exec("C:\WINNT\Notepad");

(assuming u r working on NT/2000)

This discussion is closed to new replies.