Apple Mac OSX Preview Annotate

If you need help annotating PDF documents, this tip is NOT for you, just re-google.

My Preview tool would not let me edit or add further annotations to image files. The menu option was always gray until i found the trick: add an Annotation button to the Preview toolbar. How ? Click VIEW then click CUSTOMIZE TOOLBAR.

Picture 5

This opens a button selection panel. Move your mouse cursor over the Annotate button ( red circle above ) and click/drag that button to top right of the ‘Slideshow’ button landing area. Release mouse button to freeze it. Restart your Preview and you should find the annotate button is now available to draw and write notes on most image file formats. If you click the annotate button, you’ll see a set of style choices of annotations you can apply. annotateChoose one style by clicking on it, then when your mouse cursor is over the image again you’ll see the cross-hairs + sign. Click and drag to make a bounded box. I like notes so i use those a lot. We can even change the fonts and colors but don’t have time to explain that. Good annotating !! ūüôā

TenFourFox (aka Firefox) V20.0 ready for Apple iMac PPC‚Äôs G3,G4 & G5

The staff at Floodgap Software have worked overtime to keep us older Apple iMac people happy by reworking the Mozilla source code for Firefox. This allows them to produce a version of this famous browser for the PowerPC chipsets found in older Apple iMac, Powerbooks, etc. Supported chipsets include G3, G4 and G5 processors. You can look at their Floodgap Intro Page here: http://www.floodgap.com/software/tenfourfox/

Grab a download of the TenFourFox Version (Firefox) for your iMac PowerPC Chipset system here: http://code.google.com/p/tenfourfox/downloads/list. You will need to know which processor your system has.

The release notes can be found here : http://code.google.com/p/tenfourfox/wiki/ReleaseNotes200

Developer notes can be found here: http://tenfourfox.blogspot.fr/

Building a Git Client 1.8.2 on Apple iMac PPC OSX 10.5.8

Preview

My aging Apple iMac has a G7450 PPC chipset. It has seen many developer wars from years gone by, and still it does frequent battle with software developed solely for the Intel world of Apple.

Now

As my current efforts revolve around learning Git tooling, it became apparent that very old versions of Git clients would not offer the new features we need when developing and packaging code. This forced me to pull out my 20 year old notes on how to code and compile in the C programming language. Ug! It’s like reliving a nightmare – now i remember why i learned cobol, rpg and java !

Rescue

A bit of googling found this link from shiningthrough.co.uk which gives us a clear set of instructions to build the latest git client from C source code. You’ll need an Apple with a PPC chipset ( if you are using an Intel chipset, this post is not for you! ), a C compiler (mine came with the Apple development tool Xcode), the C source code, a bunch of free disk space, patience, and luck.

Picture 2Git Client

To build a recent version of the git client, here is an overview of the steps we’ll follow :

  1. Download a recent version of the Git client from here. This is for version 1.8.2.tar.gz or you can choose a later version if you must.
  2. Open a command terminal
  3. Unpack / unzip the downloaded archive
  4. Change to the directory where you downloaded the C source code from above
  5. Compile the source code
  6. Install the compiled program
  7. Test

Terminal Commands

From your terminal command line, do these steps :

Get source code as above

cd ~/Downloads
tar -xjf git-1.8.2.tar.gz
cd git-1.8.2
make prefix=/usr/local
sudo make prefix=/usr/local install

// after you restart your system / or at least logon again as your user

git –version

// you should see something like this:
iMac:git-1.8.2 jim$ ./git -version
Unknown option: -version
usage: git [–version] [–help] [-c name=value]
¬†¬†¬†¬†¬†¬†¬†¬†¬†¬† [–exec-path[=<path>]] [–html-path] [–man-path] [–info-path]
¬†¬†¬†¬†¬†¬†¬†¬†¬†¬† [-p|–paginate|–no-pager] [–no-replace-objects] [–bare]
¬†¬†¬†¬†¬†¬†¬†¬†¬†¬† [–git-dir=<path>] [–work-tree=<path>] [–namespace=<name>]
           <command> [<args>]
iMac:git-1.8.2 jim$ ./git –version
git version 1.8.2

From Gradle to Crave

