Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Note: You should be logged on as slacuserid@fermilnx-v14 , e.g. chee@fermilnx-v14 when installing java patches and versions. Use Once the chee account has downloaded the files use the scp command to copy files across to glast@fermilnx-v14 if you are not logged in to the host (scp how-to). From glast@fermilnx copy files from chee@fermilnx, not the other way around otherwise the file permissions will be set for chee not glast.

 Basic Basic overview
  1. down load the files from the java download site  to /tmp. You will use gtar -C <path> or execute *.bin to put the files to the directory.
  2. check space availablity for each target directory by running /afs/.slac/package/java/common/install/checkQuota
  3. make sure you are in the shadow directory, e.g. /afs/.slac...  and not /afs/slac (dot slac, not just slac)
  4. IF you get an executable (*.bin) then use the installJava script and you create the jdk-* subdirectory under each OS directory first, e.g. linux, solaris, etc.
  5. IF you get zipped tarballs (*.gz) use the installJava7 script which uses gtar -C to unpack and create/install the directories.
  6. change the patch variable in the install script (installJava or installJava7) to the latest patch number
  7. cd to the place where you downloaded all the files, e.g. /tmp on fermilnx-v14
  8. Make sure to change the patch number before running the script.
  9. Edit the install script and check that the new version names will unpack properly. Run the installJava* script.
  10. run the release script to deploy the new versions to the read-only disk.
  11. restart the test server and check that everything still works
  12. restart all the other servers. Use the server monitoring page to do this. If that doesn't work, logon to the machine and run the stop/start scripts.
  13. update the web page (see url address below)
  14. announce to mailing lists (see list names below)
  15. (optional) if you need to change the default version update javawrap script

...

Java 1.6.0 -> 1.6.0_41
Java 1.7   -> 1.7.0_55
Java 1.8 -> 1.8.0_20

When invoking Java via

...

it defaults to using Java 67, although this can be controlled by setting

...

DateJava DirectoryAstore directoryComments
12 Nov 2014/afs/.slac.stanford.edu/package/java/amd64_linux/nfs/astore/g/glstore/amd64_linux_javadir.tar.gzBack up directory so I can delete versions from the package area
 /afs/.slac.stanford.edu/package/java/i386_linux2/nfs/astore/g/glstore/i_386_linux2_javadir12nov2014.tar.gzBack up directory so I can delete versions from the package area
 /afs/.slac.stanford.edu/package/java/sun4x_55/nfs/astore/g/glstore/sun4x_55_javadir12nov2014.tar.gzBack up directory so I can delete versions from the package area

 

Maven Versions - How to install new version

  •  login as glast or srs on host like fermilnx-14.
  • Use the command 'wget -v <url>'  to download the version of maven from maven home/Download. Select the closest mirror site.
  • Download the file to the shadow directory /afs/.slac/package/java/common/contrib, unzip and untar the file
  • Run the release command /afs/slac/package/java/build/release (7 and 8 are the same except one says '7' the other says '8'
  • or Run the release command with the argument 'common' to just release maven
  • Done. Don't need to announce it.