Hello Thanks for your patch. I have tried it and it seems to work until a new error which is still linked (to my mind) with the path used by the JVM: $ sample/bin/lsc-sample --run Running "/cygdrive/c/Users/compta/Downloads/lsc-1.2.0/sample/bin/../../bin/lsc" --config "C:\Users\compta\Downloads\lsc-1.2.0\sample\etc" --synchronize all juin 16 09:25:57 - INFO - Starting sync for MySyncTask juin 16 09:26:08 - ERROR - Error while launching task "MySyncTask". Please check your configuration! (java.lang.ExceptionInInitializerError)
As you suggested I am trying to run directly with a lsc.properties of my own. My goal is to make an ldap to ldap synchronization and I have seem that there was a lsc.properties-sample to modify in order to get it. Regards, Francois -------- Message d'origine-------- De: Jonathan Clarke [mailto:[email protected]] Date: mar. 15/06/2010 19:16 À: François Chapuis ([email protected]) Cc: [email protected] Objet : Re: [lsc-users] quick tuto Cygwin On 15/06/10 10:35, [email protected] wrote: > Hello, > I am new to the lsc project but very interested in its goal. > I was trying to execute the quick tutorial on Windows with Cygwin but I > have some difficulties to get it wok. > Here is the error I met when I tried to run the lsc-sample : > > $ sample/bin/lsc-sample --run > Running > "/cygdrive/c/Users/compta/Doxnloads/lsc-1.2.0/sample/bin/../../bin/lsc" > --config > "/cygdrive/c/Users/compta/Downloads/lsc-1.2.0/sample/bin/../etc" --sync > hronize all > Error: Configuration location doesn't exist! > (C:\cygdrive\c\Users\compta\Downloa > ds\lsc-1.2.0\sample\bin\..\etc\). Aborting. > Last log file line 2010/06/15 09:25:00 [lsc] Starting LSC > > It seems that it doesn't recognize the Cygwin path and adds C: and \ > instead of /. It could maybe come from something wrong in this part of > code from the lsc-sample file : > # is this Cygwin? if so, convert path to windows format for the JVM > CYGPATH_COMMAND="$(which cygpath)" > if [ $? -eq 0 ]; then > CLASSPATH=$(Cygpath -p -w "$CLASSPATH") > fi > > Do you have some advices to suggest to me? > Sincerely, > Chapuis Francois Hello Francois, Thanks for your interest in the LSC project. Unfortunately, we are aware that the sample does not work on Windows (using Cygwin or not). However, LSC does run on Windows when not using the sample. I suggest you try out LSC by configuring etc/lsc.properties, and running lsc/bin directly. Then you will avoid any Cygwin problems. There doesn't seem to be any work happening on getting the sample working under Cygwin/Windows, therefore any help would be most welcome. There is a bug report open (http://tools.lsc-project.org/issues/215). The problem here, is that the lsc-sample script is calling bin/lsc with a config path in /cygdrive/c/, which is a valid path for cygwin, but not for the JVM when it's launched (it is a pure Windows JVM, so only know about c:\ style paths). I attach a suggested patch. I have not tested it, since I don't have access to a Windows machine right now, but feel free to go ahead, and please let me know if you do. Regards, Jonathan -- -------------------------------------------------------------- Jonathan Clarke - [email protected] -------------------------------------------------------------- Ldap Synchronization Connector (LSC) - http://lsc-project.org --------------------------------------------------------------
_______________________________________________________________ Ldap Synchronization Connector (LSC) - http://lsc-project.org lsc-users mailing list [email protected] http://lists.lsc-project.org/listinfo/lsc-users