Been learning Gradle as a build tool now and quite impressed. Have a problem with Gradle after version 1.1, so this means 1.2, 1.3 and 1.4. Note this is being tested on Apple iMac OSX 10.5.8 PPC chipset, so may not apply to you. My java is :

tiny:~ jim$ java -version
 java version "1.5.0_30"
 Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_30-b03-389-9M3425)
 Java HotSpot(TM) Client VM (build 1.5.0_30-161, mixed mode, sharing)

Gradle fails on any access to any HTTPS repository that needs SSL Authentication.

tiny:caelyf-template-project-0.1d jim$ gradle build
Creating properties on demand (a.k.a. dynamic properties) has been deprecated and is scheduled to be removed in Gradle 2.0. Please read http://gradle.org/docs/current/dsl/org.gradle.api.plugins.ExtraPropertiesExtension.html for information on the replacement for dynamic properties.
Deprecated dynamic property: "webAppDirName" on "root project 'caelyf-template-project-0.1d'", value: "/Volumes/Media/Softwar...".
FAILURE: Build failed with an exception.
* What went wrong:
Could not resolve all dependencies for configuration ':compile'.
> Could not resolve org.codehaus.groovy:groovy:2.0.5.
 Required by:
 :caelyf-template-project-0.1d:0.1
 > Failure initializing default system SSL context
 

Have found a reference here: http://forums.gradle.org/gradle/topics/upgrade_to_1_2_breaks_keystore_was_tampered_with?topic=upgrade_to_1_2_breaks_keystore_was_tampered_with

indicating the HTTPS / SSL access breakage does not happen before gradle version 1.1. So as a side-step, i’ve change my build.gradle wrapper version back to version 1.1 and from a terminal command line :

gradlew wrapper

then as long as i use gradlew – the wrapper version of gradle, it works fine. If i try to use my installed version 1.4, just using the gradle command, it will fail.

Java Open JDK 7 / SDK 1.7 for Apple PPC iMac / Macbook G3, G4 and G5 – Part 2

Review

Please read part one for links to references that helped with this installation. After completing these steps, my aging Apple iMac PPC system had a fully functional openJDK 1.7 and now google app engine is happy and no longer gives me a bad version in class file message. Ok, the down-side of this way of doing it is that the apple-specific features that make java gui’s look-like-an-apple are not there. I can live with that as i do not do much java gui desktop hacking anyway. If you do, you may need to re-think this approach.

Essential Steps

  1. Downloaded OpenJDK, Java 1.7 from https://wikis.oracle.com/display/OpenJDK/Darwin9Build
  2. Changed permissions
  3. Copied / moved new package to temporary location to uncompress and unpack the content : /usr/java7
  4. Fixed up permissions and ownership of the components
  5. Confirmed setup would work in it’s temporary home and was in fact jdk 1.7
  6. Created a final folder the the standard apple folder to place the 1.7 assets and where it all would reside. Just to keep things tidy, chose to put this into the apple folder (see below) at /System/Library/Frameworks/JavaVM.framework/Versions/ so it sits in the apple folder used for the apple versions of java.
  7. Moved everything from /usr/java7 to /System/Library/Frameworks/JavaVM.framework/Versions/1.7.0 folder
  8. Used the temporary /usr/java7 folder as the landing place for all the new soft logical links pointing to my new jdk 1.7
  9. Changed all the PATH setup files to have /usr/java7 before the apple supplied same in /usr/bin where all the soft links to apple’s java versions sit, think this was the ~/.profile and .bashrc and some others i forgot to write down (google around to find out which ones you need on your system)
  10. Log out or reboot
  11. From terminal command line tried java -version and javac -version to confirm success, Houston we have lift-off !! JDK 1.7 is ready !!! Therefore since, /usr/java7 links are available before the typical apple links to java in /usr/bin folder, it all seems to hang together. Hope yours does too.
  12. Retry google app engine 1.7.0 and voila !

—-

Took kurt miller’s macppc build choice of jdk 7 to download from https://wikis.oracle.com/display/OpenJDK/Darwin9Build after download was complete, went into my download folder:

Changed directories to the download folder and changed the permissions of the downloaded jdk payload, just to avoid authority/permissions issues
sudo chmod 777 openjdk7u2-macppc-fcs-2012-03-14.tar.bz2

