Write the following code in a "bat" file. Now double click on the batch file to run the jar.
PS: replace the path of jar with your desired jar path.
AUTHOR: OBSCURE
Showing posts with label howto. Show all posts
Showing posts with label howto. Show all posts
Tuesday, June 4, 2013
Monday, June 3, 2013
View PIDs and command lines of all running Java processes in Windows
The following line will shows PIDs of all running Java processes in cmd:
and to kill a process from windows cmd:
AUTHOR: OBSCURE
and to kill a process from windows cmd:
AUTHOR: OBSCURE
Sunday, June 2, 2013
Unicode characters are showing as question mark(?) instead of real value in nusoap webservice client.
Web service send correct unicode characters, but nusoap converts them to question mark(?). Solution is, adding the following lines after creating nusoap client
AUTHOR: OBSCURE
AUTHOR: OBSCURE
Tuesday, May 14, 2013
Sunday, December 23, 2012
Saturday, December 22, 2012
Enable Hibernate in Ubuntu 12.04
In Ubuntu 12.04 and newer, hibernation has been disabled by default in policykit. To enable hibernation, you can follow official documentation here.
Before enabling hibernation, please try to test whether it works correctly by running
pm-hibernate in a terminal. The system will try to hibernate. If you are able to start the system again then you are more or less safe to add an override.To do so, start editing:
sudo gedit /etc/polkit-1/localauthority/50-local.d/com.ubuntu.enable-hibernate.pkla
Paste the following lines:
[Re-enable hibernate by default] Identity=unix-user:* Action=org.freedesktop.upower.hibernate ResultActive=yes
Save and exit gedit.
Restart and hibernation is back!
Or run the following code to just reset the menu:
killall unity-panel-service
Source: How to enable hibernation?
AUTHOR: OBSCURE
Subscribe to:
Posts (Atom)