Archive for the ‘Configuration’ Category

Working with and Git (BitBucket)

September 18, 2012 Leave a comment

I have recently discovered, an online editor + runtime that allow you to work remotely and share with your team. Not only does it allow you to write and test html+css, php, javascript code, you can also push on your git repository with it.

The documentation is not accurate enough for me, so I’ll add a more few lines here:

  • you need to copy your ssh key on your clipboard. you will find it on your c9i workspace

  • then copy it into your bitbucket account settings:

and now you can push into your bitbucket repository from

For instance:

my repo is
git remote add origin
git add *
git commit - m 'initial revision'
git push -u origin master
Categories: Configuration Tags: , ,

Configuring a Java project with MS SQL Server 2000

March 29, 2010 Leave a comment

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 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 🙂

Then if you try to find a MS SQL 2000 driver on the Internet you won’t find. You will need to download the MS SQL 2005 JDBC driver. On the download page Microsoft says it works for both 2000 and 2005 version of their product. I can now tell this is true.

True, for sure, but I also had to change the spring datasource configuration a bit:

property name="jndiName" value="java:comp/env/jdbc/wwdfvpDS"

instead of this one (which works for the other team members)

property name="jndiName" value="java:jdbc/wwdfvpDS"

Basically that’s just a syntactical change and to my opinion it’s due to the JDBC driver. That’s why I think it’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’s no regression.

Eclipse 3.5 now runs with Java6 on Mac OSX

May 30, 2009 Leave a comment

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’s a clear step forward.

Here are the steps I did to make it work:

  1. Make java6 be the default JDK.
  2. remove the link to java 5 JDK.
  3. set JAVA_HOME environment variable.
  4. download eclipse 3.5 64 bits cocoa for mac OSX.
  5. change the eclipse.ini file 
  6. change the Info.plist file

I’ve now illustrated them in details:


  • type java preferences in spotlight and set the parameters as illustrated below:









  • removing the link of JDK 1.5 

In the folder /System/Library/Frameworks/JavaVM.framework/Versions remove the current link to JDK1.5 and set it to JDK1.6

sudo rm CurrentJDK

sudo ln -s 1.6 CurrentJDK

Here is my files in this folder after the operation is completed


Picture 2







  • setting JAVA_HOME environment variable

Check that the JAVA_HOME environment variable points to the correct path by typing env | grep JAVA_HOME

If it’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

export JAVA_HOME
export PATH


export JAVA_HOME


export PATH

  • download the right version of eclipse


and uncompress it in the folder of your choice.

  • change the config.ini file

There ‘s a config.ini file in the configuration folder of the eclipse installation. Edit it to add:


-vm /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/bin/java

It tells eclipse platform the default version to use to run the program.

Then you’re done, launch ./eclipse in the root directory of the eclipse installation.

Eclipse 3.5 running with Java 6

I have done this with Eclipse 3.5M5 version. The release candidate should be available very soon.