<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Linux Ask! &#187; Java</title>
	<atom:link href="http://www.linuxask.com/topics/programming/java-programming/feed" rel="self" type="application/rss+xml" />
	<link>http://www.linuxask.com</link>
	<description>Linux Ask! is a Q &#38; A web site specific for Linux related questions such as how to use common Linux commands.</description>
	<lastBuildDate>Tue, 05 May 2015 07:15:40 +0000</lastBuildDate>
	<language>en-US</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.9.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
	<item>
		<title>How to get the current running Java processes with full argument</title>
		<link>http://www.linuxask.com/questions/how-to-get-the-current-running-java-processes-with-full-argument</link>
		<comments>http://www.linuxask.com/questions/how-to-get-the-current-running-java-processes-with-full-argument#comments</comments>
		<pubDate>Sun, 26 Oct 2014 17:51:06 +0000</pubDate>
		<dc:creator><![CDATA[Linux Ask!]]></dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[java]]></category>

		<guid isPermaLink="false">http://www.linuxask.com/?p=4458</guid>
		<description><![CDATA[How to get the current running Java processes with full argument Answer: To do so, use the command: #jps -mlvV<div class='yarpp-related-rss'>

Related posts:<ol>
<li><a href="http://www.linuxask.com/questions/find-the-number-of-running-processes-on-your-system" rel="bookmark" title="Find the number of running processes on your system">Find the number of running processes on your system </a></li>
<li><a href="http://www.linuxask.com/questions/how-to-disable-ipv6-support-in-a-java-program" rel="bookmark" title="How to disable IPv6 support in a Java program">How to disable IPv6 support in a Java program </a></li>
<li><a href="http://www.linuxask.com/questions/how-to-alter-the-priority-of-running-processes" rel="bookmark" title="How to alter the priority of running processes">How to alter the priority of running processes </a></li>
</ol>
</div>
]]></description>
				<content:encoded><![CDATA[<p>How to get the current running Java processes with full argument</p>
<p><strong>Answer:</strong></p>
<p>To do so, use the command:</p>
<p><code>#jps -mlvV</code></p>
<div class='yarpp-related-rss'>
<p>Related posts:<ol>
<li><a href="http://www.linuxask.com/questions/find-the-number-of-running-processes-on-your-system" rel="bookmark" title="Find the number of running processes on your system">Find the number of running processes on your system </a></li>
<li><a href="http://www.linuxask.com/questions/how-to-disable-ipv6-support-in-a-java-program" rel="bookmark" title="How to disable IPv6 support in a Java program">How to disable IPv6 support in a Java program </a></li>
<li><a href="http://www.linuxask.com/questions/how-to-alter-the-priority-of-running-processes" rel="bookmark" title="How to alter the priority of running processes">How to alter the priority of running processes </a></li>
</ol></p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.linuxask.com/questions/how-to-get-the-current-running-java-processes-with-full-argument/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to change keystore password using keytool?</title>
		<link>http://www.linuxask.com/questions/how-to-change-keystore-password-using-keytool</link>
		<comments>http://www.linuxask.com/questions/how-to-change-keystore-password-using-keytool#comments</comments>
		<pubDate>Sat, 07 Jul 2012 02:51:24 +0000</pubDate>
		<dc:creator><![CDATA[Linux Ask!]]></dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[java]]></category>

		<guid isPermaLink="false">http://www.linuxask.com/?p=3897</guid>
		<description><![CDATA[How to change keystore password using keytool? Answer: # keytool -storepasswd -keystore keystore-file<div class='yarpp-related-rss'>

Related posts:<ol>
<li><a href="http://www.linuxask.com/questions/change-password-in-linux" rel="bookmark" title="Change password in Linux">Change password in Linux </a></li>
<li><a href="http://www.linuxask.com/questions/create-password-file-for-basic-apache-authentication" rel="bookmark" title="Create password file for basic Apache authentication">Create password file for basic Apache authentication </a></li>
<li><a href="http://www.linuxask.com/questions/how-to-connect-mysql-without-using-password" rel="bookmark" title="How to connect MySQL without using password">How to connect MySQL without using password </a></li>
</ol>
</div>
]]></description>
				<content:encoded><![CDATA[<p>How to change keystore password using keytool?</p>
<p><strong>Answer:</strong></p>
<p><code># keytool -storepasswd -keystore keystore-file</code></p>
<div class='yarpp-related-rss'>
<p>Related posts:<ol>
<li><a href="http://www.linuxask.com/questions/change-password-in-linux" rel="bookmark" title="Change password in Linux">Change password in Linux </a></li>
<li><a href="http://www.linuxask.com/questions/create-password-file-for-basic-apache-authentication" rel="bookmark" title="Create password file for basic Apache authentication">Create password file for basic Apache authentication </a></li>
<li><a href="http://www.linuxask.com/questions/how-to-connect-mysql-without-using-password" rel="bookmark" title="How to connect MySQL without using password">How to connect MySQL without using password </a></li>
</ol></p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.linuxask.com/questions/how-to-change-keystore-password-using-keytool/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to find a class in a Jar file</title>
		<link>http://www.linuxask.com/questions/how-to-find-a-class-in-a-jar-file</link>
		<comments>http://www.linuxask.com/questions/how-to-find-a-class-in-a-jar-file#comments</comments>
		<pubDate>Sun, 01 Jul 2012 03:22:27 +0000</pubDate>
		<dc:creator><![CDATA[Linux Ask!]]></dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[java]]></category>

		<guid isPermaLink="false">http://www.linuxask.com/?p=3848</guid>
		<description><![CDATA[How to find a class in a Jar file Answer: To find a class file in a given Java Jar file, e.g. to find the class "KeyToken" in the file "selenium-server-standalone.jar", # jar -tf selenium-server-standalone.jar &#124; grep KeyToken org/yaml/snakeyaml/tokens/KeyToken.class<div class='yarpp-related-rss'>

Related posts:<ol>
<li><a href="http://www.linuxask.com/questions/how-to-get-the-hostname-of-a-local-machine-using-java-2" rel="bookmark" title="How to get the hostname of a local machine using Java">How to get the hostname of a local machine using Java </a></li>
<li><a href="http://www.linuxask.com/questions/changing-the-default-java-environment-in-ubuntu" rel="bookmark" title="Changing the default Java environment in Ubuntu">Changing the default Java environment in Ubuntu </a></li>
<li><a href="http://www.linuxask.com/questions/how-to-disable-ipv6-support-in-a-java-program" rel="bookmark" title="How to disable IPv6 support in a Java program">How to disable IPv6 support in a Java program </a></li>
</ol>
</div>
]]></description>
				<content:encoded><![CDATA[<p>How to find a class in a Jar file</p>
<p><strong>Answer:</strong></p>
<p>To find a class file in a given Java Jar file, e.g. to find the class "<strong>KeyToken</strong>" in the file "<strong>selenium-server-standalone.jar</strong>", </p>
<pre><code># jar -tf selenium-server-standalone.jar | grep KeyToken
org/yaml/snakeyaml/tokens/KeyToken.class</code></pre>
<div class='yarpp-related-rss'>
<p>Related posts:<ol>
<li><a href="http://www.linuxask.com/questions/how-to-get-the-hostname-of-a-local-machine-using-java-2" rel="bookmark" title="How to get the hostname of a local machine using Java">How to get the hostname of a local machine using Java </a></li>
<li><a href="http://www.linuxask.com/questions/changing-the-default-java-environment-in-ubuntu" rel="bookmark" title="Changing the default Java environment in Ubuntu">Changing the default Java environment in Ubuntu </a></li>
<li><a href="http://www.linuxask.com/questions/how-to-disable-ipv6-support-in-a-java-program" rel="bookmark" title="How to disable IPv6 support in a Java program">How to disable IPv6 support in a Java program </a></li>
</ol></p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.linuxask.com/questions/how-to-find-a-class-in-a-jar-file/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to disable IPv6 support in a Java program</title>
		<link>http://www.linuxask.com/questions/how-to-disable-ipv6-support-in-a-java-program</link>
		<comments>http://www.linuxask.com/questions/how-to-disable-ipv6-support-in-a-java-program#comments</comments>
		<pubDate>Fri, 13 Apr 2012 16:11:48 +0000</pubDate>
		<dc:creator><![CDATA[Linux Ask!]]></dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[java]]></category>

		<guid isPermaLink="false">http://www.linuxask.com/?p=3748</guid>
		<description><![CDATA[How to disable IPv6 support in a Java program Answer: To completely turn off IPv6 support in Java, you can set the system property "java.net.preferIPv4Stack", e.g. # java -Djava.net.preferIPv4Stack=true ...<div class='yarpp-related-rss'>

Related posts:<ol>
<li><a href="http://www.linuxask.com/questions/disable-ipv6-in-linux" rel="bookmark" title="Disable IPv6 in Linux">Disable IPv6 in Linux </a></li>
<li><a href="http://www.linuxask.com/questions/how-to-get-the-hostname-of-a-local-machine-using-java-2" rel="bookmark" title="How to get the hostname of a local machine using Java">How to get the hostname of a local machine using Java </a></li>
<li><a href="http://www.linuxask.com/questions/turn-off-innodb-support-in-mysql" rel="bookmark" title="Turn off InnoDB support in MySQL">Turn off InnoDB support in MySQL </a></li>
</ol>
</div>
]]></description>
				<content:encoded><![CDATA[<p>How to disable IPv6 support in a Java program</p>
<p><strong>Answer:</strong></p>
<p>To completely turn off  <strong>IPv6 </strong>support in Java, you can set the system property "<strong>java.net.preferIPv4Stack</strong>", e.g.</p>
<p><code># java -Djava.net.preferIPv4Stack=true ...</code></p>
<div class='yarpp-related-rss'>
<p>Related posts:<ol>
<li><a href="http://www.linuxask.com/questions/disable-ipv6-in-linux" rel="bookmark" title="Disable IPv6 in Linux">Disable IPv6 in Linux </a></li>
<li><a href="http://www.linuxask.com/questions/how-to-get-the-hostname-of-a-local-machine-using-java-2" rel="bookmark" title="How to get the hostname of a local machine using Java">How to get the hostname of a local machine using Java </a></li>
<li><a href="http://www.linuxask.com/questions/turn-off-innodb-support-in-mysql" rel="bookmark" title="Turn off InnoDB support in MySQL">Turn off InnoDB support in MySQL </a></li>
</ol></p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.linuxask.com/questions/how-to-disable-ipv6-support-in-a-java-program/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to get the hostname of a local machine using Java</title>
		<link>http://www.linuxask.com/questions/how-to-get-the-hostname-of-a-local-machine-using-java-2</link>
		<comments>http://www.linuxask.com/questions/how-to-get-the-hostname-of-a-local-machine-using-java-2#comments</comments>
		<pubDate>Wed, 29 Feb 2012 04:14:11 +0000</pubDate>
		<dc:creator><![CDATA[Linux Ask!]]></dc:creator>
				<category><![CDATA[Internet]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[java]]></category>

		<guid isPermaLink="false">http://www.linuxask.com/?p=3739</guid>
		<description><![CDATA[How to get the hostname of a local machine using Java Answer: The following codes illtsraeted how to get the hostname of the local machine using Java. import java.net.InetAddress; public class Test { public static void main(String[] args) { try { InetAddress addr = InetAddress.getLocalHost(); // Get hostname String hostName = addr.getHostName(); System.out.println(hostName); } catch <a href='http://www.linuxask.com/questions/how-to-get-the-hostname-of-a-local-machine-using-java-2' class='excerpt-more'>[...]</a><div class='yarpp-related-rss'>

Related posts:<ol>
<li><a href="http://www.linuxask.com/questions/check-remote-hostname-using-nslookup" rel="bookmark" title="Check remote hostname using nslookup">Check remote hostname using nslookup </a></li>
<li><a href="http://www.linuxask.com/questions/changing-the-default-java-environment-in-ubuntu" rel="bookmark" title="Changing the default Java environment in Ubuntu">Changing the default Java environment in Ubuntu </a></li>
<li><a href="http://www.linuxask.com/questions/how-to-disable-ipv6-support-in-a-java-program" rel="bookmark" title="How to disable IPv6 support in a Java program">How to disable IPv6 support in a Java program </a></li>
</ol>
</div>
]]></description>
				<content:encoded><![CDATA[<p>How to get the hostname of a local machine using Java</p>
<p><strong>Answer:</strong></p>
<p>The following codes illtsraeted how to get the hostname of the local machine using Java.</p>
<pre><code>import java.net.InetAddress;

public class Test {

    public static void main(String[] args) {

        try {
            InetAddress addr = InetAddress.getLocalHost();

            // Get hostname
            String hostName = addr.getHostName();

            System.out.println(hostName);

        } catch (Exception e) {}
    }
}
</code></pre>
<div class='yarpp-related-rss'>
<p>Related posts:<ol>
<li><a href="http://www.linuxask.com/questions/check-remote-hostname-using-nslookup" rel="bookmark" title="Check remote hostname using nslookup">Check remote hostname using nslookup </a></li>
<li><a href="http://www.linuxask.com/questions/changing-the-default-java-environment-in-ubuntu" rel="bookmark" title="Changing the default Java environment in Ubuntu">Changing the default Java environment in Ubuntu </a></li>
<li><a href="http://www.linuxask.com/questions/how-to-disable-ipv6-support-in-a-java-program" rel="bookmark" title="How to disable IPv6 support in a Java program">How to disable IPv6 support in a Java program </a></li>
</ol></p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.linuxask.com/questions/how-to-get-the-hostname-of-a-local-machine-using-java-2/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
