<?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>Techy Things &#187; java</title>
	<atom:link href="https://tech.yipp.ca/category/java/feed/" rel="self" type="application/rss+xml" />
	<link>https://tech.yipp.ca</link>
	<description>Just another Yipp.ca Blogs site</description>
	<lastBuildDate>Thu, 01 May 2025 18:06:28 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=4.2.38</generator>
	<item>
		<title>Sending mail with java mail javax Mailer encrypted SSL or TLS</title>
		<link>https://tech.yipp.ca/java/sending-mail-with-java-mail-javax-mailer-encrypted-ssl-or-tls/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=sending-mail-with-java-mail-javax-mailer-encrypted-ssl-or-tls</link>
		<comments>https://tech.yipp.ca/java/sending-mail-with-java-mail-javax-mailer-encrypted-ssl-or-tls/#comments</comments>
		<pubDate>Thu, 12 Jun 2014 15:54:36 +0000</pubDate>
		<dc:creator><![CDATA[frank]]></dc:creator>
				<category><![CDATA[java]]></category>

		<guid isPermaLink="false">http://tech.yipp.ca/?p=768</guid>
		<description><![CDATA[<p>&#160; This is about sending mail, so we are talking about a SMTP server &#160; The code Properties props = new Properties(); if (Integer.parseInt(port) == 465) // SSL { props.put("mail.smtp.auth", "true"); props.put("mail.smtp.socketFactory.port", port); props.put("mail.smtp.socketFactory.class",&#46;&#46;&#46;</p>
<p>The post <a rel="nofollow" href="https://tech.yipp.ca/java/sending-mail-with-java-mail-javax-mailer-encrypted-ssl-or-tls/">Sending mail with java mail javax Mailer encrypted SSL or TLS</a> appeared first on <a rel="nofollow" href="https://tech.yipp.ca">Techy Things</a>.</p>
]]></description>
				<content:encoded><![CDATA[<p>&nbsp;</p>
<p>This is about sending mail, so we are talking about a SMTP server</p>
<p>&nbsp;</p>
<p>The code</p>
<pre>Properties props = new Properties();
if (Integer.parseInt(port) == 465) // SSL
{ 
    props.put("mail.smtp.auth", "true"); 
    props.put("mail.smtp.socketFactory.port", port);
    props.put("mail.smtp.socketFactory.class", "javax.net.ssl.SSLSocketFactory"); 
    props.put("mail.smtp.socketFactory.fallback", "true"); 
} 
else
{
    props.put("mail.smtp.starttls.enable", "true");
}

Session mailSession = Session.getInstance(props);
mailSession.setDebug(false);
MimeMessage message = new MimeMessage(mailSession);
message.setSubject(subject);
message.setContent(messageString, "text/plain");
message.addRecipient(Message.RecipientType.TO, new InternetAddress(recipients));
message.setFrom(new InternetAddress(recipients));

Transport transport = mailSession.getTransport("smtp");
transport.connect(host, Integer.parseInt(port), username, password);
transport.sendMessage(message, message.getRecipients(Message.RecipientType.TO));
transport.close();

Setting the right parameters</pre>
<p>For example with gmail, the settings are :</p>
<ul>
<li>Gmail SMTP <strong>server</strong> address: <strong>smtp.gmail.com</strong></li>
<li>Gmail SMTP <strong>user name</strong>: Your full <strong>Gmail address</strong> (e.g. example@gmail.com)</li>
<li>Gmail SMTP <strong>password</strong>: Your <strong>Gmail password</strong></li>
<li>Gmail SMTP <strong>port (TLS)</strong>: <strong>587</strong></li>
<li><strong></strong>Gmail SMTP <strong>port (SSL)</strong>: <strong>465</strong></li>
</ul>
<h3>More reading</h3>
<p>The official FAQ is actually great<br />
<a title="Javax javamail FAQ" href="http:/http://www.oracle.com/technetwork/java/javamail/faq/index.html" target="_blank">www.oracle.com/technetwork/java/javamail/faq/index.html</a></p>
<p>The post <a rel="nofollow" href="https://tech.yipp.ca/java/sending-mail-with-java-mail-javax-mailer-encrypted-ssl-or-tls/">Sending mail with java mail javax Mailer encrypted SSL or TLS</a> appeared first on <a rel="nofollow" href="https://tech.yipp.ca">Techy Things</a>.</p>
]]></content:encoded>
			<wfw:commentRss>https://tech.yipp.ca/java/sending-mail-with-java-mail-javax-mailer-encrypted-ssl-or-tls/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>To produce a thread dump on an unresponsive java process</title>
		<link>https://tech.yipp.ca/java/to-produce-a-thread-dump-on-an-unresponsive-java-process/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=to-produce-a-thread-dump-on-an-unresponsive-java-process</link>
		<comments>https://tech.yipp.ca/java/to-produce-a-thread-dump-on-an-unresponsive-java-process/#comments</comments>
		<pubDate>Fri, 20 Dec 2013 16:23:17 +0000</pubDate>
		<dc:creator><![CDATA[frank]]></dc:creator>
				<category><![CDATA[java]]></category>

		<guid isPermaLink="false">http://tech.yipp.ca/?p=450</guid>
		<description><![CDATA[<p>To produce a thread dump on a java application $&#62; jstack 29812 &#62; ~/threadDump.txt where 29812 is the PID of java process &#160; Possible problem : Unable to deduce type of thread from address Deadlock&#46;&#46;&#46;</p>
<p>The post <a rel="nofollow" href="https://tech.yipp.ca/java/to-produce-a-thread-dump-on-an-unresponsive-java-process/">To produce a thread dump on an unresponsive java process</a> appeared first on <a rel="nofollow" href="https://tech.yipp.ca">Techy Things</a>.</p>
]]></description>
				<content:encoded><![CDATA[<h2 id="KulabyteTroubleshooting-ToproduceathreaddumponaunresponsiveHYDRA">To produce a thread dump on a java application</h2>
<p>$&gt; jstack 29812 &gt; ~/threadDump.txt</p>
<p>where 29812 is the PID of java process</p>
<p>&nbsp;</p>
<h3>Possible problem : Unable to deduce type of thread from address</h3>
<p>Deadlock Detection: Can't print deadlocks:Unable to deduce type of thread from address 0x00007ff514019800 (expected type JavaThread, CompilerThread, ServiceThread, JvmtiAgentThread, or SurrogateLockerThread)</p>
<p><span style="text-decoration: underline;">Please help I do not know how to solve the above !!</span></p>
<p>The post <a rel="nofollow" href="https://tech.yipp.ca/java/to-produce-a-thread-dump-on-an-unresponsive-java-process/">To produce a thread dump on an unresponsive java process</a> appeared first on <a rel="nofollow" href="https://tech.yipp.ca">Techy Things</a>.</p>
]]></content:encoded>
			<wfw:commentRss>https://tech.yipp.ca/java/to-produce-a-thread-dump-on-an-unresponsive-java-process/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to install openjdk-7-jre on Debian 6.0.6 or 6.0.7</title>
		<link>https://tech.yipp.ca/java/how-to-install-openjdk-7-jre-on-debian-6-0-6-or-6-0-7/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=how-to-install-openjdk-7-jre-on-debian-6-0-6-or-6-0-7</link>
		<comments>https://tech.yipp.ca/java/how-to-install-openjdk-7-jre-on-debian-6-0-6-or-6-0-7/#comments</comments>
		<pubDate>Thu, 28 Feb 2013 17:20:04 +0000</pubDate>
		<dc:creator><![CDATA[frank]]></dc:creator>
				<category><![CDATA[java]]></category>

		<guid isPermaLink="false">http://tech.yipp.ca/?p=110</guid>
		<description><![CDATA[<p>openjdk-7-jre will fail to install on Debian 6.0.7 (or any stable version) with the following error: E: Unable to locate package openjdk-7-jre The steps to install openjdk-7-jre are the following : Go into Administration&#46;&#46;&#46;</p>
<p>The post <a rel="nofollow" href="https://tech.yipp.ca/java/how-to-install-openjdk-7-jre-on-debian-6-0-6-or-6-0-7/">How to install openjdk-7-jre on Debian 6.0.6 or 6.0.7</a> appeared first on <a rel="nofollow" href="https://tech.yipp.ca">Techy Things</a>.</p>
]]></description>
				<content:encoded><![CDATA[<p>openjdk-7-jre will fail to install on Debian 6.0.7 (or any stable version) with the following error:</p>
<p>E: Unable to locate package openjdk-7-jre</p>
<p>The steps to install openjdk-7-jre are the following :</p>
<ul>
<li>Go into Administration &gt; Software Sources</li>
<li>Remove (uncheck) all software sources (including CD-ROMs) :</li>
<li>Add these two software sources :
<ul>
<li>deb <a href="http://ftp.us.debian.org/debian/" rel="nofollow">http://ftp.us.debian.org/debian/</a> sid main</li>
<li>deb-src <a href="http://ftp.us.debian.org/debian/" rel="nofollow">http://ftp.us.debian.org/debian/</a> sid main</li>
</ul>
</li>
<li>proceed with installation</li>
</ul>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>The post <a rel="nofollow" href="https://tech.yipp.ca/java/how-to-install-openjdk-7-jre-on-debian-6-0-6-or-6-0-7/">How to install openjdk-7-jre on Debian 6.0.6 or 6.0.7</a> appeared first on <a rel="nofollow" href="https://tech.yipp.ca">Techy Things</a>.</p>
]]></content:encoded>
			<wfw:commentRss>https://tech.yipp.ca/java/how-to-install-openjdk-7-jre-on-debian-6-0-6-or-6-0-7/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