Moved the jdk to my /usr/local folder as a temporary landing place
sudo mv openjdk7u2-macppc-fcs-2012-03-14.tar.bz2 /usr/local/

Went into that folder
cd /usr/local/

Uncompressed the jdk payload to get to the .tar
sudo bzip2 -d openjdk7u2-macppc-fcs-2012-03-14.tar.bz2

Unpacked the tape archive using tar command

sudo tar -xvf openjdk7u2-macppc-fcs-2012-03-14.tar
cd /usr/local/openjdk7u2-macppc-fcs-2012-03-14
ls -al

Is it here  before unpack ? Yes.
// ————————–
iMac:java7 jim$ cd /usr/local/
iMac:local jim$ ls -al
total 286464
drwxr-xr-x   5 root  wheel        170 27 Jul 17:01 .
drwxr-xr-x@ 13 root  wheel        442 27 Jul 23:41 ..
drwxr-xr-x  14 jim   admin        476 26 Jul 23:55 bin
drwxr-xr-x   8 root  wheel        272 23 Dec  2009 git
-rwxrwxrwx   1 root  staff  146667520 27 Jul 01:08 openjdk7u2-macppc-fcs-2012-03-14.tar
// ————————–

Went into that folder
cd openjdk7u2-macppc-fcs-2012-03-14

Went into the folder holding the payload executables
cd bin/

Let’s see if 1) they will execute or not 2) what jdk/sdk version are they ?
./java -version
./javac -version

should say jdk 1.7-ish !!!

Went back to user home folder
cd ~

What’s here ?
ls -al

If we have fixed the paths in the .profile (see below for edit ideas), then these commands are part of the soft links to our new java :
java
java -version

Er, no, not yet.

Made a new jdk 7 folder in the typical apple location
cd /System/Library/Frameworks/JavaVM.framework/Versions
sudo mkdir 1.7.0
cd 1.7.0

cd /System/Library/Frameworks/JavaVM.framework/Versions/1.7.0

// here’s a look at my folder setup after the above steps. Note the new 1.7.0 folder created to host the openJDK assets
// —————————————————————–
iMac:~ jim$ cd /System/Library/Frameworks/JavaVM.framework/Versions/
iMac:Versions jim$ ls -al
total 48
drwxr-xr-x  13 root  wheel  442 27 Jul 12:04 .
drwxr-xr-x  12 root  wheel  408  3 Aug  2011 ..
lrwxr-xr-x   1 root  wheel    5  3 Aug  2011 1.3 -> 1.3.1
drwxr-xr-x   3 root  wheel  102 29 Sep  2007 1.3.1
lrwxr-xr-x   1 root  wheel    5 18 Sep  2009 1.4 -> 1.4.2
lrwxr-xr-x   1 root  wheel    3 22 Dec  2007 1.4.1 -> 1.4
drwxr-xr-x   8 root  wheel  272 22 Dec  2007 1.4.2
lrwxr-xr-x   1 root  wheel    5  3 Aug  2011 1.5 -> 1.5.0
drwxr-xr-x   8 root  wheel  272 22 Dec  2007 1.5.0
drwxr-xr-x¬† 14 root¬† wheel¬† 476 27 Jul 12:06 1.7.0¬† <—- new folder as permanent home for jdk 1.7
drwxr-xr-x   9 root  wheel  306 27 Jul 17:08 A
lrwxr-xr-x   1 root  wheel    1 27 Jul 00:44 Current -> A
lrwxr-xr-x   1 root  wheel    5 10 May 17:11 CurrentJDK -> 1.5.0
// —————————————————————

