Starting a website hosting JODConverter with Maven/Jetty

46 views
Skip to first unread message

gounthar

unread,
Nov 16, 2009, 12:24:48 PM11/16/09
to JODConverter
Hi,

I'm trying to convert my project to Maven, and I thought this would be
a good idea to use Jetty...
JODConverter needs the -Djava.library.path jvm args to start OOo, but
I just can't manage to give this info to JODConverter.
I tried in pom.xml with systemProperty, in MAVEN_OPTS, on the mvn
command line, but I always get "Caused by:
java.lang.UnsatisfiedLinkError: createJNI".
Does anyone have success with JODConverter running with Jetty?

Thanks.

Bruno Verachten

Mirko Nasato

unread,
Nov 16, 2009, 12:49:07 PM11/16/09
to jodcon...@googlegroups.com
Hi Bruno,

Yeah I had the same problem. I'm not quite sure what goes on between
Maven and Jetty, but setting MAVEN_OPTS="-Djava.library.path=..."
should work.

Alternatively, on Linux I usually set the LD_LIBRARY_PATH environment
variable instead of the java.library.path system property. On Windows
adding ure/lib to the PATH should have the same effect.

Kind regards

Mirko


2009/11/16 gounthar <goun...@gmail.com>:

Verachten Bruno

unread,
Nov 16, 2009, 3:23:06 PM11/16/09
to jodcon...@googlegroups.com
Howdy Mirko,

> Yeah I had the same problem. I'm not quite sure what goes on between
> Maven and Jetty, but setting MAVEN_OPTS="-Djava.library.path=..."
> should work.

I tried that, but it didn't work (under Cygwin).

> variable instead of the java.library.path system property. On Windows
> adding ure/lib to the PATH should have the same effect.

I'll try that too, thanks for the tip!

Best regards,
--
Bruno Verachten

Verachten Bruno

unread,
Nov 19, 2009, 10:11:41 AM11/19/09
to jodcon...@googlegroups.com
Mirko,

>> Yeah I had the same problem. I'm not quite sure what goes on between
>> Maven and Jetty, but setting MAVEN_OPTS="-Djava.library.path=..."
>> should work.
> I tried that, but it didn't work (under Cygwin).
I finally managed to get it working after converting each and every
path with cygpath -ua in my PATH variable.

Thanks for your help,
--
Bruno Verachten
Reply all
Reply to author
Forward
0 new messages