<?xml version="1.0"?>
<rss version="2.0">
<channel>
  <title>JavaGeek.org - apple tag</title>
  <link>http://javageek.org/tags/apple/</link>
  <description>For the love of Java</description>
  <language>en</language>
  <copyright>Guillermo Castro</copyright>
  <lastBuildDate>Fri, 12 Nov 2010 16:04:24 GMT</lastBuildDate>
  <generator>Pebble (http://pebble.sourceforge.net)</generator>
  <docs>http://backend.userland.com/rss</docs>
  
  
  <item>
    <title>Apple joins OpenJDK effort</title>
    <link>http://javageek.org/2010/11/12/apple_joins_openjdk_effort.html</link>
    
      
        <description>
          &lt;p&gt;Three weeks ago Apple shocked the Java community by releasing a Java update on which the main &amp;quot;feature&amp;quot; was that they were &lt;a href=&#034;http://www.infoq.com/news/2010/10/apple-deprecates-java&#034;&gt;deprecating Java on OS X&lt;/a&gt;. What this means is that Apple will no longer continue to develop its own Java Virtual Machine for its operating system. This caused many people to react against Apple, and think that Java development on Macs was dead, and even said that they would stop using a Mac. Interestingly enough, I didn&#039;t see actual cases of people dropping their MacBooks to the floor, stomping on them and then buying another laptop. And now they won&#039;t have to.&lt;/p&gt;
&lt;p&gt;Today Oracle and Apple announced that most of the Apple JVM customizations for OS X will be contributed to the OpenJDK project, which is Oracle&#039;s main effort for evolving Java. From the &lt;a href=&#034;http://www.apple.com/pr/library/2010/11/12openjdk.html&#034;&gt;press release&lt;/a&gt;:&lt;/p&gt;
&lt;blockquote&gt;The Java developer community can rest assured that the leading edge Java environment will continue to be available on Mac OS X in the future &lt;/blockquote&gt;
&lt;p&gt;They also mention that Java 6 will be available from Apple for the time being, including a release for their upcoming 10.6 release Lion. Java 7 and future Java releases will be available from Oracle. In short, Java will continue to be available on Macs in the near and the far future.&lt;/p&gt;
&lt;p&gt;It is interesting that when the &amp;quot;Java is deprecated&amp;quot; news came, many people said that Apple was doing the same thing to Java that they were doing to Flash. But contrary to Flash, where Apple&#039;s CEO Steve Jobs publicly denounced it with an &lt;a href=&#034;http://www.apple.com/hotnews/thoughts-on-flash/&#034;&gt;open letter&lt;/a&gt;, with Java they&#039;re still showing commitment in having a compatible JVM for OS X. So, Apple is not the evil company that wants to root out everything that doesn&#039;t come from inside their company.&lt;/p&gt;
&lt;!--
&lt;rdf:RDF xmlns:rdf=&#034;http://www.w3.org/1999/02/22-rdf-syntax-ns#&#034;
         xmlns:dc=&#034;http://purl.org/dc/elements/1.1/&#034;
         xmlns:trackback=&#034;http://madskills.com/public/xml/rss/module/trackback/&#034;&gt;
&lt;rdf:Description
    rdf:about=&#034;http://javageek.org/2010/11/12/apple_joins_openjdk_effort.html&#034;
    dc:identifier=&#034;http://javageek.org/2010/11/12/apple_joins_openjdk_effort.html&#034;
    dc:title=&#034;Apple joins OpenJDK effort&#034;
    trackback:ping=&#034;http://javageek.org/addTrackBack.action?entry=1289577864256&amp;token=-1940359430616035301&#034; /&gt;
&lt;/rdf:RDF&gt;
--&gt;
        </description>
      
      
    
    
    
    <category>Java</category>
    
    <category>Apple</category>
    
    <comments>http://javageek.org/2010/11/12/apple_joins_openjdk_effort.html#comments</comments>
    <guid isPermaLink="true">http://javageek.org/2010/11/12/apple_joins_openjdk_effort.html</guid>
    <pubDate>Fri, 12 Nov 2010 16:04:24 GMT</pubDate>
  </item>
  
  <item>
    <title>Good news, Apple deprecated Java</title>
    <link>http://javageek.org/2010/10/22/good_news_apple_deprecated_java.html</link>
    
      
        <description>
          &lt;p&gt;Apple &lt;a href=&#034;http://support.apple.com/kb/DL972&#034;&gt;released an update&lt;/a&gt; to their Java environment on Wednesday, and among the changes the big one is that they have declared Java &amp;quot;&lt;a href=&#034;http://developer.apple.com/library/mac/#releasenotes/Java/JavaSnowLeopardUpdate3LeopardUpdate8RN/NewandNoteworthy/NewandNoteworthy.html#//apple_ref/doc/uid/TP40010380-CH4-SW1&#034;&gt;deprecated&lt;/a&gt;&amp;quot;. This has generated lots of &lt;a href=&#034;http://java.dzone.com/articles/apple-shuns-java&#034;&gt;buzz&lt;/a&gt; from the Java community, many of them saying that Apple is trying to kill Java on the Mac platform, or that OS X 10.7 &amp;quot;Lion&amp;quot; will not come with Java pre-installed, a change after almost 10 years of Apple providing Java runtime environments on every Apple computer sold. But besides the sparse description of the change in their release notes, Apple has said nothing to confirm or deny these allegations. As a Java developer working exclusively on a Mac for almost 3 years now, the news first came as a bit of a shock, but after careful consideration I think this is actually good news, or at least not the really bad news that people are talking about. Here&#039;s why.  &lt;/p&gt;
&lt;p&gt;In the beginning of the OS X era, Apple really cared about having a Java runtime on their operating system. At a time where more than 90% of the desktop computers were Windows machines and most of the desktop application development was done for this OS, having a solid JVM meant that Apple products could run Java-based desktop apps from day one, and it meant that companies would be able to have applications run on either platform as long as they did Java apps. So they licensed the JVM from Sun so that they could write, modify and make sure they had their own virtual machine from day one.  &lt;/p&gt;
&lt;p&gt;But now, with Apple focusing its effort on consumer devices like the iPhone/iPad, they don&#039;t really care about this anymore. Just last Tuesday, Jobs said that Mac revenue only accounts for 33% of their overall profit, and I think this number will decrease further as they keep bringing new devices to market. With less effort going into OS X, they will start trimming on the edges in order to be more competitive with less resources, and Java on the Apple is the first to go, but it probably won&#039;t be the last. This really is not surprising at all since Java on the Mac has been falling behind the official releases for quite some time. Java 6 was released almost 2 years behind, for starters, and that should have been a big clue of what happened on Wednesday.  &lt;/p&gt;
&lt;p&gt;But why is this good news, you ask? First, because as of Wednesday, we finally have an updated JDK that&#039;s on par with the official release, including all bug and security fixes, and this will continue to be the case at least until the end of life of Snow Leopard, according to Apple. Second, they haven&#039;t actually said that they will remove Java from Lion, they only said they will not release Apple-controlled versions. This means that we will have to rely on Oracle to produce an OS X version along with all the different versions which they&#039;re already producing (Windows, Linux, Solaris, etc). With Oracle and IBM already &lt;a href=&#034;http://www.oracle.com/us/corporate/press/176988&#034;&gt;collaborating&lt;/a&gt; on improving Java, I don&#039;t think this is a big issue, but it&#039;s definitely up to Oracle to do this (or maybe not, since the development of Java is based on OpenJDK, an open source effort that means anyone could come and port everything to OS X). What I would really like is for Apple to contribute back their development efforts into OpenJDK.  &lt;/p&gt;
&lt;p&gt;There&#039;s really no reason to panic. Writing Java code on the mac should not be affected by Apple&#039;s announcement. If any, having the same JVM release version as other platforms will actually improve it. Writing for the mac also shouldn&#039;t be affected, unless you want your apps to be released through their upcoming App Store, since &lt;a href=&#034;http://www.neowin.net/news/mac-app-store-will-reject-java-apps-other-rules-leaked&#034;&gt;their leaked guidelines&lt;/a&gt; mention that it will not support having apps that are written using &amp;quot;deprecated or optionally-installed technologies&amp;quot;, but you can still release the apps yourself.  &lt;/p&gt;
&lt;p&gt;The only gray area right now, as I see it, is the &lt;a href=&#034;http://developer.apple.com/library/mac/#documentation/Java/Reference/JavaSE6_AppleExtensionsRef/api/index.html&#034;&gt;Apple Java Extensions API&lt;/a&gt;. This is the API that allows Java applications work closely with OS X, and includes things like event handling, Menu generation and underlying functionality and that make applications like IntelliJ IDEA look more like a native Mac application. As before, I sincerely hope that Apple contributes this back to OpenJDK. Worst case scenario, the Java community would have to reproduce these libraries from scratch. But besides that, Java on the Mac is just business as usual, and that&#039;s good news.&lt;/p&gt;
&lt;!--
&lt;rdf:RDF xmlns:rdf=&#034;http://www.w3.org/1999/02/22-rdf-syntax-ns#&#034;
         xmlns:dc=&#034;http://purl.org/dc/elements/1.1/&#034;
         xmlns:trackback=&#034;http://madskills.com/public/xml/rss/module/trackback/&#034;&gt;
&lt;rdf:Description
    rdf:about=&#034;http://javageek.org/2010/10/22/good_news_apple_deprecated_java.html&#034;
    dc:identifier=&#034;http://javageek.org/2010/10/22/good_news_apple_deprecated_java.html&#034;
    dc:title=&#034;Good news, Apple deprecated Java&#034;
    trackback:ping=&#034;http://javageek.org/addTrackBack.action?entry=1287770046311&amp;token=2991393896350718349&#034; /&gt;
&lt;/rdf:RDF&gt;
--&gt;
        </description>
      
      
    
    
    
    <category>Java</category>
    
    <category>Apple</category>
    
    <comments>http://javageek.org/2010/10/22/good_news_apple_deprecated_java.html#comments</comments>
    <guid isPermaLink="true">http://javageek.org/2010/10/22/good_news_apple_deprecated_java.html</guid>
    <pubDate>Fri, 22 Oct 2010 17:54:06 GMT</pubDate>
  </item>
  
  <item>
    <title>Fixing Terminal.app problems on my Mac</title>
    <link>http://javageek.org/2009/04/27/fixing_terminal_app_problems_on_my_mac.html</link>
    
      
        <description>
          This morning, when I sat down at my computer, I saw that &lt;a href=&#034;http://www.shirt-pocket.com/SuperDuper/SuperDuperDescription.html&#034;&gt;SuperDuper!&lt;/a&gt; had a problem doing its daily backup. I tried to quit the application to no avail, and then I used &#039;Force Quit&#039; on it, which made an error message pop up, with no way of making it go away. After another issue with Firefox hanging after trying to save a pdf, I decided the best course of action was to reboot the machine. However, after several attempts I realized Finder was not responding, so my ultimate solution was to hold the power key down until the machine shutted down. &lt;br /&gt;
&lt;br /&gt;
After a lengthy startup (which had me worried), everything seemed fine, except that when I tried to open a shell via Terminal.app, I would see it go through the login process only to have &lt;strong&gt;[Process Terminated]&lt;/strong&gt; in the window, instead of the usual shell prompt. I tried deleting the preferences for Terminal, yet the same result appeared. &lt;br /&gt;
&lt;br /&gt;
I had recently modified my .bashrc file, so I thought that this might have something to do with my problem, but after editing the file with &lt;a href=&#034;http://code.google.com/p/macvim/&#034;&gt;MacVim&lt;/a&gt; I still had the same problem. I tried to open Console.app to see if there was an error being sent to the logs, but Console just crashed right after starting it up. Uh oh... Time to hit Google!&lt;br /&gt;
&lt;br /&gt;
After several search terms, I came out with &lt;a href=&#034;http://discussions.apple.com/thread.jspa?threadID=1966373&#034;&gt;this forum post&lt;/a&gt;, which seemed to describe precisely what was going on with my computer. So, I decided to follow the instructions in the post:&lt;br /&gt;
&lt;pre class=&#034;codeSample&#034;&gt;sudo launchctl stop com.apple.syslogd&lt;br /&gt;cd /var/log &lt;br /&gt;sudo mkdir asl.broken &lt;br /&gt;sudo mv asl/* asl.broken/ &lt;br /&gt;sudo launchctl start com.apple.syslogd &lt;br /&gt;&lt;/pre&gt;
And voila! Everything started working again. It seems that the last hard reset corrupted the Apple System Log (ASL) databases, and that created a whole set of problems for Terminal, Console, etc.
&lt;!--
&lt;rdf:RDF xmlns:rdf=&#034;http://www.w3.org/1999/02/22-rdf-syntax-ns#&#034;
         xmlns:dc=&#034;http://purl.org/dc/elements/1.1/&#034;
         xmlns:trackback=&#034;http://madskills.com/public/xml/rss/module/trackback/&#034;&gt;
&lt;rdf:Description
    rdf:about=&#034;http://javageek.org/2009/04/27/fixing_terminal_app_problems_on_my_mac.html&#034;
    dc:identifier=&#034;http://javageek.org/2009/04/27/fixing_terminal_app_problems_on_my_mac.html&#034;
    dc:title=&#034;Fixing Terminal.app problems on my Mac&#034;
    trackback:ping=&#034;http://javageek.org/addTrackBack.action?entry=1240869914627&amp;token=8711113073260513614&#034; /&gt;
&lt;/rdf:RDF&gt;
--&gt;
        </description>
      
      
    
    
    
    <category>Apple</category>
    
    <comments>http://javageek.org/2009/04/27/fixing_terminal_app_problems_on_my_mac.html#comments</comments>
    <guid isPermaLink="true">http://javageek.org/2009/04/27/fixing_terminal_app_problems_on_my_mac.html</guid>
    <pubDate>Mon, 27 Apr 2009 22:05:14 GMT</pubDate>
  </item>
  
  </channel>
</rss>

