[
https://issues.apache.org/jira/browse/JENA-1297?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15952755#comment-15952755
]
Andy Seaborne commented on JENA-1297:
-------------------------------------
So (by example 3) the current scripts work on OS X when setting {{JENA_HOME}}.
"No query string or query file" is the correct answer.
Example 1 does not use {{JENA_HOME}}.
"Error: Could not find or load main class arq.sparql" is a classpath problem
and not this report.
On Linux, I use: in directory {{jlib}}:
{{apache-jena -> apache-jena-3.2.0}}
all the time with
{{PATH=...:/home/afs/jlib/apache-jena/bin:...}}
(It is very easy to mis-set {{JENA_HOME}}.)
> Code to ste JENA_HOME in scripts doesn't work (links)
> -----------------------------------------------------
>
> Key: JENA-1297
> URL: https://issues.apache.org/jira/browse/JENA-1297
> Project: Apache Jena
> Issue Type: Bug
> Components: Cmd line tools
> Affects Versions: Jena 3.2.0
> Environment: OS X 10.11.6 (15G1217). Java 1.8.0_92
> Reporter: Marco Brandizi
> Assignee: A. Soroka
>
> I'm trying the script bin/sparql, to me the code that deals with links when
> setting JENA_HOME is unnecessary, it ends up setting '.' as the prefix for
> lib/ ad triggering main class not found (when putting $JENA_HOME/bin in PATH).
> The same script works when I set JENA_HOME with the physical path of Jena,
> not its symlink (which I don't like, because I prefer to upgrade by
> symlinking the last version to 'jena' and not having to change anything else).
> I've tried a version of such script where I removed all if [ -L ... ] and it
> works perfectly well. In my opinion, the existing code (using dirname ... &&
> pwd) is enough to track the folder where the script is.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)