In Java, you cannot combine the -cp and the -jar option. So to have
the mysql connector available, you need to use the following command:

java -cp mysql-connector-java.jar:marmotta-loader-kiwi.jar
org.apache.marmotta.loader.core.MarmottaLoader -f
/data/file-to-import.rdf -c
"http://example.com:8080/marmotta/context/thiscontext"; -C
"jdbc:mysql://mysqldb.example.com:3306/marmotta?useUnicode=true&characterEncoding=UTF-8&rewriteBatchedStatements=true"
-U username -W password

(the path separator is OS specific, on windows use ';' instead of ':')

Best,
Jakob


On 24 November 2014 at 23:41, Joshua Dunham <joshua_dun...@vrtx.com> wrote:
> Hi Marmotta Users,
>
>   I’ve edited the marmotta-loader-kiwi pom to include mysql and then mvn 
> install and it builds just fine but it can’t get past an error on not being 
> able to load the mysql-connector-java.jar file. I’ve tried adding the folder 
> containing the jar to $CLASSPATH and/or adding the jar itself to the 
> $CLASSPATH and calling it by,
>
> java -cp $CLASSPATH -jar marmotta-loader-kiwi-3.3.0-SNAPSHOT.jar -f 
> /data/file-to-import.rdf -c 
> "http://example.com:8080/marmotta/context/thiscontext"; -C 
> "jdbc:mysql://mysqldb.example.com:3306/marmotta?useUnicode=true&characterEncoding=UTF-8&rewriteBatchedStatements=true"
>  -U username -W password
>
> but it still complains on not being able to find it. I’ve also used the jar 
> at maven repos and the oracle binary one without luck.
>
>  Does anyone have tips they could share?
>
> -J
>
> Joshua Dunham
> Exploratory App Development | Vertex
>
> This email message and any attachments are confidential and intended for use 
> by the addressee(s) only. If you are not the intended recipient, please 
> notify me immediately by replying to this message, and destroy all copies of 
> this message and any attachments. Thank you.

Reply via email to