<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Loïc Talbot</title>
	<atom:link href="http://ltalbot.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://ltalbot.wordpress.com</link>
	<description>my personal blog</description>
	<lastBuildDate>Wed, 25 Jan 2012 21:30:30 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='ltalbot.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Loïc Talbot</title>
		<link>http://ltalbot.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://ltalbot.wordpress.com/osd.xml" title="Loïc Talbot" />
	<atom:link rel='hub' href='http://ltalbot.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Notes on running AIR apps on Blackberry playbook</title>
		<link>http://ltalbot.wordpress.com/2012/01/11/step-by-step-running-app-on-blackberry-playbook/</link>
		<comments>http://ltalbot.wordpress.com/2012/01/11/step-by-step-running-app-on-blackberry-playbook/#comments</comments>
		<pubDate>Wed, 11 Jan 2012 21:36:53 +0000</pubDate>
		<dc:creator>Loïc</dc:creator>
				<category><![CDATA[AIR]]></category>
		<category><![CDATA[Blackberry]]></category>
		<category><![CDATA[blackberry AIR debug token]]></category>

		<guid isPermaLink="false">http://ltalbot.wordpress.com/?p=186</guid>
		<description><![CDATA[After several attempts to run my non-finished app on the playbook I find it usefull to save some notes on how to proceed step by step. So many examples that can be found over the web I know, I&#8217;ll add my contribution too because it took some time to deploy it the first time so [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ltalbot.wordpress.com&amp;blog=6602331&amp;post=186&amp;subd=ltalbot&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>After several attempts to run my non-finished app on the playbook I find it usefull to save some notes on how to proceed step by step. So many examples that can be found over the web I know, I&#8217;ll add my contribution too because it took some time to deploy it the first time so one more described experience may not be useless.<br />
<strong>Register for signing keys on Blackberry web site here: </strong><br />
[A]<br />
It&#8217;s important to save somewhere the PIN that you enter here!</p>
<div id="attachment_188" class="wp-caption alignleft" style="width: 610px"><a href="http://ltalbot.files.wordpress.com/2012/01/screen-shot-2012-01-11-at-10-29-04-pm.png"><img class="size-full wp-image-188" title="Registering for signing keys" src="http://ltalbot.files.wordpress.com/2012/01/screen-shot-2012-01-11-at-10-29-04-pm.png?w=600&#038;h=361" alt="Signing Keys Order Form" width="600" height="361" /></a><p class="wp-caption-text">Signing Keys Order Form</p></div>
<ol>
<ol>Once ordered you will receive two signing keys by email</ol>
</ol>
<p>&nbsp;</p>
<ol>They are called client-RDK-XXXXXXXXX.csj and client.PBDT-XXXXXXXXX.csj.</ol>
<ol>
<ol>signing with blackberry you CSJ file.</ol>
</ol>
<p>&nbsp;</p>
<ol>
<ol>If you did several unsuccessfull attempts before you need to delete your previous attempts with:</ol>
</ol>
<p><code>blackberry-signer -cskdelete</code></p>
<ol>
<ol>For others fresh new developers register your RDK file like this:</ol>
</ol>
<p><code>blackberry-signer -cskpass YOUR_PASSWORD_HERE </code></p>
<ol>
<ol>Now remember the step [A] where you entered y pin ? enter it again after csjpin here:</ol>
</ol>
<p><code>blackberry-signer -register -csjpin YOUR_PIN_HERE -cskpass YOUR_PASSWORD_HERE client-RDK-XXXXXXXXX.csj </code></p>
<ol>I have then received an email saying that my CSJ registration was ok.</ol>
<ol>Them comes the P12 file creation:</ol>
<p><code>blackberry-keytool -genkeypair -keystore YOUR_FILE_NAME.P12 -storepass ENTER_STOREPASS_HERE -dname "YOUR_APP_NAME" -alias author</code></p>
<p>To create a debug token I have executed the following commands:<br />
<code>blackberry-debugtokenrequest -register -cskpass YOUR_PASSWORD_HERE -csjpin YOUR_PIN_HERE client-RDK-XXXXXXXXX.csj </code></p>
<p>It said : </p>
<blockquote><p>already registered</p></blockquote>
<p>So I did:<br />
<code>blackberry-debugtokenrequest -register -cskpass YOUR_PASSWORD_HERE -csjpin YOUR_PIN_HERE client-PBDT-XXXXXXXXX.csj </code><br />
It said : </p>
<blockquote><p>successfully registered with server</p></blockquote>
<p>The debug token is created with the following command: (replace 0&#215;444444 with your device id)<br />
<code>blackberry-debugtokenrequest -register -cskpass YOUR_PASSWORD_HERE -keystore YOUR_FILE_NAME.P12 -storepass ENTER_STOREPASS_HERE -deviceid 0x444444 NAME_OF_YOUR_DEBUG_TOKEN_FILE.bar </code></p>
<blockquote><p>debug token created</p></blockquote>
<p>To upload the debug token on your device, press upload debug token and then execute the following command: (replace 192.168.0.14 with your device ip address)</p>
<p><code>blackberry-deploy -installDebugToken NAME_OF_YOUR_DEBUG_TOKEN_FILE.bar -device 192.168.0.14 -password YOUR_DEVICE_PASSWORD</code></p>
<p>Now you can install unsigned apps on your device. theoretically &#8230; you need to ensure that your bar file (the one for your app) contains the same info as the debug token:<br />
List the debug token info like this:</p>
<p><code>blackberry-airpackager -listManifest NAME_OF_YOUR_DEBUG_TOKEN_FILE.bar </code><br />
Copy Author and AuthorId in the appropriate fields in the blackberry-tablet.xml file, package your app as a bar file with these info:</p>
<p><code>blackberry-airpackager -package YOUR_APP.bar YOUR_APP.xml blackberry-tablet.xml YOUR_APP.swf  -devMode</code></p>
<p>and deploy it on the device:<br />
<code>blackberry-deploy -installApp -device 192.168.0.14 -package YOUR_APP.bar -password YOUR_DEVICE_PASSWORD</code></p>
<p>That&#8217;s it. As I said it took time for me, especially the order of the commands and also to install the debug token. These are the commands which worked for me in the same order I runned them. I hope it helps!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ltalbot.wordpress.com/186/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ltalbot.wordpress.com/186/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ltalbot.wordpress.com/186/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ltalbot.wordpress.com/186/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ltalbot.wordpress.com/186/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ltalbot.wordpress.com/186/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ltalbot.wordpress.com/186/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ltalbot.wordpress.com/186/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ltalbot.wordpress.com/186/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ltalbot.wordpress.com/186/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ltalbot.wordpress.com/186/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ltalbot.wordpress.com/186/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ltalbot.wordpress.com/186/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ltalbot.wordpress.com/186/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ltalbot.wordpress.com&amp;blog=6602331&amp;post=186&amp;subd=ltalbot&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ltalbot.wordpress.com/2012/01/11/step-by-step-running-app-on-blackberry-playbook/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7a7224edbac9242709e448b35d8207ca?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ltalbot</media:title>
		</media:content>

		<media:content url="http://ltalbot.files.wordpress.com/2012/01/screen-shot-2012-01-11-at-10-29-04-pm.png" medium="image">
			<media:title type="html">Registering for signing keys</media:title>
		</media:content>
	</item>
		<item>
		<title>File upload using REST Spring MVC</title>
		<link>http://ltalbot.wordpress.com/2010/04/21/file-upload-using-rest-spring-mvc/</link>
		<comments>http://ltalbot.wordpress.com/2010/04/21/file-upload-using-rest-spring-mvc/#comments</comments>
		<pubDate>Wed, 21 Apr 2010 22:45:10 +0000</pubDate>
		<dc:creator>Loïc</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[File Upload]]></category>
		<category><![CDATA[Multipart]]></category>
		<category><![CDATA[REST]]></category>
		<category><![CDATA[Spring MVC]]></category>

		<guid isPermaLink="false">http://ltalbot.wordpress.com/?p=139</guid>
		<description><![CDATA[A quick note on developing an HTTP POST based web service using Spring 3 MVC and its testing using curl command line program. To me the most important resides in the configuration file: &#60;bean id="multipartResolver" class="org.springframework.web.multipart.commons.CommonsMultipartResolver"&#62; &#60;property name="maxUploadSize" value="300000"/&#62;&#60;!-- Max size in bytes. --&#62; &#60;/bean&#62; The web service itself is configured like this: @RequestMapping(value = [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ltalbot.wordpress.com&amp;blog=6602331&amp;post=139&amp;subd=ltalbot&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>A quick note on developing an HTTP POST based web service using Spring 3 MVC and its testing using curl command line program.</p>
<p>To me the most important resides in the configuration file:<br />
<code><br />
&lt;bean id="multipartResolver" class="org.springframework.web.multipart.commons.CommonsMultipartResolver"&gt;</p>
<p>&lt;property name="maxUploadSize" value="300000"/&gt;&lt;!-- Max size in bytes. --&gt;</p>
<p>&lt;/bean&gt;<br />
</code><br />
The web service itself is configured like this:<br />
<code><br />
@RequestMapping(value = "/fileUpload", method = RequestMethod.POST)<br />
@ResponseBody<br />
public myObject upload (<br />
@RequestParam("file") MultipartFile multipartFile,<br />
HttpServletRequest request) {...<br />
</code></p>
<p>and the curl command is:<br />
<code><br />
curl -F "file=@file.jpg" http://localhost:8080/fileUpload<br />
</code></p>
<p>Edit 4/12/2011: just noticed there exists a nice working example at springsource dealing with this (and much more), <a href="https://github.com/SpringSource/spring-mvc-showcase">here</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ltalbot.wordpress.com/139/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ltalbot.wordpress.com/139/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ltalbot.wordpress.com/139/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ltalbot.wordpress.com/139/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ltalbot.wordpress.com/139/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ltalbot.wordpress.com/139/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ltalbot.wordpress.com/139/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ltalbot.wordpress.com/139/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ltalbot.wordpress.com/139/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ltalbot.wordpress.com/139/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ltalbot.wordpress.com/139/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ltalbot.wordpress.com/139/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ltalbot.wordpress.com/139/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ltalbot.wordpress.com/139/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ltalbot.wordpress.com&amp;blog=6602331&amp;post=139&amp;subd=ltalbot&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ltalbot.wordpress.com/2010/04/21/file-upload-using-rest-spring-mvc/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7a7224edbac9242709e448b35d8207ca?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ltalbot</media:title>
		</media:content>
	</item>
		<item>
		<title>Configuring a Java project with MS SQL Server 2000</title>
		<link>http://ltalbot.wordpress.com/2010/03/29/configuring-a-java-project-with-ms-sql-server-2000/</link>
		<comments>http://ltalbot.wordpress.com/2010/03/29/configuring-a-java-project-with-ms-sql-server-2000/#comments</comments>
		<pubDate>Mon, 29 Mar 2010 10:36:48 +0000</pubDate>
		<dc:creator>Loïc</dc:creator>
				<category><![CDATA[Configuration]]></category>
		<category><![CDATA[JDBC driver]]></category>
		<category><![CDATA[MS SQL server 2000]]></category>
		<category><![CDATA[Spring]]></category>

		<guid isPermaLink="false">http://ltalbot.wordpress.com/?p=116</guid>
		<description><![CDATA[I was recently asked to configure an existing Java project (JSP/Spring/iBatis) to run on Microsoft SQL Server 2000. I have encountered some issues on this: the other team members already had the project configured and it was running fine, so I did not expect to spend so much time on it. First of all the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ltalbot.wordpress.com&amp;blog=6602331&amp;post=116&amp;subd=ltalbot&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I was recently asked to configure an existing Java project (JSP/Spring/iBatis) to run on Microsoft SQL Server 2000. I have encountered some issues on this: the other team members already had the project configured and it was running fine, so I did not expect to spend so much time on it.</p>
<p>First of all the project was running on JDK 1.4. If you try to download such a JDK version, the Oracle web site now tells you that this version is in an EOSL state which means (End Of service Life). It was a bit surprising to me, things are going faster than I thought <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>Then if you try to find a MS SQL 2000 driver on the Internet you won&#8217;t find. You will need to download the MS SQL 2005 JDBC driver. On the <a href="http://www.microsoft.com/downloads/details.aspx?FamilyId=C47053EB-3B64-4794-950D-81E1EC91C1BA&amp;displaylang=fr">download page</a> Microsoft says it works for both 2000 and 2005 version of their product. I can now tell this is true.</p>
<p>True, for sure, but I also had to change the spring datasource configuration a bit:</p>
<p><code><br />
property name="jndiName" value="java:comp/env/jdbc/wwdfvpDS"<br />
</code></p>
<p>instead of this one (which works for the other team members)<br />
<code><br />
property name="jndiName" value="java:jdbc/wwdfvpDS"<br />
</code></p>
<p>Basically that&#8217;s just a syntactical change and to my opinion it&#8217;s due to the JDBC driver. That&#8217;s why I think it&#8217;s safe to keep a folder on SVN with all these drivers (actually the setup.exe file for the MSSQL driver for JDBC). Best would be to upgrade the project along with the technologies upgrade. For instance if the iBatis framework evolves from version 1 to version 3.0 then the most recent has to be used. The unitary tests should ensure there&#8217;s no regression.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ltalbot.wordpress.com/116/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ltalbot.wordpress.com/116/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ltalbot.wordpress.com/116/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ltalbot.wordpress.com/116/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ltalbot.wordpress.com/116/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ltalbot.wordpress.com/116/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ltalbot.wordpress.com/116/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ltalbot.wordpress.com/116/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ltalbot.wordpress.com/116/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ltalbot.wordpress.com/116/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ltalbot.wordpress.com/116/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ltalbot.wordpress.com/116/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ltalbot.wordpress.com/116/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ltalbot.wordpress.com/116/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ltalbot.wordpress.com&amp;blog=6602331&amp;post=116&amp;subd=ltalbot&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ltalbot.wordpress.com/2010/03/29/configuring-a-java-project-with-ms-sql-server-2000/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7a7224edbac9242709e448b35d8207ca?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ltalbot</media:title>
		</media:content>
	</item>
		<item>
		<title>SFTP on Amazon EC2</title>
		<link>http://ltalbot.wordpress.com/2010/01/29/sftp-on-amazon-ec2/</link>
		<comments>http://ltalbot.wordpress.com/2010/01/29/sftp-on-amazon-ec2/#comments</comments>
		<pubDate>Fri, 29 Jan 2010 20:36:02 +0000</pubDate>
		<dc:creator>Loïc</dc:creator>
				<category><![CDATA[Amazon web services]]></category>
		<category><![CDATA[Amazon]]></category>
		<category><![CDATA[AWS]]></category>
		<category><![CDATA[EC2]]></category>
		<category><![CDATA[SFTP]]></category>
		<category><![CDATA[SSH]]></category>

		<guid isPermaLink="false">http://ltalbot.wordpress.com/?p=73</guid>
		<description><![CDATA[Amazon Elastic Compute Cloud as well as Rackspacecloud (and many others) allows you to set up a remote server and deploy your web application (among other things). I have setup my own account and run a small instance. For this I have used Amazon Web Toolkit plugin for Eclipse. The documentation provided with this toolkit [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ltalbot.wordpress.com&amp;blog=6602331&amp;post=73&amp;subd=ltalbot&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Amazon Elastic Compute Cloud as well as Rackspacecloud (and many others) allows you to set up a remote server and deploy your web application (among other things).<br />
I have setup my own account and run a small instance. For this I have used Amazon Web Toolkit plugin for Eclipse.<br />
The documentation provided with this toolkit is fine. Unfortunately for me, as usual, it doesn&#8217;t work as expected: I have tried to run an instance located in the US but it seems that&#8217;s way too far ! I used to have this popup screen:<br />
<a href="http://ltalbot.files.wordpress.com/2010/01/picture-51.png"><img src="http://ltalbot.files.wordpress.com/2010/01/picture-51.png?w=600" alt="" title="Picture 5"   class="alignnone size-full wp-image-90" /></a></p>
<p>mmm&#8230; why did I do that ? Because I thought my fellows there would have a better time response and therefore a better user experience for the prototype that I did. I have changed the settings to point to a European instance.</p>
<p>This time it was starting up fine with AWS.<br />
<a href="http://ltalbot.files.wordpress.com/2010/01/picture-7.png"><img src="http://ltalbot.files.wordpress.com/2010/01/picture-7.png?w=600&#038;h=163" alt="" title="Picture 7" width="600" height="163" class="alignleft size-full wp-image-83" /></a></p>
<p>But running a simple dynamic web application as described in their tutorials (you don&#8217;t even need a tutorial though to create that) caused some trouble.</p>
<p>Another solution was to transfer the WAR file on the server and then put it into the webapps folder of tomcat. To do that why not use sftp, said Loïc to himself&#8230; <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /><br />
As the picture above shows you can right-click on the live server and select open shell. Your  command is written at the top of the shell window. Here is what you should have:<br />
<code>Last login: Fri Jan 29 14:01:11 on ttys005<br />
 /usr/bin/ssh -o CheckHostIP=no -o TCPKeepAlive=yes -o StrictHostKeyChecking=no -o ServerAliveInterval=120 -o ServerAliveCountMax=100 -i /Users/loic/.ec2/eclipse-keypair.pem root@ec2-xxx-xxx-xxx-xxx.eu-west-1.compute.amazonaws.com<br />
loic-talbots-macbook-pro:~ loic$  /usr/bin/ssh -o CheckHostIP=no -o TCPKeepAlive=yes -o StrictHostKeyChecking=no -o ServerAliveInterval=120 -o ServerAliveCountMax=100 -i /Users/loic/.ec2/eclipse-keypair.pem root@ec2-xxx-xxx-xxx-xxx.eu-west-1.compute.amazonaws.com<br />
</code></p>
<p>We have a pem file that manages the access keys to the server. In order to use them with sftp just type:<br />
<code>ssh-add ~/.ec2/eclipse-keypair.pem</code><br />
and then you can use sftp to transfer your WAR file:<br />
<code>sftp root@ec2-xxx-xxx-xxx-xxx.eu-west-1.compute.amazonaws.com</code></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ltalbot.wordpress.com/73/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ltalbot.wordpress.com/73/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ltalbot.wordpress.com/73/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ltalbot.wordpress.com/73/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ltalbot.wordpress.com/73/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ltalbot.wordpress.com/73/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ltalbot.wordpress.com/73/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ltalbot.wordpress.com/73/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ltalbot.wordpress.com/73/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ltalbot.wordpress.com/73/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ltalbot.wordpress.com/73/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ltalbot.wordpress.com/73/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ltalbot.wordpress.com/73/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ltalbot.wordpress.com/73/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ltalbot.wordpress.com&amp;blog=6602331&amp;post=73&amp;subd=ltalbot&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ltalbot.wordpress.com/2010/01/29/sftp-on-amazon-ec2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7a7224edbac9242709e448b35d8207ca?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ltalbot</media:title>
		</media:content>

		<media:content url="http://ltalbot.files.wordpress.com/2010/01/picture-51.png" medium="image">
			<media:title type="html">Picture 5</media:title>
		</media:content>

		<media:content url="http://ltalbot.files.wordpress.com/2010/01/picture-7.png" medium="image">
			<media:title type="html">Picture 7</media:title>
		</media:content>
	</item>
		<item>
		<title>Mule ESB set up with Maven under Eclipse (OSX)</title>
		<link>http://ltalbot.wordpress.com/2010/01/22/mule-esb-set-up-with-maven-under-eclipse-osx/</link>
		<comments>http://ltalbot.wordpress.com/2010/01/22/mule-esb-set-up-with-maven-under-eclipse-osx/#comments</comments>
		<pubDate>Fri, 22 Jan 2010 13:23:12 +0000</pubDate>
		<dc:creator>Loïc</dc:creator>
				<category><![CDATA[SOA]]></category>
		<category><![CDATA[Eclipse]]></category>
		<category><![CDATA[ESB]]></category>
		<category><![CDATA[Mule]]></category>

		<guid isPermaLink="false">http://ltalbot.wordpress.com/?p=51</guid>
		<description><![CDATA[I have followed the Mule ESB tutorial and found that it did not work with Java5 on OSX. I have switched to Java6 and everything was back to normal. Everything is explained very well on Mule web site, here is what I did to get it running with Maven 2 under Eclipse on OSX. Firstly [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ltalbot.wordpress.com&amp;blog=6602331&amp;post=51&amp;subd=ltalbot&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I have followed the Mule ESB tutorial and found that it did not work with Java5 on OSX. I have switched to Java6 and everything was back to normal.</p>
<p>Everything is explained very well on Mule web site, here is what I did to get it running with Maven 2 under Eclipse on OSX.</p>
<p>Firstly I have of course downloaded Mule (community edition) on <a href="http://www.mulesoft.org/display/MULE/Download">their download page</a> and expanded everything in /opt folder with the following command:</p>
<p><code>tar -xvzf mule-standalone-2.2.1.tar.gz</code></p>
<p>I&#8217;ve also downloaded the mule ide plugin for eclipse and followed the instructions <a href="http://www.mulesoft.org/display/MULEIDE/Mule+IDE+2.0+Installation+Guide">here</a></p>
<p>To get it running with Maven, I used the command line in my project folder :<br />
<code>mvn mule-project-archetype:create -DartifactId=MMuleProject -DmuleVersion=2.2.0</code></p>
<p>and then I have the following command:<br />
<code>mvn eclipse:eclipse</code></p>
<p>to make it available as a project in eclipse.</p>
<p>Then I have launched Eclipse and imported the project:</p>
<p>File-&gt;import-&gt;Existing project into workspace</p>
<p>and I have selected the MMuleProject folder as root folder. Once the project was imported i have right-clicked on the project name MMProject in the package explorer and added Mule libraries:</p>
<p><a href="http://ltalbot.files.wordpress.com/2010/01/picture-2.png"><img class="size-full wp-image-57" title="project properties under eclipse" src="http://ltalbot.files.wordpress.com/2010/01/picture-2.png?w=600" alt="project properties under eclipse"   /></a></p>
<p>the project finally appears like the following inside the package explorer:</p>
<p><a href="http://ltalbot.files.wordpress.com/2010/01/picture-1.png"><img class="alignleft size-full wp-image-60" title="Picture 1" src="http://ltalbot.files.wordpress.com/2010/01/picture-1.png?w=600" alt=""   /></a></p>
<p>With Java 5 enabled I had this issue when trying to run the project : (right-click on mule-config.xml -&gt; run as -&gt; Mule Server)</p>
<p><code>INFO  2010-01-22 14:15:41,561 [main] org.mule.MuleServer: Mule Server initializing...<br />
ERROR 2010-01-22 14:15:41,648 [main] org.mule.MuleServer: A Fatal error has occurred while the server was running: [[B<br />
java.lang.ClassCastException: [[B<br />
	at java.net.InetAddress.getAddressFromNameService(InetAddress.java:1215)<br />
	at java.net.InetAddress.getLocalHost(InetAddress.java:1350)<br />
	at org.mule.config.DefaultMuleConfiguration.(DefaultMuleConfiguration.java:116)<br />
	at org.mule.context.DefaultMuleContextBuilder.getMuleConfiguration(DefaultMuleContextBuilder.java:125)<br />
	at org.mule.context.DefaultMuleContextBuilder.buildMuleContext(DefaultMuleContextBuilder.java:84)<br />
	at org.mule.context.DefaultMuleContextFactory.buildMuleContext(DefaultMuleContextFactory.java:197)<br />
	at org.mule.context.DefaultMuleContextFactory.doCreateMuleContext(DefaultMuleContextFactory.java:186)<br />
	at org.mule.context.DefaultMuleContextFactory.createMuleContext(DefaultMuleContextFactory.java:168)<br />
	at org.mule.MuleServer.initialize(MuleServer.java:351)<br />
	at org.mule.MuleServer.run(MuleServer.java:257)<br />
	at org.mule.MuleServer.start(MuleServer.java:244)<br />
	at org.mule.MuleServer.main(MuleServer.java:121)<br />
ERROR 2010-01-22 14:15:41,671 [main] org.mule.MuleServer:<br />
</code></p>
<p>Switching to JDK 6 solved it :<br />
<code><br />
INFO  2010-01-22 14:18:18,142 [main] org.mule.DefaultMuleContext:<br />
**********************************************************************<br />
* Mule ESB and Integration Platform                                  *<br />
* Version: 2.2.0 Build: 14110                                        *<br />
* MuleSource, Inc.                                                   *<br />
* For more information go to http://mule.mulesource.org              *<br />
*                                                                    *<br />
* Server started: 1/22/10 2:18 PM                                    *<br />
* Server ID: 999d182b-0758-11df-82a2-811cd9e5dabf                    *<br />
* JDK: 1.6.0_15 (mixed mode)                                         *<br />
* OS encoding: UTF-8, Mule encoding: UTF-8                           *<br />
* OS: Mac OS X (10.5.8, x86_64)                                      *<br />
* Host: loic-talbots-macbook-pro.local (192.168.0.10)                *<br />
*                                                                    *<br />
* Agents Running: None                                               *<br />
</code></p>
<p>pheeewww&#8230; it should have taken a few minutes, it took a few hours to figure out I should not use JDK5. Now I&#8217;ll experience this lightweight SOA architecture to expose SOAP web services. Something for a next post.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ltalbot.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ltalbot.wordpress.com/51/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ltalbot.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ltalbot.wordpress.com/51/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ltalbot.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ltalbot.wordpress.com/51/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ltalbot.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ltalbot.wordpress.com/51/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ltalbot.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ltalbot.wordpress.com/51/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ltalbot.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ltalbot.wordpress.com/51/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ltalbot.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ltalbot.wordpress.com/51/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ltalbot.wordpress.com&amp;blog=6602331&amp;post=51&amp;subd=ltalbot&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ltalbot.wordpress.com/2010/01/22/mule-esb-set-up-with-maven-under-eclipse-osx/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7a7224edbac9242709e448b35d8207ca?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ltalbot</media:title>
		</media:content>

		<media:content url="http://ltalbot.files.wordpress.com/2010/01/picture-2.png" medium="image">
			<media:title type="html">project properties under eclipse</media:title>
		</media:content>

		<media:content url="http://ltalbot.files.wordpress.com/2010/01/picture-1.png" medium="image">
			<media:title type="html">Picture 1</media:title>
		</media:content>
	</item>
		<item>
		<title>Could not see my WSDL using Apache Axis 2 with Eclipse WTP</title>
		<link>http://ltalbot.wordpress.com/2009/12/07/could-not-see-my-wsdl-using-apache-axis-2-with-eclipse-wtp/</link>
		<comments>http://ltalbot.wordpress.com/2009/12/07/could-not-see-my-wsdl-using-apache-axis-2-with-eclipse-wtp/#comments</comments>
		<pubDate>Mon, 07 Dec 2009 13:23:10 +0000</pubDate>
		<dc:creator>Loïc</dc:creator>
				<category><![CDATA[java]]></category>
		<category><![CDATA[Web services]]></category>
		<category><![CDATA[Apache Axis2]]></category>
		<category><![CDATA[Eclipse]]></category>
		<category><![CDATA[WSDL]]></category>
		<category><![CDATA[WTP]]></category>

		<guid isPermaLink="false">http://ltalbot.wordpress.com/?p=41</guid>
		<description><![CDATA[I have spent some time figuring out why I could not see any WSDL despite everything else seemed to be OK. After having followed these kind of steps: Creating web services with Eclipse (Bottom up) it appears that I could not see any WSDL. So I have typed http://localhost:8080/Axis2/axis2-web/index.jsp , then clicked on services and [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ltalbot.wordpress.com&amp;blog=6602331&amp;post=41&amp;subd=ltalbot&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I have spent some time figuring out why I could not see any WSDL despite everything else seemed to be OK.</p>
<p>After having followed these kind of steps: <a href="http://www.softwareagility.gr/index.php?q=node/21"> Creating web services with Eclipse (Bottom up)</a> it appears that I could not see any WSDL.<br />
So I have typed <a href="http://localhost:8080/Axis2/axis2-web/index.jsp">http://localhost:8080/Axis2/axis2-web/index.jsp</a> , then clicked on services and the following screen was displayed:</p>
<div id="attachment_42" class="wp-caption alignleft" style="width: 310px"><a href="http://ltalbot.files.wordpress.com/2009/12/picture-5.png"><img class="size-medium wp-image-42" title="Axis main screen" src="http://ltalbot.files.wordpress.com/2009/12/picture-5.png?w=300&#038;h=209" alt="Axis main screen" width="300" height="209" /></a><p class="wp-caption-text">Axis main screen</p></div>
<p>The service  - Converter &#8211; seemed to be running ! but when trying to reach the WSDL by clicking on the Converter link I had this:</p>
<div id="attachment_43" class="wp-caption alignleft" style="width: 490px"><a href="http://ltalbot.files.wordpress.com/2009/12/picture-6.png"><img class="size-full wp-image-43" title="WSDL page" src="http://ltalbot.files.wordpress.com/2009/12/picture-6.png?w=600" alt="WSDL page"   /></a><p class="wp-caption-text">WSDL page</p></div>
<p>After some experiments I have found that the WSDL was actually correct (!) . it was just not displayed in Safari. Running the same URL on Firefox confirmed it.</p>
<p>It&#8217;s not the first time something is hidden by Safari unfortunately. It seems it waits a really clean html code. It&#8217;s still viewable by clicking on <strong>view-&gt; view Source</strong> but you don&#8217;t expect immediately such a thing to happen.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ltalbot.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ltalbot.wordpress.com/41/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ltalbot.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ltalbot.wordpress.com/41/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ltalbot.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ltalbot.wordpress.com/41/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ltalbot.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ltalbot.wordpress.com/41/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ltalbot.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ltalbot.wordpress.com/41/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ltalbot.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ltalbot.wordpress.com/41/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ltalbot.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ltalbot.wordpress.com/41/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ltalbot.wordpress.com&amp;blog=6602331&amp;post=41&amp;subd=ltalbot&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ltalbot.wordpress.com/2009/12/07/could-not-see-my-wsdl-using-apache-axis-2-with-eclipse-wtp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7a7224edbac9242709e448b35d8207ca?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ltalbot</media:title>
		</media:content>

		<media:content url="http://ltalbot.files.wordpress.com/2009/12/picture-5.png?w=300" medium="image">
			<media:title type="html">Axis main screen</media:title>
		</media:content>

		<media:content url="http://ltalbot.files.wordpress.com/2009/12/picture-6.png" medium="image">
			<media:title type="html">WSDL page</media:title>
		</media:content>
	</item>
		<item>
		<title>Manual binding for Flex ArrayCollection</title>
		<link>http://ltalbot.wordpress.com/2009/11/10/manual-binding-for-flex-arraycollection/</link>
		<comments>http://ltalbot.wordpress.com/2009/11/10/manual-binding-for-flex-arraycollection/#comments</comments>
		<pubDate>Tue, 10 Nov 2009 20:49:59 +0000</pubDate>
		<dc:creator>Loïc</dc:creator>
				<category><![CDATA[Flex]]></category>
		<category><![CDATA[RIA]]></category>
		<category><![CDATA[actionscript 3]]></category>
		<category><![CDATA[arrayCollection]]></category>
		<category><![CDATA[binding]]></category>
		<category><![CDATA[ChangeWatcher]]></category>

		<guid isPermaLink="false">http://ltalbot.wordpress.com/?p=37</guid>
		<description><![CDATA[I have been pulling my hair out for a while on this! I was manually binding an arrayCollection using mx.binding.utils.ChangeWatcher: ChangeWatcher.watch(ModelLocator.getInstance(), "_comboChoices", prepareDataProvider); and it did not work. After googling I have found the reason here: http://old.nabble.com/ChangeWatcher&#8211;watch&#8212;ArrayCollection-td20594413.html and I finally came with this single &#8211; yet working &#8211; line of code: _modelLocator._comboChoices.addEventListener(CollectionEvent.COLLECTION_CHANGE, prepareDataProvider); that&#8217;s it [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ltalbot.wordpress.com&amp;blog=6602331&amp;post=37&amp;subd=ltalbot&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I have been pulling my hair out for a while on this!<br />
I was manually binding an arrayCollection using mx.binding.utils.ChangeWatcher:</p>
<p><code>ChangeWatcher.watch(ModelLocator.getInstance(), "_comboChoices", prepareDataProvider);</code></p>
<p>and it did not work. After googling I have found the reason here:</p>
<p><a href="http://old.nabble.com/ChangeWatcher--watch---ArrayCollection-td20594413.html">http://old.nabble.com/ChangeWatcher&#8211;watch&#8212;ArrayCollection-td20594413.html</a></p>
<p>and I finally came with this single &#8211; yet working &#8211; line of code:<br />
<code><br />
_modelLocator._comboChoices.addEventListener(CollectionEvent.COLLECTION_CHANGE, prepareDataProvider);<br />
</code></p>
<p>that&#8217;s it ! My prepareDataProvider function was called ! <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ltalbot.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ltalbot.wordpress.com/37/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ltalbot.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ltalbot.wordpress.com/37/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ltalbot.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ltalbot.wordpress.com/37/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ltalbot.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ltalbot.wordpress.com/37/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ltalbot.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ltalbot.wordpress.com/37/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ltalbot.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ltalbot.wordpress.com/37/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ltalbot.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ltalbot.wordpress.com/37/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ltalbot.wordpress.com&amp;blog=6602331&amp;post=37&amp;subd=ltalbot&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ltalbot.wordpress.com/2009/11/10/manual-binding-for-flex-arraycollection/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7a7224edbac9242709e448b35d8207ca?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ltalbot</media:title>
		</media:content>
	</item>
		<item>
		<title>Eclipse 3.5 now runs with Java6 on Mac OSX</title>
		<link>http://ltalbot.wordpress.com/2009/05/30/eclipse-3-5-now-runs-with-java6-on-mac-osx/</link>
		<comments>http://ltalbot.wordpress.com/2009/05/30/eclipse-3-5-now-runs-with-java6-on-mac-osx/#comments</comments>
		<pubDate>Sat, 30 May 2009 05:24:34 +0000</pubDate>
		<dc:creator>Loïc</dc:creator>
				<category><![CDATA[Configuration]]></category>
		<category><![CDATA[Java6 Eclipse Mac OSX configuration]]></category>

		<guid isPermaLink="false">http://ltalbot.wordpress.com/?p=8</guid>
		<description><![CDATA[At last Eclipse can now be run withJava6 on mac OSX. For sure it may not be stable as the version of Eclipse is still not a release candidate but it&#8217;s a clear step forward. Here are the steps I did to make it work: Make java6 be the default JDK. remove the link to [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ltalbot.wordpress.com&amp;blog=6602331&amp;post=8&amp;subd=ltalbot&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>At last Eclipse can now be run withJava6 on mac OSX. For sure it may not be stable as the version of Eclipse is still not a release candidate but it&#8217;s a clear step forward.</p>
<p>Here are the steps I did to make it work:</p>
<ol>
<li>Make java6 be the default JDK.</li>
<li>remove the link to java 5 JDK.</li>
<li>set JAVA_HOME environment variable.</li>
<li>download eclipse 3.5 64 bits cocoa for mac OSX.</li>
<li>change the eclipse.ini file </li>
<li>change the Info.plist file</li>
</ol>
<p>I&#8217;ve now illustrated them in details:</p>
<p> </p>
<ul>
<li>type java preferences in spotlight and set the parameters as illustrated below:</li>
</ul>
<p><img class="size-medium wp-image-9 alignleft" title="picture-1" src="http://ltalbot.files.wordpress.com/2009/05/picture-1.png?w=300&#038;h=213" alt="picture-1" width="300" height="213" /></p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<ul>
<li>removing the link of JDK 1.5 </li>
</ul>
<p>In the folder /System/Library/Frameworks/JavaVM.framework/Versions remove the current link to JDK1.5 and set it to JDK1.6</p>
<blockquote><p>sudo rm CurrentJDK</p>
<p>sudo ln -s 1.6 CurrentJDK</p></blockquote>
<p>Here is my files in this folder after the operation is completed</p>
<p> </p>
<blockquote><p><img class="size-medium wp-image-12 alignleft" title="Picture 2" src="http://ltalbot.files.wordpress.com/2009/05/picture-2.png?w=300&#038;h=150" alt="Picture 2" width="300" height="150" /></p></blockquote>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<ul>
<li>setting JAVA_HOME environment variable</li>
</ul>
<p>Check that the JAVA_HOME environment variable points to the correct path by typing env | grep JAVA_HOME</p>
<p>If it&#8217;s not JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Versions/1.6/Home then in your home folder edit the .bash_profile file and add</p>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:499px;width:1px;height:1px;">AVA_HOME=/System/Library/Frameworks/JavaVM.framework/Versions/1.6/Home</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:499px;width:1px;height:1px;">export JAVA_HOME</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:499px;width:1px;height:1px;">PATH=$JAVA_HOME/bin:$PATH</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:499px;width:1px;height:1px;">export PATH</div>
<blockquote><p>JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Versions/1.6/Home</p>
<p>export JAVA_HOME</p>
<p>PATH=$JAVA_HOME/bin:$PATH</p>
<p>export PATH</p></blockquote>
<ul>
<li>download the right version of eclipse</li>
</ul>
<p><a href="http://download.eclipse.org/eclipse/downloads/drops/S-3.5M6-200903130100/download.php?dropFile=eclipse-SDK-3.5M6-macosx-cocoa-x86_64.tar.gz">eclipse-SDK-3.5M6-macosx-cocoa-x86_64.tar.gz</a></p>
<p>and uncompress it in the folder of your choice.</p>
<ul>
<li>change the config.ini file</li>
</ul>
<p>There &#8216;s a config.ini file in the configuration folder of the eclipse installation. Edit it to add:</p>
<p> </p>
<blockquote><p>-vm /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/bin/java</p></blockquote>
<p>It tells eclipse platform the default version to use to run the program.</p>
<p>Then you&#8217;re done, launch ./eclipse in the root directory of the eclipse installation.</p>
<p><img class="alignleft size-full wp-image-17" title="Eclipse 3.5 running with Java 6" src="http://ltalbot.files.wordpress.com/2009/05/picture-3.png?w=600" alt="Eclipse 3.5 running with Java 6"   /></p>
<p>I have done this with Eclipse 3.5M5 version. The release candidate should be available very soon.</p>
<p><span style="color:#0000ee;text-decoration:underline;"><br />
</span></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ltalbot.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ltalbot.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ltalbot.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ltalbot.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ltalbot.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ltalbot.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ltalbot.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ltalbot.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ltalbot.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ltalbot.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ltalbot.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ltalbot.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ltalbot.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ltalbot.wordpress.com/8/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ltalbot.wordpress.com&amp;blog=6602331&amp;post=8&amp;subd=ltalbot&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ltalbot.wordpress.com/2009/05/30/eclipse-3-5-now-runs-with-java6-on-mac-osx/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7a7224edbac9242709e448b35d8207ca?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ltalbot</media:title>
		</media:content>

		<media:content url="http://ltalbot.files.wordpress.com/2009/05/picture-1.png?w=300" medium="image">
			<media:title type="html">picture-1</media:title>
		</media:content>

		<media:content url="http://ltalbot.files.wordpress.com/2009/05/picture-2.png?w=300" medium="image">
			<media:title type="html">Picture 2</media:title>
		</media:content>

		<media:content url="http://ltalbot.files.wordpress.com/2009/05/picture-3.png" medium="image">
			<media:title type="html">Eclipse 3.5 running with Java 6</media:title>
		</media:content>
	</item>
	</channel>
</rss>
