Discussion Locked
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 okujava
try Runtime.getRuntime().exec("c:\windows\myscreensaver.scr");
s.okujava
The question was auto-closed by TechRepublic
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)
The question was auto-closed by TechRepublic
This question was auto closed due to inactivity
This discussion is closed to new replies.
Trending Web Development posts
Sort by Trending
Discussion Locked
What Makes a Business Website Effective in 2026
2 helpful
10 replies
1 helpful
3 replies
Question
Windows and macOS computers becoming slow or unstable after updates - what should I check first
0 helpful
1 reply
Question Unanswered
Best Way to Make Long WordPress Location Guides Mobile Friendly
0 helpful
0 replies
Discussion
Optimizing WordPress widgets and DOM size
0 helpful
3 replies