Archive for July, 2011

Silver lining much? http://sgp…

Sunday, July 31st, 2011

Silver lining much? http://sgp.cm/0cf946

Bleeg @ Target @sonarme

Sunday, July 31st, 2011

Bleeg @ Target @sonarme

“First Windows Phone 7 ‘Mango’…

Friday, July 29th, 2011

“First Windows Phone 7 ‘Mango’ handsets rumored to challenge iPhone 5 in Sept.” Just like Zune trounced the iPod back in the day, I’m sure.

My Top 3 #lastfm Artists: Paco…

Sunday, July 24th, 2011

My Top 3 #lastfm Artists: Paco de LucĂ­a (7), Frank Sinatra (2) & Sonic Youth (1) http://bit.ly/cdMoLK

RT @comex RT @flyosity: Androi…

Sunday, July 24th, 2011

RT @comex RT @flyosity: Android phones store account passwords for email and other services in plain text. http://sgp.cm/95eea6

Wow, tough summer for studying…

Friday, July 22nd, 2011

Wow, tough summer for studying. Keine Lust!

Social convergence just got a …

Tuesday, July 19th, 2011

Social convergence just got a whole lot more converged.

I’m @ Regal UA & IMAX @sonarme

Monday, July 18th, 2011

I’m @ Regal UA & IMAX @sonarme

My Top 3 #lastfm Artists: Joha…

Sunday, July 17th, 2011

My Top 3 #lastfm Artists: Johann Sebastian Bach (15), Chick Corea (1) & Charlie Parker (1) http://bit.ly/cdMoLK

My Top 3 #lastfm Artists: Wolf…

Sunday, July 10th, 2011

My Top 3 #lastfm Artists: Wolfgang Amadeus Mozart (52), Cake (18) & Bonobo (3) http://bit.ly/cdMoLK

My Top 3 #lastfm Artists: Wes …

Monday, July 4th, 2011

My Top 3 #lastfm Artists: Wes Montgomery (19), Billie Holiday (15) & Wayne Krantz (11) http://bit.ly/cdMoLK

Fedora 15, sun-java (oracle-java), and /etc/alternatives

Friday, July 1st, 2011

Got Java from this link. (Actually, I still go to java.sun.com and root around, but I imagine good ole Larry’s gonna deprecate that soon enough.) I downloaded the JDK that I wanted in the RPM installer package, which today happened to be: jdk-6u26-linux-x64-rpm.bin (note: the 64-bit version for my 64-bit install). Make the install executable, run it, and Java is installed to /usr/java/jdk1.6.0_26/.

Easy enough. But /etc/alternatives governs the global settings that determine the default app for all kinds commands across the system. And the commands we care about (if we care about using sun-java) are among them. In particular the ones we want alternatives to know about are: java, javac, and javaws. You can replace /etc/alternatives’ symlinks to these commands with the newly installed paths to each one respectively. And that’s probably a good solution, esp. if, like me, you don’t really have a need for OpenJDK or GCJ once sun-java is installed. (And if you don’t mind maintaining those symlinks across system updates and sun-java upgrades.) But I didn’t want to go hacking around symlinks across the system, so I figured I’d knuckle under and work within the alternatives system. Here’s what I had to do:

# update-alternatives --install "/usr/bin/java" "java" "/usr/java/jdk1.6.0_26/bin/java" 3
# update-alternatives --install "/usr/bin/javac" "javac" "/usr/java/jdk1.6.0_26/bin/javac" 3
# update-alternatives --install "/usr/bin/javaws" "javaws" "/usr/java/jdk1.6.0_26/bin/javaws" 3

Then, update your systems by running:

# update-alternatives --config java

You should see sun-java as your 3rd option. Choose that, confirm with

$ java -version

. Welcome to object city!