Category Archives: Java

Locate Java Home on Mac OS

I am using Mac OS X 10.5 and I installed java 7 on it today. But the funny thing was I was unable to locate the directory where I have installed my Java. Finally I found it out and here are the steps :

  1. Make Sure you have Java installed properly. For that open your terminal and type which java. If you have JDK installed your machine, you will get /user/bin/java. This shows that you have JDK and you are safe to search for Java home on your MAC. Otherwise install JDK again on your Mac.
  2. In Mac OS, Java is installed at /Library/Java and your Java home folder should be /Library/Java/home.
  3. If you have multiple versions of JDK installed on same machine, then your Java home could be /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home

For checking Java version please type java -version on terminal.

if you are installing Oracle Middleware / Weblogic you may face error : “Invalid Java home
To correct this error, follow these steps:-

1. cd /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home
2. sudo mkdir jre
3. cd jre
4. sudo mkdir lib
5. cd lib
6. sudo ln -s ../../../Classes/classes.jar rt.jar

I hope this help. You can make a comment if you need any help from me.

“Java Life” Rap Song From Oracle With Lyrics

Oracle has released a funny rap song on Java and life of Java professionals. A Java professional should not miss it.
Scroll Down for lyrics

SPOKEN:
In the cubicles representin’ for my JAVA homies…
In by nine, out when the deadlines are met, check it.

CHORUS:
We code hard in these cubicles
My style’s nerd-chic, I’m a programmin’ freak
We code hard in these cubicles
Only two hours to your deadline? Don’t sweat my technique.

Sippin’ morning coffee with that JAVA swirl.
Born to code; my first words were “Hello World”
Since 95, been JAVA codin’ stayin’ proud
Started on floppy disks, now we take it to the cloud.

On my desktop, JAVA’s what’s bobbin’ and weavin’
We got another winning app before I get to OddEven.
Blazin’ code like a forest fire, climbin’ a tree
Setting standards like I Triple E….

Boot it on up, I use the force like Luke,
Got so much love for my homeboy Duke.
GNU Public Licensed, it’s open source,
Stop by my desk when you need a crash course

Written once and my script runs anywhere,
Straight thuggin’, mean muggin’ in my Aeron chair.
All the best lines of code, you know I wrote ‘em
I’ll run you out of town on your dial-up modem.

CHORUS:
‘Cause…
We code hard in these cubicles
Me and my crew code hyphy hardcore
We code hard in these cubicles
It’s been more than 10 years since I’ve seen the 404.

Inheriting a project can make me go beeee-serk
Ain’t got four hours to transfer their Framework.
The cleaners killed the lights, Man, that ain’t nice,
Gonna knock this program out, just like Kimbo Slice

I program all night, just like a champ,
Look alive under this IKEA lamp.
I code HARDER in the midnight hour,
E7 on the vending machine fuels my power.

Ps3 to Smartphones, our code use never ends,
JAVA’s there when I beat you in “Words with Friends”.
My developing skills are so fresh please discuss,
You better step your game up on that C++.

We know better than to use Dot N-E-T,
Even Dan Brown can’t code as hard as me.
You know JAVA’s gettin’ bigger, that’s a promise not a threat,
Let me code it on your brain

WHISPERED:
so you’ll never forget.

CHORUS:
We code hard in these cubicles,
it’s the core component…of what we implement.
We code hard in these cubicles,
Straight to your JAVA Runtime Environment.

We code hard in these cubicles,
Keep the syntax light and the algorithm tight.
We code hard in these cubicles,
Gotta use JAVA if it’s gonna run right.

We code hard in these cubicles
JAVA keeps adapting, you know it’s built to last.
We code hard in these cubicles,
Robust and secure, so our swag’s on blast

CODE HARD

Java Life Rap Song Oracle