<?xml version="1.0" encoding="iso-8859-1"?>
<rss version="2.0">
<channel>
  <title>Linux Format forums</title>
  <link>http://www.linuxformat.com/forums/index.php</link>
  <description>Help, discussion, magazine feedback and more</description>
  <language>english</language>
  <copyright>(c) Copyright Sat May 18, 2013 7:09 pm by Linux Format forums</copyright>
  <managingEditor>webmaster@linuxformat.com</managingEditor>
  <webMaster>webmaster@linuxformat.com</webMaster>
  <pubDate>Sat May 18, 2013 7:09 pm</pubDate>
  <lastBuildDate>Sat May 18, 2013 7:09 pm</lastBuildDate>
  <docs>http://backend.userland.com/rss</docs>
  <generator>phpBB2 RSS Syndication Mod by Lucas</generator>
  <ttl>1</ttl>

  <image>
    <title>Linux Format forums</title>
    <url></url>
    <link>http://www.linuxformat.com/forums/</link>
    <description>Help, discussion, magazine feedback and more</description>
  </image>

                                      <item>
                                        <title>Setting ant -source parameter for Android Coding Academy</title>
                                        <link>http://www.linuxformat.com/forums/viewtopic.php?p=110208#110208</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://www.linuxformat.com/forums/profile.php?mode=viewprofile&amp;u=34395'&gt;Mad-Halfling&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Sun Jan 27, 2013 5:12 pm&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      Having a bit of a brain-failure.  I'm poking my way around the Android coding academy sections and in part 2 I'm getting a compiler error when I run &lt;br /&gt;
&lt;/span&gt;&lt;table width=&quot;90%&quot; cellspacing=&quot;1&quot; cellpadding=&quot;3&quot; border=&quot;0&quot; align=&quot;center&quot;&gt;&lt;tr&gt; 	  &lt;td&gt;&lt;span class=&quot;genmed&quot;&gt;&lt;b&gt;Code:&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;	&lt;/tr&gt;	&lt;tr&gt;	  &lt;td class=&quot;code&quot;&gt;ant debug&lt;/td&gt;	&lt;/tr&gt;&lt;/table&gt;&lt;span class=&quot;postbody&quot;&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/span&gt;&lt;table width=&quot;90%&quot; cellspacing=&quot;1&quot; cellpadding=&quot;3&quot; border=&quot;0&quot; align=&quot;center&quot;&gt;&lt;tr&gt; 	  &lt;td&gt;&lt;span class=&quot;genmed&quot;&gt;&lt;b&gt;Code:&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;	&lt;/tr&gt;	&lt;tr&gt;	  &lt;td class=&quot;code&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;#91;javac&amp;#93; /home/&amp;#40;user&amp;#41;/Coding/countdown/src/com/example/countdown/CountdownActivity.java&amp;#58;60&amp;#58; error&amp;#58; strings in switch are not supported in -source 1.5&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;#91;javac&amp;#93;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;switch&amp;#40;item.getItemId&amp;#40;&amp;#41;&amp;#41; &amp;#123;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;#91;javac&amp;#93;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ^&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;#91;javac&amp;#93;&amp;nbsp; &amp;nbsp;&amp;#40;use -source 7 or higher to enable strings in switch&amp;#41;&lt;br /&gt;
&lt;/td&gt;	&lt;/tr&gt;&lt;/table&gt;&lt;span class=&quot;postbody&quot;&gt;&lt;br /&gt;
&lt;br /&gt;
but I can't find where to set this parameter.  I've got openjdk-7 installed and JAVA_HOME points to &lt;br /&gt;
&lt;/span&gt;&lt;table width=&quot;90%&quot; cellspacing=&quot;1&quot; cellpadding=&quot;3&quot; border=&quot;0&quot; align=&quot;center&quot;&gt;&lt;tr&gt; 	  &lt;td&gt;&lt;span class=&quot;genmed&quot;&gt;&lt;b&gt;Code:&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;	&lt;/tr&gt;	&lt;tr&gt;	  &lt;td class=&quot;code&quot;&gt;/usr/lib/jvm/default-java -&amp;gt; java-1.7.0-openjdk-amd64&lt;/td&gt;	&lt;/tr&gt;&lt;/table&gt;&lt;span class=&quot;postbody&quot;&gt;&lt;br /&gt;
&lt;br /&gt;
So where do I set this (I'm sure it's something simple, but ant doesn't accept the -source parameter and Google hasn't brought up the config details)?&lt;br /&gt;
&lt;br /&gt;
Note that this compiler error is the result of a typo, but I was wondering how to do this for future reference, or in case I want to use this in future.&lt;br /&gt;
&lt;br /&gt;
Cheers - MH</description>
                                        <comments>http://www.linuxformat.com/forums/viewtopic.php?p=110208#110208</comments>
                                        <author>Mad-Halfling</author>
                                        <pubDate>Sun Jan 27, 2013 5:12 pm</pubDate>
                                        <guid isPermaLink="true">http://www.linuxformat.com/forums/viewtopic.php?p=110208#110208</guid>
                                      </item></channel></rss>