Share

Heritrix: Internet Archive Web Crawler

Tracker: Bugs

3 heritrix.sh launch file path weirdness - ID: 922104
Last Update: Comment added ( karl-ia )

while looking at the code in heritrix.sh, if the actual path of the
java binary is /path_to_java_1.4/bin/java, the script will use: /
path_to_java_1.4/bin/../bin/java, pretty weird?


nVIR ( nvir ) - 2004-03-23 23:13

3

Closed

Invalid

Michael Stack

configuration

0.8.0

Public


Comments ( 2 )

Date: 2007-03-14 00:08
Sender: karl-ia


This issue is now discussed in the new JIRA tracker at
http://webteam.archive.org/jira/browse/HER-94 -- please add further
comments at that location.


Date: 2004-04-20 18:42
Sender: stack-sfProject Admin

Logged In: YES
user_id=924942

Here is the code:

# Find JAVA_HOME.
if [ -z "$JAVA_HOME" ]
then
JAVA=`which java`
if [ -z "$JAVA" ]
then
echo "Cannot find JAVA. Please set your PATH."
exit 1
fi
JAVA_BINDIR=`dirname $JAVA`
JAVA_HOME=$JAVA_BINDIR/..
fi


if [ -z "$JAVACMD" ]
then
# It may be defined in env - including flags!!
JAVACMD=$JAVA_HOME/bin/java
fi

We get JAVACMD of " /path_to_java_1.4/bin/../bin/java" when
we've had to work out JAVA_HOME going off the location of
java. If the user has set the JAVA_HOME, say, set it to
'/path_to_java', then JAVACMD is '/path_to_java_1.4/bin//java'.

Looks a little weird but nothing wrong with it. Closing as
invalid.


Attached File

No Files Currently Attached

Changes ( 7 )

Field Old Value Date By
close_date - 2004-04-20 18:42 stack-sf
status_id Open 2004-04-20 18:42 stack-sf
resolution_id None 2004-04-20 18:42 stack-sf
artifact_group_id None 2004-03-31 01:12 gojomo
assigned_to nobody 2004-03-31 01:07 gojomo
priority 5 2004-03-31 01:07 gojomo
summary heritrix.sh lauch file 2004-03-30 23:18 gojomo