Moved all the bits from jdk7 in /usr/local to here
sudo mv /usr/local/openjdk7u2-macppc-fcs-2012-03-14/* .

Changed owners on all asets
sudo chown -R root:wheel .

// ——————————————–
Went home
cd ~

Ready to fix some path declarations to point to the new /usr/java7 folder full of links plus something for my google app engine install – you won’t need to do APP_ENGINE_HOME if you do not use google app engine. Just place /usr/java7 before the /usr/bin folder in your path identified by $PATH in our export statement below
sudo nano .profile

// ——————————-
export DERBY_HOME=/Volumes/Media/Software/derby/db-derby-10.5.3.0
export GROOVY_HOME=/Volumes/Media/Software/groovy-1.9.0
export PLAY_HOME=/Volumes/Media/Software/Play-1.2.4
export APP_ENGINE_HOME=/Volumes/Media/Software/appengine-java-sdk-1.7.0
export PATH=”.:$PLAY_HOME:$DERBY/bin:$GROOVY_HOME/bin:/usr/java7:$PATH”

then ctrl+o +enter key to save
then ctrl-x  to exist
// ———————————–

Make your export PATH declaration look similar to the above.

// —————————-
also may need to fix up / review paths in :
sudo nano .bash_profile
sudo nano .bashrc

// —¬† when successful, my new PATH variable looks like this:
iMac:Versions jim$ cd ~
iMac:~ jim$ cat .profile
export DERBY_HOME=/Volumes/Media/Software/derby/db-derby-10.5.3.0
export GROOVY_HOME=/Volumes/Media/Software/groovy-1.9.0
export PLAY_HOME=/Volumes/Media/Software/Play-1.2.4
export APP_ENGINE_HOME=/Volumes/Media/Software/appengine-java-sdk-1.7.0
export PATH=”.:$PLAY_HOME:$DERBY/bin:$GROOVY_HOME/bin:/usr/java7:$PATH”
export PS1=”\u@\h\w: “

iMac:~ jim$ echo $PATH
.:/Volumes/Media/Software/Play-1.2.4:/bin:/Volumes/Media/Software/groovy-1.9.0/bin:/Volumes/Media/Software/appengine-java-sdk-1.7.0/bin:/usr/java7:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/usr/local/git/bin

// ————————————————————–
So notice how /usr/java7 links to java are in the path ahead of/before /usr/bin ?
This way, the new pointers and links to the openJDK7 assets are found first when OSX does a path search for executables

My /usr/bin looks like this and has apple declared soft links to their version of java :
iMac:bin jim$ pwd
/usr/bin

// —————————————————————
iMac:bin jim$ ls -al j*
lrwxr-xr-x   1 root  wheel     73 10 May 16:55 jar -> /System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands/jar
lrwxr-xr-x   1 root  wheel     79 10 May 16:55 jarsigner -> /System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands/jarsigner
lrwxr-xr-x   1 root  wheel     74 10 May 16:55 java -> /System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands/java
lrwxr-xr-x   1 root  wheel     75 10 May 16:55 javac -> /System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands/javac
-r-xr-xr-x   1 root  wheel  50976 24 Sep  2007 javaconfig
lrwxr-xr-x   1 root  wheel     77 10 May 16:55 javadoc -> /System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands/javadoc
lrwxr-xr-x   1 root  wheel     75 10 May 16:55 javah -> /System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands/javah
lrwxr-xr-x   1 root  wheel     75 10 May 16:55 javap -> /System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands/javap
-r-xr-xr-x   1 root  wheel  72336 24 Sep  2007 javatool
lrwxr-xr-x   1 root  wheel     76 10 May 16:55 javaws -> /System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands/javaws
lrwxr-xr-x   1 root  wheel     78 10 May 16:55 jconsole -> /System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands/jconsole
lrwxr-xr-x   1 root  wheel     73 10 May 16:55 jdb -> /System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands/jdb
lrwxr-xr-x   1 root  wheel     74 10 May 16:55 jhat -> /System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands/jhat
lrwxr-xr-x   1 root  wheel     75 10 May 16:55 jinfo -> /System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands/jinfo
lrwxr-xr-x   1 root  wheel     74 10 May 16:55 jmap -> /System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands/jmap
lrwxr-xr-x   1 root  wheel     73 10 May 16:55 jps -> /System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands/jps
lrwxr-xr-x   1 root  wheel     79 10 May 16:55 jsadebugd -> /System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands/jsadebugd
lrwxr-xr-x   1 root  wheel     76 10 May 16:55 jstack -> /System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands/jstack
lrwxr-xr-x   1 root  wheel     75 10 May 16:55 jstat -> /System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands/jstat
lrwxr-xr-x   1 root  wheel     76 10 May 16:55 jstatd -> /System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands/jstatd
lrwxr-xr-x   1 root  wheel     72 10 May 16:55 jvisualvm -> /System/Library/Java/Support/VisualVM.bundle/Contents/Home/bin/jvisualvm
// ————————————————————-

Ok, then made another folder for all the new soft links to the new java – the one we declared in the changes above…
mkdir /usr/java7
cd /usr/java7

// created all these soft links essentially duplicating all those found in normal apple folders
sudo ln -s /System/Library/Frameworks/JavaVM.framework/Versions/1.7.0/bin/java java
sudo ln -s /System/Library/Frameworks/JavaVM.framework/Versions/1.7.0/bin/javac javac
sudo ln -s /System/Library/Frameworks/JavaVM.framework/Versions/1.7.0/bin/javadoc javadoc
sudo ln -s /System/Library/Frameworks/JavaVM.framework/Versions/1.7.0/bin/javah javah
sudo ln -s /System/Library/Frameworks/JavaVM.framework/Versions/1.7.0/bin/javap javap
sudo ln -s /System/Library/Frameworks/JavaVM.framework/Versions/1.7.0/bin/javaws javaws
sudo ln -s /System/Library/Frameworks/JavaVM.framework/Versions/1.7.0/bin/jconsole jconsole
sudo ln -s /System/Library/Frameworks/JavaVM.framework/Versions/1.7.0/bin/jdb jdb
sudo ln -s /System/Library/Frameworks/JavaVM.framework/Versions/1.7.0/bin/jhat jhat
sudo ln -s /System/Library/Frameworks/JavaVM.framework/Versions/1.7.0/bin/jinfo jinfo
sudo ln -s /System/Library/Frameworks/JavaVM.framework/Versions/1.7.0/bin/jmap jmap
sudo ln -s /System/Library/Frameworks/JavaVM.framework/Versions/1.7.0/bin/jps jps
sudo ln -s /System/Library/Frameworks/JavaVM.framework/Versions/1.7.0/bin/jstack jstack
sudo ln -s /System/Library/Frameworks/JavaVM.framework/Versions/1.7.0/bin/jstat jstat
sudo ln -s /System/Library/Frameworks/JavaVM.framework/Versions/1.7.0/bin/jstatd jstatd
sudo ln -s /System/Library/Frameworks/JavaVM.framework/Versions/1.7.0/bin/keytool keytool
sudo ln -s /System/Library/Frameworks/JavaVM.framework/Versions/1.7.0/bin/jar jar
sudo ln -s /System/Library/Frameworks/JavaVM.framework/Versions/1.7.0/bin/jarsigner jarsigner
sudo ln -s /System/Library/Frameworks/JavaVM.framework/Versions/1.7.0/bin/extcheck extcheck
sudo ln -s /System/Library/Frameworks/JavaVM.framework/Versions/1.7.0/bin/apt apt
sudo ln -s /System/Library/Frameworks/JavaVM.framework/Versions/1.7.0/bin/appletviewer appletviewer
sudo ln -s /System/Library/Frameworks/JavaVM.framework/Versions/1.7.0/bin/idlj idlj
sudo ln -s /System/Library/Frameworks/JavaVM.framework/Versions/1.7.0/bin/orbd orbd
sudo ln -s /System/Library/Frameworks/JavaVM.framework/Versions/1.7.0/bin/pack200 pack200
sudo ln -s /System/Library/Frameworks/JavaVM.framework/Versions/1.7.0/bin/policytool policytool
sudo ln -s /System/Library/Frameworks/JavaVM.framework/Versions/1.7.0/bin/unpack200 unpack200
sudo ln -s /System/Library/Frameworks/JavaVM.framework/Versions/1.7.0/bin/tnameserv tnameserv
sudo ln -s /System/Library/Frameworks/JavaVM.framework/Versions/1.7.0/bin/serialver serialver
sudo ln -s /System/Library/Frameworks/JavaVM.framework/Versions/1.7.0/bin/servertool servertool
sudo ln -s /System/Library/Frameworks/JavaVM.framework/Versions/1.7.0/bin/rmiregistry rmiregistry
sudo ln -s /System/Library/Frameworks/JavaVM.framework/Versions/1.7.0/bin/rmic rmic
sudo ln -s /System/Library/Frameworks/JavaVM.framework/Versions/1.7.0/bin/rmid rmid

Fixed up permission
sudo chmod 777 *

Went home to see if path changes took – no!
Had to open a new terminal session to use new changes so that fresh path layout was seen in new terminal session.
Rebooted system just to be sure.

After reboot, brought up a terminal window and went home

cd ~

// ————–>
Tried these commands to confirm successful placement of java 7 above/before the apple version of java found in /usr/bin which pointed to jdk 1.5 on my system (and still does). we have not disabled the apple versions, but apple OSX does not really know that JDK 1.7 is in place.

iMac:java7 jim$ javac -version
javac 1.7.0-internal

iMac:java7 jim$ java -version
openjdk version “1.7.0-internal”
OpenJDK Runtime Environment (build 1.7.0-internal-truk_2012_03_14_11_04-b00)
OpenJDK Zero VM (build 22.0-b10, interpreted mode)

Now tried the google app engine app_devserver.sh command again and voila, we have a happy google app engine we can use for development with openJDK 7

Thanx to Kurt Miller for his heroic efforts to put it all together for us old iMac users !!!

Java Open JDK 7 / SDK 1.7 for Apple PPC iMac / Macbook G3, G4 and G5 – Part 1

Part Two Is Here

Intro

Needed to run latest google app engine development tools on my aging Apple iMac with PPC processor and Mac OSX 10.5.8 – the latest/last incarnation for PPC systems.This was to overcome a bad version in .class file message in the google implemention.

This limited my non-intel Power P/C chipset system to JDK 1.6 as a max working java SDK, and even then it was problematic. So needed to see if it was possible to install the newer JDK 1.7. Since java is so tightly woven into the fabric of OSX, after a lot of research, it became obvious there was no way to do this the ‘apple way’. So i decided to try the open java 7 build as a virgin installation, thus avoiding any reference to the apple versions of java.

Turned out, this is a long-winded topic needing more than a single post. So will describe this ordeal in more than one post. In this post, i’ve listed the reference links used to research this topic. Turns out this is not as super complex as i first thought but for the mo. please review these links :

Reference Links

https://wikis.oracle.com/display/OpenJDK/Darwin9Build for ppc build links

Index of /OpenJDK/macppc and download link: http://www.intricatesoftware.com/OpenJDK/macppc/

openjdk-osx-build – OpenJDK 7 and 8 Community packages for OS/X Snow, Lion and Mountain Lion – Google Project Hosting: http://code.google.com/p/openjdk-osx-build/
Java Evangelist John Yeary’s Blog: OpenJDK 7 on Apple G5 PowerPC on Mac OS X 10.5.8: http://javaevangelist.blogspot.fr/2012/02/openjdk-7-on-apple-g5-powerpc-on-mac-os.html

OpenJDK: Mac OS X Port Project :http://openjdk.java.net/projects/macosx-port/

Issue 4712 – googleappengine – Java for Mac OS X Update Breaks dev_appserver – Google App Engine – Google Project Hosting: http://code.google.com/p/googleappengine/issues/detail?id=4712

google dev_appserver bad version number in .class apple ppc – Google Search:https://www.google.fr/search?q=google+dev_appserver+bad+version+number+in+.class+apple+ppc&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-US:unofficial&client=firefox-a

Installing Java 7 on Mac OS X | Javalobby : http://java.dzone.com/articles/installing-java-7-mac-os-x

Java – How install a specific jdk on Mac OS X? – Stack Overflow : http://stackoverflow.com/questions/1577014/how-install-a-specific-jdk-on-mac-os-x

openjdk-osx-build – OpenJDK 7 and 8 Community packages for OS/X Snow, Lion and Mountain Lion – Google Project Hosting : http://code.google.com/p/openjdk-osx-build/

New Soft Link Layout – Post Install

This is not the correct place to show you this set of logical soft links, but just stuck it here for the moment. It shows my new /usr/java7 folder holding just the fresh links to the newly installed java7 bits.

// ====================================================================
 iMac:usr jim$ cd /usr/java7
 iMac:java7 jim$ ls -al
 total 256
 drwxrwxrwx  34 root  wheel  1156 27 Jul 23:51 .
 drwxr-xr-x@ 13 root  wheel   442 27 Jul 23:41 ..
 lrwxr-xr-x   1 root  wheel    75 27 Jul 23:48 appletviewer -> /System/Library/Frameworks/JavaVM.framework/Versions/1.7.0/bin/appletviewer
 lrwxr-xr-x   1 root  wheel    66 27 Jul 23:48 apt -> /System/Library/Frameworks/JavaVM.framework/Versions/1.7.0/bin/apt
 lrwxr-xr-x   1 root  wheel    71 27 Jul 23:48 extcheck -> /System/Library/Frameworks/JavaVM.framework/Versions/1.7.0/bin/extcheck
 lrwxr-xr-x   1 root  wheel    67 27 Jul 23:49 idlj -> /System/Library/Frameworks/JavaVM.framework/Versions/1.7.0/bin/idlj
 lrwxr-xr-x   1 root  wheel    66 27 Jul 23:47 jar -> /System/Library/Frameworks/JavaVM.framework/Versions/1.7.0/bin/jar
 lrwxr-xr-x   1 root  wheel    72 27 Jul 23:47 jarsigner -> /System/Library/Frameworks/JavaVM.framework/Versions/1.7.0/bin/jarsigner
 lrwxr-xr-x   1 root  wheel    67 27 Jul 23:44 java -> /System/Library/Frameworks/JavaVM.framework/Versions/1.7.0/bin/java
 lrwxr-xr-x   1 root  wheel    68 27 Jul 23:44 javac -> /System/Library/Frameworks/JavaVM.framework/Versions/1.7.0/bin/javac
 lrwxr-xr-x   1 root  wheel    70 27 Jul 23:44 javadoc -> /System/Library/Frameworks/JavaVM.framework/Versions/1.7.0/bin/javadoc
 lrwxr-xr-x   1 root  wheel    68 27 Jul 23:44 javah -> /System/Library/Frameworks/JavaVM.framework/Versions/1.7.0/bin/javah
 lrwxr-xr-x   1 root  wheel    68 27 Jul 23:44 javap -> /System/Library/Frameworks/JavaVM.framework/Versions/1.7.0/bin/javap
 lrwxr-xr-x   1 root  wheel    69 27 Jul 23:44 javaws -> /System/Library/Frameworks/JavaVM.framework/Versions/1.7.0/bin/javaws
 lrwxr-xr-x   1 root  wheel    71 27 Jul 23:45 jconsole -> /System/Library/Frameworks/JavaVM.framework/Versions/1.7.0/bin/jconsole
 lrwxr-xr-x   1 root  wheel    66 27 Jul 23:46 jdb -> /System/Library/Frameworks/JavaVM.framework/Versions/1.7.0/bin/jdb
 lrwxr-xr-x   1 root  wheel    67 27 Jul 23:46 jhat -> /System/Library/Frameworks/JavaVM.framework/Versions/1.7.0/bin/jhat
 lrwxr-xr-x   1 root  wheel    68 27 Jul 23:46 jinfo -> /System/Library/Frameworks/JavaVM.framework/Versions/1.7.0/bin/jinfo
 lrwxr-xr-x   1 root  wheel    67 27 Jul 23:46 jmap -> /System/Library/Frameworks/JavaVM.framework/Versions/1.7.0/bin/jmap
 lrwxr-xr-x   1 root  wheel    66 27 Jul 23:46 jps -> /System/Library/Frameworks/JavaVM.framework/Versions/1.7.0/bin/jps
 lrwxr-xr-x   1 root  wheel    69 27 Jul 23:47 jstack -> /System/Library/Frameworks/JavaVM.framework/Versions/1.7.0/bin/jstack
 lrwxr-xr-x   1 root  wheel    68 27 Jul 23:47 jstat -> /System/Library/Frameworks/JavaVM.framework/Versions/1.7.0/bin/jstat
 lrwxr-xr-x   1 root  wheel    69 27 Jul 23:47 jstatd -> /System/Library/Frameworks/JavaVM.framework/Versions/1.7.0/bin/jstatd
 lrwxr-xr-x   1 root  wheel    70 27 Jul 23:47 keytool -> /System/Library/Frameworks/JavaVM.framework/Versions/1.7.0/bin/keytool
 lrwxr-xr-x   1 root  wheel    67 27 Jul 23:49 orbd -> /System/Library/Frameworks/JavaVM.framework/Versions/1.7.0/bin/orbd
 lrwxr-xr-x   1 root  wheel    70 27 Jul 23:49 pack200 -> /System/Library/Frameworks/JavaVM.framework/Versions/1.7.0/bin/pack200
 lrwxr-xr-x   1 root  wheel    73 27 Jul 23:49 policytool -> /System/Library/Frameworks/JavaVM.framework/Versions/1.7.0/bin/policytool
 lrwxr-xr-x   1 root  wheel    67 27 Jul 23:51 rmic -> /System/Library/Frameworks/JavaVM.framework/Versions/1.7.0/bin/rmic
 lrwxr-xr-x   1 root  wheel    67 27 Jul 23:51 rmid -> /System/Library/Frameworks/JavaVM.framework/Versions/1.7.0/bin/rmid
 lrwxr-xr-x   1 root  wheel    74 27 Jul 23:51 rmiregistry -> /System/Library/Frameworks/JavaVM.framework/Versions/1.7.0/bin/rmiregistry
 lrwxr-xr-x   1 root  wheel    72 27 Jul 23:50 serialver -> /System/Library/Frameworks/JavaVM.framework/Versions/1.7.0/bin/serialver
 lrwxr-xr-x   1 root  wheel    73 27 Jul 23:50 servertool -> /System/Library/Frameworks/JavaVM.framework/Versions/1.7.0/bin/servertool
 lrwxr-xr-x   1 root  wheel    72 27 Jul 23:50 tnameserv -> /System/Library/Frameworks/JavaVM.framework/Versions/1.7.0/bin/tnameserv
 lrwxr-xr-x   1 root  wheel    72 27 Jul 23:50 unpack200 -> /System/Library/Frameworks/JavaVM.framework/Versions/1.7.0/bin/unpack200
iMac:java7 jim$ javac -version
 javac 1.7.0-internal
iMac:java7 jim$ javah
 Usage:
   javah [options] <classes>
 where [options] include:
   -o <file>                Output file (only one of -d or -o may be used)
   -d <dir>                 Output directory
   -v  -verbose             Enable verbose output
   -h  --help  -?           Print this message
   -version                 Print version information
   -jni                     Generate JNI-style header file (default)
   -force                   Always write output files
   -classpath <path>        Path from which to load classes
   -bootclasspath <path>    Path from which to load bootstrap classes
 <classes> are specified with their fully qualified names
 (for example, java.lang.Object).
iMac:java7 jim$ javah -version
 javah version "1.7.0-internal"
iMac:java7 jim$ pwd
 /usr/java7
 // started out to fix ownership and permissions of jdk folders and components
 // but this became a long affair, so will detail this in the next post
 // =========================================================
 iMac:usr jim$ sudo chmod 777 java7

Part Two Is Here

Alfred AppleMac OSX Productivity Tool

Alfred is a mac os productivity tool – sorry windows and ubuntu user – with a mouseless experience, keep your hands on the keyboard and we will be more productive, or so the idea goes.

Most of the features of alfred are bound into the extra-cost power-package. Ok, it’s not too dear at ¬£15, so i may buy it later. It looks to offer a short cut path to our most used digital assets. With alfred extensions, other functionality becomes available from the user community.

Once installed (see links below) this tool offers a quick way to become more productive. A combination of keystrokes brings the alfred window up. By default, the alt+space bar does this.  Then type one or two characters to bring up an autocomplete list of possibilities and bang the enter key to take it.


Here is a super tut from Jeffrey Way. This tut shows us how to build a boiler-plate set of folders and necessary css and javascript resources for a typical web designer project : Tutorial

Loads of app-launching, file-searching goodness – free for you to download and use with no strings attached. Alfred is the ultimate productivity tool for your Mac. Get it and see for yourself. Download here

You can download a ppc version here 10.5 or PPC Version

Alfred extension scripts add further functionality to Alfred. Here is one link, although there are many others : CSS3 Helper Scripts