Tag Archives: aptana

Getting git working in aptana on Ubuntu

  1. Make sure you have sun java installed (see here)
  2. Obviously install git and any languages you want to use
  3. If you do not have firefox installed you’ll need to download webkit/mozilla packages (I’m not exactly sure which)
  4. Install the following:
    • xulrunner-1.9.2-dev (NOT 2.0 – 2.0 seems to rename some things from mozilla to webkit, and aptana wants mozilla)
    • tk8.5 (might work with tk, I haven’t tried
    • python-tk
    • libswt-gtk-*-java (I have 3.6 version)

If you’re getting an error similar to the following:

 Unhandled event loop exception
 No more handles [MOZILLA_FIVE_HOME='/usr/lib/xulrunner-devel-2.0'] (java.lang.UnsatisfiedLinkError: Could not load SWT library ......

Make sure to install the 1.9.2 version of xulrunner instead of 2.0 (installing it should uninstall 2.0).
And if you’re getting an error similar to this:

exec 3 wish not found

Check your tk and python-tk are installed.


Once you’ve got rid of the error messages, you’re ready to start playing with git.  Connecting an existing repo to a remote one ([commands icon] -> more -> add remote) was causing my aptana to crash without logging anything, however, creating a new project by importing a remote git repo worked, so let’s do that:
File > Import > Git > Git Repository

If you import an empty remote repo, the first time you try and push your files to the repo you’ll get the following error:

No refs in common and none specified; doing nothing.
Perhaps you should specify a branch such as 'master'.

To fix this, go to the terminal within aptana (or a normal terminal), make sure you’re in your project folder, and type:
git push origin master

This will sync the files, and from then you should be able to push properly.