13.07.2015 Views

Java™ Application Development on Linux - Dator

Java™ Application Development on Linux - Dator

Java™ Application Development on Linux - Dator

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

20.8 Installing Ger<strong>on</strong>imo46720.8INSTALLING GERONIMOUsing a platform-neutral system like Java has both advantages and disadvantages.A disadvantage is that, generally, Java products d<strong>on</strong>’t use the traditi<strong>on</strong>alinstallati<strong>on</strong> mechanisms of your native platform. For <strong>Linux</strong> users that meansthat with Java you d<strong>on</strong>’t install using an RPM or a DEB. But this is somewhatoffset by the fact that all a Java applicati<strong>on</strong> needs is for its classes (in JARs) tobe arranged in a particular pattern <strong>on</strong> the filesystem. In other words, all youneed to do to install Ger<strong>on</strong>imo is to unpack the tarball.You did the hard part already. Since you have created the group and madeyourself a member of that group (see Secti<strong>on</strong> 20.3), any member of the groupcan install the product:$ cd /usr/local$ tar xzvf ger<strong>on</strong>imo.tar.gz...$TIPAt this point we suggest using <strong>on</strong>e more <strong>Linux</strong> filesystem trick. The tarballunpacks into a directory whose name includes the product versi<strong>on</strong>—in thiscase, ger<strong>on</strong>imo-1.0-M1. In many cases, you will want to be able to havemore than <strong>on</strong>e versi<strong>on</strong> of Ger<strong>on</strong>imo installed <strong>on</strong> a box simultaneously, eitherbecause you need to port projects from <strong>on</strong>e versi<strong>on</strong> to another, or perhapsbecause you need to develop applicati<strong>on</strong>s that will run <strong>on</strong> different versi<strong>on</strong>s <strong>on</strong>different target servers. To make your life easier, create a symbolic link to agenerically named directory, such as ger<strong>on</strong>imo and have that symlink pointto ger<strong>on</strong>imo-1.0-M1. Then you can write your startup and shutdown scriptsto use the ger<strong>on</strong>imo pathname. You can then switch to another versi<strong>on</strong> bychanging where the symlink points:$ cd /usr/local$ ln -s ger<strong>on</strong>imo-1.0-M1/ ger<strong>on</strong>imoThis process is discussed in detail in Secti<strong>on</strong> 6.2 in the c<strong>on</strong>text of switchingbetween Java SDK versi<strong>on</strong>s.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!