LibraryOfCongress / bagger

The Bagger application packages data files according to the BagIt specification.
Other
120 stars 19 forks source link

added a python script to check JAVA_HOME is set to a version of java 7 o... #1

Closed johnscancella closed 9 years ago

johnscancella commented 9 years ago

After talking with Mike Fitzella, a contractor is having problems running bagger due to the version of java installed or set in JAVA_HOME. I created this python script to help discover what version his JAVA_HOME points to, and compare to what version of java is on his path.

If JAVA_HOME points to a version of 7 or greater, it tells the user no actions are required, otherwise if there is java on the path that is 7 or greater it prints out the command to switch JAVA_HOME to that version(and how to make it permanent). If all else fails it says that neither JAVA_HOME nor java on the path are the correct version, and that version 1.7 or greater is needed to run bagger.