Menu

#78 install fail if $JAVA_BIN not specified

open-fixed
5
2008-11-02
2008-10-30
No

If you leave $JAVA_BIN blank, the install does not complain but hten fails to complete:

% PAPCO_INITIALIZE: Updating your papco_set_variables.pro
% Variable is undefined: PAPCO_UNZIP.
% Execution halted at: PAPCO_INITIALIZE 289 /a/toaster-g3/vol/home/u/friedel/idl/papco/papco_scripts/papco_initialize.pro
% $MAIN$

Needed action -

put in checks to make sure install can't proceed without all fields specified, albeit with defaults.

Also be good to provide some suggestions for $JAVA_BIN.

"Please specify the location of a java runtime environment." is a bit vague - what do you mean with that? the location of an executable?

On Unix that seems to be
[friedel@dream ~]$ which java
/usr/bin/java

Correct?

Discussion

  • Jeremy Faden

    Jeremy Faden - 2008-11-02

    Correct. If java is on your unix search path, then "java" is a sufficient entry.

     
  • Jeremy Faden

    Jeremy Faden - 2008-11-02

    The error is corrected by mimicking old behavior, which was to have PAPCO_UNZIP unspecified.
    Also, I clarified the description of the JAVA_BIN parameter.

     
  • Jeremy Faden

    Jeremy Faden - 2008-11-02
    • status: open --> open-fixed