While Starting the server use the following.
E:\Research\Softwares\jboss-5.1.0.GA\bin>run.bat -b 0.0.0.0
E:\Research\Softwares\jboss-5.1.0.GA\bin>run.bat -b 0.0.0.0
Screen Netwrok 1 |
Screen Network 2. |
package com; import java.io.IOException; public class LockMachine { public static void main(String[] args) { String WINDOWS_LOCK_COMMAND="rundll32.exe user32.dll, LockWorkStation"; Runtime rt = Runtime.getRuntime(); try { rt.exec(WINDOWS_LOCK_COMMAND); } catch (IOException e1) { e1.printStackTrace(); } } }