On 20 Jan 2012, at 17:39, Robert Vesse wrote:

> Hi All
> 
> Anyone have experience with running the TDB command line tools on a Mac? I'm 
> trying to dig into JENA-199 and isolate whether the issue is at the Fuseki 
> layer or the TDB layer so I wanted to run my query against TDB directly using 
> tdbquery.
> 
> But I run into a couple of problems:
> 
> 1 - TDB won't build on my Mac unless I disable the tests because I get a 
> whole bunch of Java heap memory errors, I tried using MAVEN_OPTS to set 
> -Xmx8g but I still get 71 errors which cover three main errors - Java heap 
> space, OutOfMemoryException and failed to initialize TestDynamicDataset

Confirmed on my mac. Boosting the heap won't help on 64 bit systems, since the 
buffers are outside the java heap. (Looking at it run the build barely breaks 
25Mb). Mysterious.

> 2 - I couldn't get the scripts to run at all because I couldn't seem to get 
> my class path configured properly, eventually I realized there was several 
> problems.
> 
> Firstly I had to run mvn eclipse:eclipse to generate a .classpath file for 
> the make_classpath_mvn script to pick up the dependencies properly.

That now seems to be in svn. However it shouldn't be necessary since you can 
get maven to generate the classpath:

mvn dependency:build-classpath

> Secondly I noticed the last part of the query failed to add the 
> target/classes directory to my class path so I tried to hack that bit of 
> shell script, as is it tries to add /classes relative to the given directory 
> when it should be /target/classes.  It looks like the script is supposed to 
> check whether that is already on the class path but fails to do so correctly 
> (at least on Mac)

The script seems to have the correct thing commented out.

bin/make_classpath_mvn

Change lines near the end to:

[ -e "$DIRROOT/target/classes" ] && CP="$DIRROOT/target/classes:$CP"
#[ -e "$DIRROOT/classes" ] && CP="$DIRROOT/classes:$CP"

i.e. uncomment the first, comment out the second.

So with that (and TDBROOT set) it works on my mac.

Damian

Attachment: signature.asc
Description: Message signed with OpenPGP using GPGMail

Reply via email to