define( 'WPCACHEHOME', '/srv/www/' ); //Added by WP-Cache Manager June, 2011 | Ian Chilton


Archive for June, 2011

Fixing the Ubuntu “Unable to locate tools.jar” Error

June 14th, 2011 No comments

When trying to use ant on Ubuntu (in either 10.04 or 10.10), I get the following error:
Unable to locate tools.jar. Expected to find it in /usr/lib/jvm/java-6-openjdk/lib/tools.jar

Turns out the fix is quite simple:

Edit /etc/apt/sources.list, find the lines similar to the following and uncomment them (obviously 10.04 will have lucid instead of maverick):
deb maverick partner
deb-src maverick partner

sudo apt-get update && apt-get install sun-java6-jdk
sudo update-alternatives --config java

Pick the option for: /usr/lib/jvm/java-6-sun/jre/bin/java which was number 2 on mine, rather than the openjdk default.

You now shouldn’t get that warning/error.

Categories: Linux Tags: ,

Creating a Mac OS X 10.7 Lion Install DVD

June 11th, 2011 No comments

I assume anyone that cares will be aware of the announcements from this year’s WWDC Keynote (video).

The first of these big announcements was regarding the next version of OS X, Apple’s Operating System for the Mac, code-named Lion (version 10.7). Lion will be available in July, priced at $29.99 and for the first time, only available in the “App Store”.

Shipping the upgrade in the App Store allows Apple to keep the cost down and provides a very easy way of obtaining the update. What is also neat is that as with other App Store applications, you are permitted to purchase it once and install on any number of Mac’s that you own and have linked to your Apple Account.

My instant reactions about ONLY shipping through the App Store (as opposed to offering it through the App Store but also providing the ability to purchase DVD’s from an Apple Store or the Apple Site) were:

What if you want to do a clean installation?

If you are re-installing in the future, do you need to install Snow Leopard and then upgrade to Lion all over again?

What happens if you don’t have an internet connection capable of downloading 4GB? (or have a non-internet connected Mac?)

What if you have a Mac without Snow Leopard and the App Store?

Will you be able to create a DVD some how?

Thankfully, even before it’s released, someone has already published a very easy way of creating a Mac OS X Lion DVD on any Lion compatible Mac running Snow Leopard.

  1. Purchase and download Lion from the Mac App Store.
  2. Right click on “Mac OS X Lion” installer and choose the option to “Show Package Contents.”
  3. Inside the Contents folder that appears you will find a SharedSupport folder and inside the SharedSupport folder you will find the “InstallESD.dmg”. This is the Lion boot disc image.
  4. Copy “InstallESD.dmg” to another folder like the Desktop.
  5. Launch Disk Utility and click the burn button.
  6. Select the copied “InstallESD.dmg” as the image to burn, insert a standard sized 4.7 GB DVD and wait.

I’ve not tried this as I don’t have access to the Lion beta, but it sure looks sane and shows that (assuming nothing changes before the final release) it will be possible. This is good news for me as i’m much more of a clean install than an upgrade guy.

I also assume that if Apple have made this so easy to do that they are ok with it – and after all, you are still genuinely purchasing the update.

Categories: Apple Tags: , ,