You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@jena.apache.org by Tim Harsch <ha...@yahoo.com> on 2011/07/07 00:35:54 UTC
Re: TDB and Cygwin
If you're using Java 1.6 then you can use classpath wildcards (just don't forget
to enclose in quotes so Windows CMD prompt doesn't expand the wildcard), e.g.:
java -Xmx1200M -classpath "..\lib\*" tdb.tdbloader --loc=DBPEDIA
file:///C:/someRDF.nt
For more info on classpath wildcards see:
http://download.oracle.com/javase/6/docs/technotes/tools/windows/classpath.html
----- Original Message ----
> From: Anuj Kumar <an...@gmail.com>
> To: jena-users@incubator.apache.org
> Sent: Mon, May 23, 2011 9:30:31 PM
> Subject: Re: TDB and Cygwin
>
> As Andy said, you need not run it using cygwin. I use this command to load
> data into tdb-
>
> java -Xmx1200M -classpath
>"../lib/arq-2.8.7-tests.jar;../lib/arq-2.8.7.jar;../lib/icu4j-3.4.4.jar;../lib/iri-0.8.jar;../lib/jena-2.6.4-tests.jar;../lib/jena-2.6.4.jar;../lib/junit-4.5.jar;../lib/log4j-1.2.14.jar;../lib/lucene-core-2.3.1.jar;../lib/slf4j-api-1.5.8.jar;../lib/slf4j-log4j12-1.5.8.jar;../lib/stax-api-1.0.1.jar;../lib/tdb-0.8.9-tests.jar;../lib/tdb-0.8.9.jar;../lib/wstx-asl-3.2.9.jar;../lib/xercesImpl-2.7.1.jar"
>"
> tdb.tdbloader --desc=file:///C:/db/ttl/entity_type.ttl
> file:///C:/db/sample/entity_type_en.nt
>
> Notice e that file:/// before the path and also the required JARs in the
> classpath.
>
> Hope that helps.
>
> Regards,
> Anuj
>
> On Tue, May 24, 2011 at 2:30 AM, Andy Seaborne <
> andy.seaborne@epimorphics.com> wrote:
>
> >
> >
> > On 23/05/11 20:27, Srecko Joksimovic wrote:
> >
> >> Hello everyone!
> >>
> >>
> >>
> >> I am trying to call tdbloader on Windows OS. I have also installed Cygwin,
> >> because there is no other way to use tdbloader on Windows, as I know.
> >>
> >
> > On windows, you can invoke it directly
> >
> > java -cp ...\lib\* tdb.tdbloader
> >
> >
> > I thought that I have configured everything right, but when I try:
> >>
> >>
> >>
> >> ./bin/tdbloader -loc=C:/temp/tdb C:/temp/file.rdf
> >>
> >>
> >>
> >> I am getting this message:
> >>
> >>
> >>
> >> C:/tdb-0.8.10/TDB-0.8.10/bin/tdb_init: line 33: basename: command not
> >> found
> >>
> >
> > You don't have "basename" installed or not on PATH - it's in cygwin package
> > coreutils I think (was sh-utils).
> >
> >
> >
> >> ./bin/tdbloader: line 4: exec: java: not found
> >>
> >
> > PATH does not include java maybe?
> >
> >
> > Does anyone have an idea what could be a problem?
> >>
> >
> > PATH problem?
> >
> >
> >>
> >>
> >> Best,
> >>
> >> Srecko
> >>
> >>
> >>
>