Hi Raveen,

Yes issue might be because of JAR files list of 279 makes the windows
'java' command hits the O/S limit. In your script, below loop is adding the
fully qualified paths for the each jar file into the "classpath" of the
java command.

FOR %%D in ("%SIDDHI_HOME%\lib\*.jar") DO set
SIDDHI_CLASSPATH=!SIDDHI_CLASSPATH!;
"%SIDDHI_HOME%\lib\%%~nD%%~xD"

As per this SO answer[1]; did you try adding wild card imports instead
of the for-loop? For example;

set SIDDHI_CLASSPATH=!SIDDHI_CLASSPATH!;"SIDDHI_HOME%\lib\*"

[1] https://stackoverflow.com/a/219801/1560536


On Tue, Nov 14, 2017 at 5:00 PM, Raveen Rathnayake <[email protected]> wrote:

> Hi all,
>
> Currently I am in the process of developing a SDK for Siddhi. In this SDK
> I am packing all the Siddhi Extensions with it. All the jars(*all
> together 279*) related to these extensions are located in the*
> {siddhi.home}/lib* folder. Executable files(*siddhi.sh* and *siddhi.bat*)
> are located in the *{siddhi.home}/bin* folder. In the* siddhi.bat* file I
> am adding all the jar files in the *{siddhi.home}/lib* folder to the
> *classpath*. When I tried to execute the* siddhi.bat* file I am getting
> an error  saying "*The input line is too long*." After googling about the
> error, I found that this error was caused because in windows a single command
> has a limit of ~250 characters. Since this 250 limit is exceeded by
> classpath setting command, I got the error.(when adding all the names of
> jars inside the lib the 250 limit is exceeded.) I have tried few methods to
> overcome this issue, but failed.  I have attached the *siddhi.bat* file
> here with.
>
> It will be great if any of you can suggest a solution for this.
>
> Thank you.
> --
> Raveen Savinda Rathnayake,
> Software Engineering Intern,
> WSO2 Inc.
>
> *lean. enterprise. middleware  *
> Web: www.WSO2.com Mobile : +94771144549  Blog : https://blog.raveen.me
>
> <https://lk.linkedin.com/in/raveensr>
>
> <http://wso2.com/signature>
>
> _______________________________________________
> Dev mailing list
> [email protected]
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
With Regards,

*Rasika Perera*
Senior Software Engineer
LinkedIn: http://lk.linkedin.com/in/rasika90

<http://wso2.com/signature>

WSO2 Inc. www.wso2.com
lean.enterprise.middleware
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to