Hi Raveen, Glad to hear that you were able to solve the issue.
On Mon, Nov 20, 2017 at 12:14 AM, Raveen Rathnayake <[email protected]> wrote: > Hi Rasika, > > I used the following set clause and was able to solve the issue. > > set SIDDHI_CLASSPATH="%SIDDHI_HOME%\lib\*" > > Thanks for the help. > > > <http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail> > Virus-free. > www.avg.com > <http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail> > <#m_8946655889796611165_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2> > > On Wed, Nov 15, 2017 at 9:10 PM, Raveen Rathnayake <[email protected]> > wrote: > >> HI Rasika, >> >> Thanks for the suggestion. I will check this. >> >> >> On Wed, Nov 15, 2017 at 6:07 PM, Rasika Perera <[email protected]> wrote: >> >>> 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 >>> >> >> >> >> -- >> 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> >> > > > > -- > 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> > -- 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
